Help needed ASAP for Modding!

  • optimus2006
    19th Nov 2017 Member 0 Permalink

    So, I got the lua element maker from the thread below, (Download the beta version of it from Jacob's link) and quickly whipped through it,  and I saved it. But it saved as a .lua file, and I have no idea how to get this into TPT. can someone help me?

  • jacob1
    19th Nov 2017 Developer 0 Permalink
    Download the script manager: https://powdertoy.co.uk/Discussions/Thread/View.html?Thread=19400

    You can download it with tpt.getscript(1, "autorun.lua", 1)

    Then, create a folder "scripts" and put your script inside there. Then open the script manager and you can enable your script there

    (You could also just name your script autorun.lua or use dofile(), but I like the script manager better :P)
    Edited once by jacob1. Last: 19th Nov 2017
  • optimus2006
    23rd Nov 2017 Member 0 Permalink

    @jacob1 (View Post)

      

    Um, I made a file named "scripts" in a random place in my computer and put my mod into it, but it didn't show up in the mod reader :C

  • jacob1
    23rd Nov 2017 Developer 0 Permalink
    @optimus2006 (View Post)
    create a folder named "scripts" and put your script inside there

    And also it can't be in a random place. It has to be right next to Powder.exe. If you don't know where you put it, go into tpt, open settings and click on "open data folder"
    Edited once by jacob1. Last: 23rd Nov 2017
  • optimus2006
    26th Nov 2017 Member 0 Permalink

    @jacob1 (View Post)

     

    Oh, sorry, I meant folder, not file, because it is a folder I checked it. Also, I'll try that, thanks!

     

    I did as I was told, and I found the folder and placed my mod into it. I set the name to: My own element-GLER.lua

    But that didn't work, and I saw that other mods I downloaded had numbers in front of them, so I put a number in front of the Lua file, and its name was now this: 4 My own element-GLER.lua

    (Btw, the number 4 was not the starting of any other mods I downloaded.)

    But it did not show up in both names and did not show up in the LUA mod manager as well. Sorry if I'm bugging you too much :C )

    Edited once by optimus2006. Last: 26th Nov 2017
  • Potbelly
    26th Nov 2017 Banned 0 Permalink
    This post is hidden because the user is banned
  • jacob1
    26th Nov 2017 Developer 1 Permalink
    @optimus2006 (View Post)
    Don't put it inside scripts/downloaded/. Just put it inside of scripts/. You don't need a number.

    The downloaded folder is only for online scripts, and they won't load unless they were actually downloaded properly from the server.
  • optimus2006
    27th Nov 2017 Member 0 Permalink

    @jacob1 (View Post)

     

    Ohhhhh okay! XD