The last autorun you'll ever need

  • Cacophony
    4th Dec 2013 Member 0 Permalink

    Yes,if they're lua-scripts rather than seperate .exe files

  • cccp3
    6th Dec 2013 Member 0 Permalink

    @Lightning (View Post)

     i see, necro! (not backseat moderating)

    Edited once by cccp3. Last: 6th Dec 2013
  • effer
    15th Dec 2013 Member 0 Permalink

    please help. download autorun.lua so it was not a autorun.txt autorun.lua

    Edited once by effer. Last: 15th Dec 2013
  • builder
    2nd Jan 2014 Member 0 Permalink

    closes fullscreen mode when refresh/startup :/

  • Schicko
    2nd Jan 2014 Member 0 Permalink

    @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:

    Edited once by Schicko. Last: 2nd Jan 2014
  • jacob1
    2nd Jan 2014 Developer 0 Permalink
    @builder (View Post)
    weird, might even be some sort of tpt bug.

    @Schicko (View Post)
    try and figure out what the name of the program is. The script has an option to change that. I'd also like to point out that tpt IS portable, you don't need some other weird program to change the name and make the game act funny. Unless you use this portable apps program to launch other games too, that's the only case I could imagine where this would be more convenient. In any other case, just put Powder.exe wherever you want and all preferences and stamps will be stored in that directory.
  • Schicko
    2nd Jan 2014 Member 0 Permalink

    @jacob1 (View Post)

     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

    Edited once by Schicko. Last: 2nd Jan 2014
  • cccp3
    4th Jan 2014 Member 0 Permalink

    Do TPT_LUA_PATH, it seems obvious to me, remove the _'s and you will figure out

  • Schicko
    4th Jan 2014 Member 0 Permalink

    @cccp3 (View Post)

     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 ).

  • jacob1
    4th Jan 2014 Developer 0 Permalink
    @Schicko (View Post)
    maybe change the exe name to ..\App\PowderToy\Powder.exe, might work
    Edited once by jacob1. Last: 4th Jan 2014
Locked by jacob1: new thread: https://powdertoy.co.uk/Discussions/Thread/View.html?Thread=19400