editing the source through the console

  • bobsterman123
    17th Jul 2011 Member 0 Permalink
    Well, the main problem with making mods is compiling and getting all those dependencies. So since the powdertoy is sorta written in C++ how hard would it be able to edit the source (specifically particles) while in TPT? let the flamming begin..
  • Pilihp64
    17th Jul 2011 Developer 0 Permalink
    It's in C.
    Part of the point of compiling is so people can't change the source easily, impossible.
    Edited by cracker64, 2011-07-16 03:13:38
  • me4502
    17th Jul 2011 Member 0 Permalink
    @bobsterman123 (View Post)
    Now this is where i come in and save the day,

    In my mod I am adding the ability to add elements via lua that work the same as if added via source
  • Videogamer555
    17th Jul 2011 Member 0 Permalink
    COOL! what can I currently do in LUA? Edit already existing elements?
  • code1949
    17th Jul 2011 Member 0 Permalink
    @Videogamer555 (View Post)
    I think so. But I don't think it would save.
  • me4502
    17th Jul 2011 Member 0 Permalink
    @Videogamer555 (View Post)
    if your talking about my mod, yes but it wont save, it has the ability to make flammable water which is cool
  • Videogamer555
    17th Jul 2011 Member 0 Permalink
    Will you add a feature in a future version of your mod that will let you save to a file, element changes and additions so that when you next load the program it will also load your new and edited elements?


    On a side note, I know LUA console has many more possible commands (even without modding) than the previous console (which just let you set a few variables). What are the new features that became available when LUA version of the console was introduced?
    Edited by Videogamer555, 2011-07-17 02:30:06
  • code1949
    17th Jul 2011 Member 0 Permalink
    @Videogamer555 (View Post)
    That depends on if it is possible without causing any problems.
  • me4502
    17th Jul 2011 Member 0 Permalink
    @Videogamer555 (View Post)
    saving would make it only compatible with its own saves

    check the lua wiki section

    edit:::

    do you mean saving the modified elements and loading them so you dont need to remodify on restrat? if so i will try
    Edited by me4502, 2011-07-17 03:51:04
  • Videogamer555
    17th Jul 2011 Member 0 Permalink
    @me4502 (View Post)
    "do you mean saving the modified elements and loading them so you dont need to remodify on restrat? if so i will try"

    Sounds good.

    Also, will adding menus be possible in your mod?