Management Karbust 4909 Posted December 31, 2015 Management Share Posted December 31, 2015 Hello, I'm developing my own game, but i'm with a little complicantion when I try to add lines on the exp table in order to increase the max level. The original table has just 121 (120 levels) lines of levels, the one I'm trying to add has 256 lines (255 levels). I get a error when I try to add the new exp table (http://pastebin.com/2sUjrg20): compile constants.cpp constants.cpp:447: error: too many initializers for 'DWORD [121]' Makefile:120: recipe for target 'OBJDIR/constants.o' failed How can I solve this problem? Thanks Kind regards, charparodar Link to comment Share on other sites More sharing options...
Ken 905 Posted December 31, 2015 Share Posted December 31, 2015 You just need to remove the last experience, that's it Kind Regards ~ Ken Do not be sorry, be better. Link to comment Share on other sites More sharing options...
Management Karbust 4909 Posted December 31, 2015 Author Management Share Posted December 31, 2015 compile constants.cpp constants.cpp:446: error: too many initializers for 'DWORD [121]' Makefile:120: recipe for target 'OBJDIR/constants.o' failed Link to comment Share on other sites More sharing options...
Ken 905 Posted December 31, 2015 Share Posted December 31, 2015 Table's size must equal to 120, not 121. 1 Do not be sorry, be better. Link to comment Share on other sites More sharing options...
Management Karbust 4909 Posted December 31, 2015 Author Management Share Posted December 31, 2015 But I'm trying to increase the level max to 255, on another source I already did that, but is full of bugs made by me that I can't resolve, so I decided to start from scratch, I already compared both tables and I can't find anything diferent... The lvl 0 counts to with 0 experience, then are 121 levels, 120 normal levels and the 0 level... Link to comment Share on other sites More sharing options...
Frozen 189 Posted December 31, 2015 Share Posted December 31, 2015 too many initializers for 'DWORD [121]' What this means is that the table that is defined is too small values that have. You just need to change DWORD [121] to DWORD [256] 1 Link to comment Share on other sites More sharing options...
Management Karbust 4909 Posted December 31, 2015 Author Management Share Posted December 31, 2015 Problem Solved, I just change common/lenght.h -> PLAYER_EXP_TABLE_MAX = 120 to PLAYER_EXP_TABLE_MAX = 255 and now is all working. Thanks to both of you... Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now