i see, necro! (not backseat moderating)
@cracker64 I use TPTPortable (http://portableapps.com/apps/games/powder-toy-portable) on my thumb drive so your autorun script doesn't refresh properly when turning a script off because the directories are different. Can you please fix this? Thanks
Here's a screeny of the error that comes up:
Say I were to edit the script so that it points to the right directory, wouldn't I have to do that everytime the script gets updated?
Edit: So in my flash drive, executables (i.e. powder.exe and powder-legacy.exe) are located at root:\PortableApps\PowderToyPortable\App\PowderToy
but the scripts folder and saves folder and other data are at root:\PortableApps\PowderToyPortable\Data
In the lua script, I am confused as to which directory I should use for the script. Which of these entries to I need to replace with what?:
TPT_LUA_PATH
PATH_SEP
cmd
etc
Thanks for the reply. Unfortunately I tried it before and it didn't work. I suspect it's because the scripts folder (and other data folders) get saved in different directories from powder.exe.
I think the lua script only considers the data folders as it's starting directory so it can't go to the powder.exe because it is above the :\PortableApps\PowderToyPortable\Data (because powder.exe is at :\PortableApps\PowderToyPortable\App\PowderToy ).