Ok, well I was aiming to modify only one file (set by taylor in mantis). And I guess NUM_COLORS would also be better off in alphacolors.h anyway. Ill make some changes as to what you suggested (didnt notice def_files before, still new to the fs code) Will edit this post when I'm finished making changes.
EDIT: Done. 3 files now changed: alphacolors.cpp, alphacolors.h, and def_files.cpp
Changes:
- Tweaked parsing a little (use strncpy first then strncat)
- New function void parse_colors_tbl(char* filename) to do the tbl parsing, again with coding and comments
stolen borrowed from ai_profiles.cpp - Default table stored in def_files.cpp as Default_colors_table, still for netplayer colors only
- Black and light pink are still initialized manually, since they don't exist in Color_netplayer[]
- alphacolors.h updated to reflect changes
Unlike the previous solution its a bit less efficient (loops through the color_netplayer array for each entry in the default table). Does this matter too much?
[attachment deleted by admin]