Plugins system

  • Kavukamari
    10th Sep 2010 Member 0 Permalink
    This is sort of a crazy idea, but bear with me.

    what if we added a big chunk of code to TPT that could quickly add new powders to a still-running powdertoy, you would just write a new powder into a txt file or something, put it in the Plugins folder, and it would add it to the game even if it is still running.

    this would be hard to implement, and developers might have to take other plugins into consideration as well since their new element would have to interact with others in some way, but despite this, it would be a fun way to mess around with new custom powder types, and if you don't like the change, you can just move the txt file out of the plugins folder

    any comments?
  • devast8a
    10th Sep 2010 Former Staff 0 Permalink
    I would suggest using LUA/Python or some other already made language for plugins.
  • Awesan
    10th Sep 2010 Member 0 Permalink
    I would suggest an ini/xml file that gets parsed at startup. The game comes with some standard elements, and you can create new ones based on inheritance. (For example, inherit clone, but make it melt at 600 degrees.) Should be fun, but on the other hand, bit of a waste of time.
  • Kavukamari
    10th Sep 2010 Member 0 Permalink
    I'm putting this out there as a suggestion for others to try really, as I am really not an expert at all on the subject of coding stuff like this..

    but i do think it would be really interesting to be able to try out new particles without having to compile a new exe.
  • ZebraineZ
    10th Sep 2010 Member 0 Permalink
    I think they're making something like that when they do that source code rewrite, for windows they will or might make some special dll folder for people to put their plugins in. I don't know about mac though !
  • devast8a
    10th Sep 2010 Former Staff 0 Permalink
    ZebraineZ
    Doubt it. Platform Independence would be killed. (Since most people will only compile plugins for Windows)
  • HK6
    10th Sep 2010 Former Staff 0 Permalink
    I think a language similar to XML would be the way to go with this. It would allow you to just run your .exe again instead of re-compiling and would give you your changes.
  • Sylvi
    10th Sep 2010 Moderator 0 Permalink
    The problem is Simon said that he doesn't want to ruin the platform and core.
  • Wilq15
    10th Sep 2010 Member 0 Permalink
    Yes XML is good idea. And Plugins are good idea cause people just can share they plugs too! And it makes game interesting even more!
  • lolzy
    10th Sep 2010 Former Staff 0 Permalink
    It makes adding mods so much easier too.