Code Help

  • Candunc
    27th Jul 2012 Member 0 Permalink

    Hello, I am working on a new mod and for fun I am adding a new gameplay mechanic. This is very barely the start of the coding, but I cannot get the elements to define and appear in game. 

     

    Source code will be hosted on Box for the mean time: [Source Removed]

     

    Thanks, please lock so no necros

  • vanquish349
    27th Jul 2012 Member 0 Permalink
    Around line 240 of powder.h there will be
    #define PT_NUM 161
    #define PT_GOLD 161
    #define PT_PGLD 162
    #define PT_MGLD 163
    #define PT_SLVR 164
    #define PT_PSVR 165
    #define PT_MSVR 166
    #define PT_BIRN 167
    #define PT_MIRN 168
    #define PT_FTP 169

    when it should be
    #define PT_GOLD 161
    #define PT_PGLD 162
    #define PT_MGLD 163
    #define PT_SLVR 164
    #define PT_PSVR 165
    #define PT_MSVR 166
    #define PT_BIRN 167
    #define PT_MIRN 168
    #define PT_FTP 169
    #define PT_NUM 170


    You see how PT_NUM is always at the end of the list, as that tells the game how many elements there are in the game, elements after that number wont get displayed.
  • Candunc
    27th Jul 2012 Member 0 Permalink

    Oh, Ok, I forgot about that. Thanks!