Error when attempting to use autorun.lua

  • WillieMohawk
    13th May 2014 Member 0 Permalink

    I'm running TPT (on a Mac, could that be the source of my issues?) and whenever I start up TPT with a script it ignores it. I've checked to make sure it's not autorun.lua.txt, and I've tried using dofile() but it just brings up this error message: "console:1: attempt to index global 'autorun' (a nil value)".

     

    Not sure how I should proceed, or if it's just not possible to do on my OS.

  • nucular
    14th May 2014 Member 1 Permalink
    Sounds like you're opening the console and typing in something like dofile(autorun.lua). You don't have to do that, the script gets launched automatically on the startup.
    If you aren't, try to provide us more informations on what you're doing and what not...
  • WillieMohawk
    14th May 2014 Member 0 Permalink

    Whenever I start up TPT, it functions as if I don't have the autorun.lua in the folder at all.

  • mniip
    14th May 2014 Developer 1 Permalink
    Could you maybe run
    os.getenv"PWD"
    in the console and tell what it outputs?
  • WillieMohawk
    14th May 2014 Member 0 Permalink

    @mniip (View Post)

     I just tried it, and got the output "nil".