Compiling error

  • cyberdragon
    1st Jan 2013 Member 0 Permalink

    I don't know...for some reason...I don't even have "ElementClasses.h". O_O Where did it go?!

  • Candunc
    2nd Jan 2013 Member 0 Permalink

    @Empoliam (View Post)

    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.

  • Pilihp64
    2nd Jan 2013 Developer 1 Permalink

    @Empoliam (View Post)

    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.

     

    @Candunc (View Post)

    If you look at his element file, it does indeed have a menu section and everything set.

  • Empoliam
    2nd Jan 2013 Member 0 Permalink

    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)?

  • Fast-Driver
    2nd Jan 2013 Member 0 Permalink

    @Empoliam (View Post)

     Adding menus used to be in interface.h, try that.

  • Empoliam
    2nd Jan 2013 Member 0 Permalink

    @Fast-Driver (View Post)

    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.

  • Fast-Driver
    2nd Jan 2013 Member 0 Permalink

    @Empoliam (View Post)

     You aren't being stupid, I didn't know that either. A lot of stuff has changed that I have to learn too. :)

  • Empoliam
    2nd Jan 2013 Member 0 Permalink

    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.

    @Fast-Driver (View Post)

    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) 

  • Fast-Driver
    2nd Jan 2013 Member 1 Permalink

    @Empoliam (View Post)

     Newbie is someone who is learning. Noob is someone who doesn't even try. :)

  • Empoliam
    2nd Jan 2013 Member 0 Permalink

    @Fast-Driver (View Post)

    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.