I'm trying to make a new element. I'm using the page on the wiki that says how to do this, and I got stuck on part 1, step 1, sentence 1.
Part One: Defining the Element's Properties
Step One: Defining the Element
Create a new element file, (HETR.cpp for this example, or whatever name your element will be) inside of src/simulation/elements.
I don't know where this src/simulation/elements folder is. It's not in my TPT folder.
How do I do this?
Alright so first, you have to get the TPT source code. Go to https://github.com/ThePowderToy/The-Powder-Toy , click on that green button that says 'Clone or Download' , then click 'Download ZIP'. Unpack the zip, and voila, you'll have a folder with the source code stuff in it. Navigate to <source-folder-name>/src/simulation/elements, create a new file, and have fun modding!
But how do you open? I can't find the file
In other words, it's going to take you months, unless you already have a ton of coding experience.
Even then, it won't be easy, and even when you get it right, it still won't work properly.
Why is my TYPE_GAS not moving?
elements.element(elements.DEFAULT_PT_NBLE)
Is not enough. Enjoy being discouraged at every step while wondering why nobody made a program for this.
oh and btw try the LUA version. ask around, LUA is much easier to work with, doesn't require 'compiling' which everyone says is easy but ITS NOT. download scripts other people made, change a few things, restart powder toy to get a feel for what the thing does that you changed, that way, you'll have a feel for this. then, copy their element, make a .lua file and edit everything until you actually have your own element. That worked for me, despite me absolutely hating how everything works.
using Lua means you don't have to compile a new version of powder toy every single time:
Oops, my element is supposed to be in another category. WELP, Time to Compile again (it doesn't take 10 seconds)
yeah but how do you run the folder you just modded
nice