Script not automatically running.

  • greymatter
    21st Apr 2013 Member 0 Permalink
    @TPTROXRLYITSTRUE (View Post)
    You can't find a folder with powder.exe? *facepalm*

    He meant that the script should be saved in the same folder where all the data and components of tpt is. it includes the file powder.pref and the button to open TPT.

    SAVING THE SCRIPT:

    name the script "autorun.lua" . instead of "txt file" choose "all files" from the drop down list below the box were you entered "autorun.lua" if they ask for replacement just give yes.Be sure the new file you are saving has everything that was in the old file though.
  • belugawhale
    21st Apr 2013 Member 0 Permalink

    Change the options in control panel to show all file extensions.

    Click on the autorun. Press F2. Delete the txt.

  • FeynmanLogomaker
    21st Apr 2013 Member 0 Permalink

    Actually, I'm having the same problem: I highly doubt he's doing anything wrong: it can run scripts with a .lua.txt extension (I have tried it, but it won't auto-run them).

  • Aloysius1234
    22nd Apr 2013 Member 0 Permalink

    if message 'autorun.lua.txt already exists. Do you want to replace it?' appears,

    1. Delete autorun.lua.txt

    2. Make a new one in notepad

    3. After it done, do Save As

    4. type 'autorun.lua'

  • FeynmanLogomaker
    23rd Apr 2013 Member 0 Permalink

    No, that's not his problem; this is actually a real bug.

  • cracker64
    23rd Apr 2013 Developer 0 Permalink

    You guys have hidden file extensions, go into control panel, folder options, view tab, look for the checkbox "Hide extensions for known file types" and uncheck it.

     

    Lua can open ANY file as long as it is plaintext, hell you can save it as something.tiff.jpg.exe, and a dofile("something.tiff.jpg.exe") will work.

     

    TPT only auto-runs "autorun.lua" exactly, if it doesn't, it is either in the wrong place, has a hidden extension, or is actually running but does nothing.

  • TPTROXRLYITSTRUE
    23rd Apr 2013 Banned 0 Permalink
    This post is hidden because the user is banned
  • greymatter
    23rd Apr 2013 Member 0 Permalink
    @TPTROXRLYITSTRUE (View Post)
    *facepalm*
    last time i checked, windows 7 had control panel. Every windows OS that i have ever used had control panel.
  • TPTROXRLYITSTRUE
    23rd Apr 2013 Banned 0 Permalink
    This post is hidden because the user is banned
  • boxmein
    23rd Apr 2013 Former Staff 0 Permalink
    Don't make me get out ol' Shotty...
    1. Where the options are
    image
    2. What Folder Options looks like & where the option is
    image

    3. What autorun.lua should look AFTER the option has been turned OFF (file type extensions are visible)
    image
    * Note that the icon and the "Lua Script file" will not be present on most systems. instead it'll have a white default icon and a "LUA file" description automatically.
    4. What autorun.lua should NOT look like after the option has been turned off
    image
Locked by jacob1: lock requested