I don't know...for some reason...I don't even have "ElementClasses.h". O_O Where did it go?!
Ah, you need to add it to the menus. Elements don't show up, even if they are included in the source, unless they are in a menu.
There is another place you would need to add your element to manually, it would be best to use the generator.py to do it automatically.
It is probably the line in ElementClasses.cpp (you did the header, but not this?) that is causing it to be missing from the compiled version.
If you look at his element file, it does indeed have a menu section and everything set.
Ah, thanks guys. I'll try this when I get on my computer.
EDIT:
Thanks cracker, your solution worked perfectly!
EDIT2:
I know this is very off topic, but,
I have been flicking through various .h and .cpp files,but i have not found any way to add menus. HOw would one go about this process now that the wiki tutorial is out of date (or so it seems)?
Adding menus used to be in interface.h, try that.
Interface.h has been replaced with a folder, and no file in said folder contains any visible way to create a menu. :/
The closest thing i have found to anything regarding menu's is SimulationData.h, but it only contains the menu's IDs.
From what i have gathered, the old way seems like it was much easier.
EDIT:
Adding the menu id was easy, but i have yet to be able to make it visible and add a graphic.
Is it difficult, or am i just being stupid here?
EDIT 2:
I believe i have found it. You must edit SimulationData.h and .cpp. I clearly was just being stupid.
You aren't being stupid, I didn't know that either. A lot of stuff has changed that I have to learn too. :)
I have almost got it, but despite the menu appearing and functioning correctly, the elements fail to be visible in my menu, even though they are configured to appear in said menu, and are set to visible. Im running out of places to look now.
Oh, ok then.
We can all learn a few things from a newbie editing random files. (Probably not, as the 'newbie' class will contain all the people who haven't read the wiki tutorial on compiling)
Newbie is someone who is learning. Noob is someone who doesn't even try. :)
Indeed
I am going to trawl through more files, and i will hopefully find the correct code, but chances are if i wait till tommorow, a dev or someone with good C++ knowledge will have replied. The devs seem to be active whilst i sleep, which is rather annoying, but cannot be helped.