Starting to compile/mod

  • Weatherdude
    28th Jul 2013 Member 0 Permalink

    In the tutorial to modding, the first step is to create a "new element folder in src/simulation/elements" Could someone please tell me where to find the folder or whatever "src/simulation/elements" is so I can start modding?

  • boxmein
    28th Jul 2013 Former Staff 0 Permalink
    If you go to https://github.com/FacialTurd/The-Powder-Toy/archive/master.zip , you'll get the source code of the project as a zip file. Unpack the file into somewhere comfortable, like C:\TPT, or C:\Users\\Desktop\TPT.

    After that just open the folder and start following the tutorial. Slashes in filenames indicate that you need to go into a folder.
  • Weatherdude
    28th Jul 2013 Member 0 Permalink

    Thanks! One other question... After I sucessfully got into the src/sim/elements, I saw all the elements in TPT with a link to all their data as described in tutorial (gravity flammable etc.) how do I create a new element file?

  • boxmein
    28th Jul 2013 Former Staff 0 Permalink
    @Weatherdude (View Post)
    If you can see their "extensions" then you're good, if not, then go to Folder Options, then select View... and uncheck Hide extensions for known file types.

    After that, just create a new text document and delete its existing extension and rename it to ELEM.cpp (It'll show a warning if you did everything okay, then confirm it and you'll have your element file.

    Edit it with some awesome text editor like Sublime.
  • Weatherdude
    28th Jul 2013 Member 0 Permalink

    What are "extentions"?

  • hittox
    28th Jul 2013 Member 0 Permalink

    @Weatherdude (View Post)

    They are the text that comes after the name of a file like this: FILE.txt

  • Weatherdude
    28th Jul 2013 Member 0 Permalink

    like FILE.h or  .cpp? Also, where do I go to make a new text document?

    Edited once by Weatherdude. Last: 28th Jul 2013
  • MiningMarsh
    28th Jul 2013 Member 0 Permalink

    right click->create new->text document

  • Weatherdude
    28th Jul 2013 Member 0 Permalink

    Thanks!

     

    After I have changed the properties of several elements, how do I get my changes into TPT (even just on my computer) so I can use the modified elements?

    Edited once by Weatherdude. Last: 28th Jul 2013
  • mniip
    28th Jul 2013 Developer 0 Permalink