dofile() not working?

  • PotcFdk
    14th Aug 2011 Member 0 Permalink
    @MasterMind555 (View Post)

    "Is the file in the folder of TPT?"
    Yes.

    "Is the file supposed to do something?"
    It's the example script from the wiki.
    How often do I need to say this?

    "Is the file in .lua and not .txt ?"
    "example.lua"
  • PotcFdk
    14th Aug 2011 Member 0 Permalink
    *push* still not working :(
  • MasterMind555
    14th Aug 2011 Member 0 Permalink
    @PotcFdk (View Post)
    Try with a script that does something obvious, like changing the view mode, if it still doesn't work, check if the function is registered ECT.
    If it prints no errors, it's most likely to be the script that works, but not as we wanted ( I KNOW it's the example script, but maybe you missed a little part or delete something by accident)

    Try

    function pwn()
    tpt.set_property("temp", 9000, "all");
    end
    tpt.register_step(pwn);

    Save it as pwn.lua

    I tried it and it worked perfectly
    Also, do you have Lua installed? ( Not sure if it's needed, just asking )
  • PotcFdk
    14th Aug 2011 Member 0 Permalink

    MasterMind555:

    I tried it and it worked perfectly

    Doesn't work...
    Same problem :(

    MasterMind555:

    do you have Lua installed?

    No, and I don't think that it's needed.
  • cctvdude99
    14th Aug 2011 Member 0 Permalink
    @PotcFdk (View Post)
    Did you save it as a Lua file?
  • PotcFdk
    14th Aug 2011 Member 0 Permalink

    snip

    Edited once by PotcFdk. Last: 21st Feb 2015
  • cctvdude99
    14th Aug 2011 Member 0 Permalink
    @PotcFdk (View Post)
    Ahhh.
    Try saving it as a .txt and putting dofile("pwn.txt") ?
    Just guessing here. :P
  • PotcFdk
    14th Aug 2011 Member 0 Permalink

    @cctvdude99 (View Post) The textfile has to be ANSI encoded

    Edited once by PotcFdk. Last: 21st Feb 2015