Help Needed Regarding Playing My Mod

  • LivoniaMapping
    2nd Jan 2023 Member 0 Permalink

    Hello!

     

    I have recently started working on my own mod for The Powder Toy. I read many tutorials from the Wiki and downloaded the source code from GitHub. I have created a new element and I am ready to test it to see if it works properly. However, I am unsure how to play the game. I cannot find an .exe file anywhere. I am sorry if I am missing something obvious, I am new to modding. Please help me find how to play my mod.

    Thank you.

  • jacob1
    2nd Jan 2023 Developer 1 Permalink
    @LivoniaMapping (View Post)
    You'll need to compile the game to generate the .exe file

    You can find the guide to do that here: https://powdertoy.co.uk/Wiki/W/Building_TPT_with_Meson.html

    Along with the element creation tutorial you followed, that should be enough to mod the game and create new elements.
  • LivoniaMapping
    3rd Jan 2023 Member 0 Permalink

    @jacob1 (View Post)

    Thanks!

    I have a few questions before I compile the game.

    Once I generate the .exe file, will I still be able to add new elements?

    If yes, then will the game automatically update to include new elements when I add new elements, or will I have to do that manually?

    Thank you for your help.

  • jacob1
    3rd Jan 2023 Developer 0 Permalink
    @LivoniaMapping (View Post)
    You have to recompile the game every time you change the source code to generate a new .exe

    By default, the .exe will be a debug build (slow), but there are instructions for compiling a release build on the wiki.