Cr15py's LUA Modloader

  • Cr15py
    30th Jul 2011 Member 0 Permalink
    Intro:
    This is a Modloader I made which reads a file called "mods" in a folder called "lua". At this point in time, do to my being tired and wanting to sleep, you must set up the folders and files, but I will add way more features in future releases.

    Instructions:
    1) Download the file from here and save it as "Modloader.lua".
    2) Make a folder in your Powder Toy folder called "lua".
    3) Make a file in the folder you just made called "mods.txt".
    4) Add your lua mods into this folder(If any).
    5) Open "mods.txt" and put the mod's file names in, each on its own line.
    6) Every time you open Powder Toy, enter into console(everything inside the outer quotes, including quotes) "dofile("Modloader.lua")".
    7) Enjoy! You don't need to dofile() every mod n_n

    TO DO:
    -In-console mod adding, so that you don't have to modify mods.txt directly
    -Hopefully add in dynamic mod loading tomorrow
    -Down the road I may add a method mod makers can use so that users can reset all changes made by a mod to their current game session
    -And maybe more!
  • vanquish349
    30th Jul 2011 Member 0 Permalink
    before you go, you need to fix your link
  • aXis
    30th Jul 2011 Member 0 Permalink
    @Vanquish349 your right you need to fix the scipt.
  • vanquish349
    30th Jul 2011 Member 0 Permalink
    link, i meant link
  • aXis
    30th Jul 2011 Member 0 Permalink
    And I mean the script it needs to be fixed.
  • me4502
    30th Jul 2011 Member 0 Permalink
    @Cr15py (View Post)
    btw, maybe add an optional autorun.lua file that autoruns it on tpt startup
  • Mister-Twister
    30th Jul 2011 Banned 0 Permalink
    This post is hidden because the user is banned
  • me4502
    30th Jul 2011 Member 0 Permalink
    @Cr15py (View Post)
    btw, i was going to add something like this actually to my mod
  • Mister-Twister
    31st Jul 2011 Banned 0 Permalink
    This post is hidden because the user is banned
  • MasterMind555
    31st Jul 2011 Member 0 Permalink
    @Cr15py (View Post)
    It's Lua, not LUA
Locked by LBPHacker: necro