Compiling error

  • jacob1
    2nd Jan 2013 Developer 0 Permalink
    @Empoliam (View Post)
    maybe you need to run generator.py again. Every time you make a new element and add the //TPT-directive things with the correct id (one greater than the one before it, I think the latest element is BVBR), you need to run it again.

    Because if the menu is showing up, it should be working correctly
  • Empoliam
    2nd Jan 2013 Member 0 Permalink

    @jacob1 (View Post)

    The elements are working fine, and will show up on all the menus except my own one. It seems to be a problem with the menu, as no other elements will show on the menu if i edit their designated menu to appear on my new menu. generator.py has not fixed the problem, so i have completely exausted all the options i am capable of on my own.

    (I am being a real drag on people's time in this thread, aren't I? I feel like a complete noob.)

  • jacob1
    2nd Jan 2013 Developer 0 Permalink
    @Empoliam (View Post)
    did you add your menu between tools and deco, increase SC_TOTAL by one, and ...

    actually, go into GameModel.cpp, find
    if(sim->elements[i].MenuSection < 12&& sim->elements[i].MenuVisible)

    and change it to

    if(sim->elements[i].MenuSection < SC_TOTAL && sim->elements[i].MenuVisible)