Big problem :(

  • Dragonfree97
    27th Nov 2010 Member 0 Permalink
    Okay, so I added a new section to the menu, SC_SPECIALII, added two elements to it, called ACCE and STNH, code for which is here:

    {"STNH", PIXPACK(0xEF07F7), 0.0f, 0.00f * CFDS, 0.90f, 0.00f, 0.0f, 0.0f, 0.00f, 0.000f * CFDS, 0, 0, 0, 0, 0, 1, SC_SPECIALII, R_TEMP+0.0f +273.15f, 88, "Only lets STNE through. Use with PROA to make a stone generator."},

    {"ACCE", PIXPACK(0xB2F986), 0.0f, 0.00f * CFDS, 0.90f, 0.00f, 0.0f, 0.0f, 0.00f, 0.000f * CFDS, 0, 0, 0, 0, 0, 1, SC_SPECIALII, R_TEMP+0.0f +273.15f, 88, "Accelerates LASR, PHOT and NEUT."},

    code for SPECIALII menu is

    {"\xCC", "Specials II", 0}

    and it shows STNH as the conductive indestructible solid wall, and both elements have no name over their icon on the menu. Help!
  • Simon
    27th Nov 2010 Administrator 0 Permalink
    Did you define SC_SPECIALII correctly?
  • Dragonfree97
    27th Nov 2010 Member 0 Permalink
    #define SC_SPECIALII 13

    I think so.
  • Dragonfree97
    27th Nov 2010 Member 0 Permalink
    I tried changing the name of the elements, their menu position, everything, but it still wouldn't work...
  • Pilihp64
    27th Nov 2010 Developer 0 Permalink
    if this is the first one you are adding, it should be 9, not 13, and then add one to SC_TOTAL
  • Dragonfree97
    27th Nov 2010 Member 0 Permalink
    It is the fifth one I am adding, the numbers are right.

    The list is

    #define SC_WALL 0
    #define SC_ELEC 1
    #define SC_EXPLOSIVE 2
    #define SC_FIRES 3
    #define SC_GAS 4
    #define SC_LIQUID 5
    #define SC_LIQUIDII 6
    #define SC_POWDERS 7
    #define SC_SOLIDS 8
    #define SC_NUCLEAR 9
    #define SC_PARTICLE 10
    #define SC_LIVING 11
    #define SC_SPECIAL 12
    #define SC_SPECIALII 13
    #define SC_TOTAL 14
  • pilojo
    27th Nov 2010 Member 0 Permalink
    Too many maybe? Theres an element limit so I'm going to guess theres a section limit too.
  • Pilihp64
    27th Nov 2010 Developer 0 Permalink
    no i added empty menu sections and could get 14, i'm not sure but just check you have a {"\xCC", "Specials II", 0} part for each section, if youre missing one the last one will not show up.
  • Dragonfree97
    27th Nov 2010 Member 0 Permalink
    @Pilojo

    What is the limit

    @Cracker64

    Yep, have all of them.
  • pilojo
    27th Nov 2010 Member 0 Permalink
    Element limit is 120. Was just taking a guess that theres a section limit.