Help with my Mod

  • Candunc
    6th Jan 2011 Member 0 Permalink
    I got these errors.

    includes/powder.h:437: error: expected ‘}’ before numeric constant
    In file included from src/graphics.c:17:
    includes/powder.h:437: error: expected ‘}’ before numeric constant
    In file included from src/interface.c:14:
    includes/powder.h:437: error: expected ‘}’ before numeric constant
    In file included from src/main.c:45:
    includes/powder.h:437: error: expected ‘}’ before numeric constant
    In file included from src/powder.c:4:
    includes/powder.h:437: error: expected ‘}’ before numeric constant

    Can you help? It is in my source.
  • Neospector
    6th Jan 2011 Member 0 Permalink
    Candunc:
    includes/powder.h:437: error: expected ‘}’ before numeric constant

    It's thinking there should be a "}" on that line somewhere. Go to that line and add one.
    Btw, it's one big error actually.
  • Made2Shred
    6th Jan 2011 Member 0 Permalink
    i had same problum. go to line 436 and add a comma to the end.
  • Candunc
    6th Jan 2011 Member 0 Permalink
    @Made2Shred
    Ok, Thanks. I will do that tomorrow.

    (Keep this unlocked so I can ask for help later)
  • Xenocide
    6th Jan 2011 Former Staff 0 Permalink
    Future referance.
    includes/powder.h:437: error: expected ‘}’ before numeric constant
    path/file.ext@line# type of error.

    So look at the file mentioned on the line mentioned. Sometimes it'll even give you a character number.
  • Candunc
    6th Jan 2011 Member 0 Permalink
    includes/powder.h:439: error: expected ‘}’ before numeric constant
    includes/powder.h:441: error: extra brace group at end of initializer
    includes/powder.h:441: error: (near initialization for ‘ptypes[141]’)
    includes/powder.h:596: error: expected ‘}’ before numeric constant
    In file included from src/graphics.c:17:
    includes/powder.h:439: error: expected ‘}’ before numeric constant
    includes/powder.h:441: error: extra brace group at end of initializer
    includes/powder.h:441: error: (near initialization for ‘ptypes[141]’)
    includes/powder.h:596: error: expected ‘}’ before numeric constant
    In file included from src/interface.c:14:
    includes/powder.h:439: error: expected ‘}’ before numeric constant
    includes/powder.h:441: error: extra brace group at end of initializer
    includes/powder.h:441: error: (near initialization for ‘ptypes[141]’)
    includes/powder.h:596: error: expected ‘}’ before numeric constant
    In file included from src/main.c:45:
    includes/powder.h:439: error: expected ‘}’ before numeric constant
    includes/powder.h:441: error: extra brace group at end of initializer
    includes/powder.h:441: error: (near initialization for ‘ptypes[141]’)
    includes/powder.h:596: error: expected ‘}’ before numeric constant
    In file included from src/powder.c:4:
    includes/powder.h:439: error: expected ‘}’ before numeric constant
    includes/powder.h:441: error: extra brace group at end of initializer
    includes/powder.h:441: error: (near initialization for ‘ptypes[141]’)
    includes/powder.h:596: error: expected ‘}’ before numeric constant
    make: *** [powder-x] Error 1

    I got a new one.
  • HarmonicFarts
    6th Jan 2011 Member 0 Permalink
    @Candunc
    I used to code some basic stuff for mods in games.
    And the first thing I was taught that "}" is very important in coding,
    So if you leave one out, you're f***ed.
  • Candunc
    6th Jan 2011 Member 0 Permalink
    Code Fixed. Remaining errors: None.
  • Candunc
    6th Jan 2011 Member 0 Permalink
    http://www.box.net/shared/tycpm7u232

    I have errors with this mod. I don't know what the error is, it won't tell me.
  • Candunc
    6th Jan 2011 Member 0 Permalink
    *Bump*
    I can't find the error.