Hello,
Just wondering if I can compile the demo version out of the sources? I tried doing so, by first: defining FS2_DEMO in the project's settings. And when compiling, I get an error saying that there are too many initalizers in the file Stats/medal.cpp in the following line (pay attention to the constant NUM_MEDALS):
// coords for indiv medal bitmaps
int Medal_coords[GR_NUM_RESOLUTIONS][NUM_MEDALS][2] = {
{ // GR_640
{ 89, 47 }, // eps. peg. lib
{ 486, 47 }, // imp. order o' vasuda
{ 129, 130 }, // dist flying cross
{ 208, 132 }, // soc service
{ 361, 131 }, // dist intel cross
{ 439, 130 }, // order of galatea
{ 64, 234 }, // meritorious unit comm.
{ 153, 234 }, // medal of valor
{ 239, 241 }, // gtva leg of honor
{ 326, 240 }, // allied defense citation
{ 411, 234 }, // neb campaign victory
{ 494, 234 }, // ntf campaign victory
{ 189, 80 }, // rank
{ 283, 91 }, // wings
{ 372, 76 }, // bronze kills badge
{ 403, 76 }, // silver kills badge
{ 435, 76 }, // gold kills badge
{ 300, 152 }, // SOC unit crest
},
{ // GR_1024
{ 143, 75 }, // eps. peg. lib
{ 777, 75 }, // imp. order o' vasuda
{ 206, 208 }, // dist flying cross
{ 333, 212 }, // soc service
{ 578, 210 }, // dist intel cross
{ 703, 208 }, // order of galatea
{ 103, 374 }, // meritorious unit comm.
{ 245, 374 }, // medal of valor
{ 383, 386 }, // gtva leg of honor
{ 522, 384 }, // allied defense citation
{ 658, 374 }, // neb campaign victory
{ 790, 374 }, // ntf campaign victory
{ 302, 128 }, // rank
{ 453, 146 }, // wings
{ 595, 121 }, // bronze kills badge
{ 646, 121 }, // silver kills badge
{ 696, 121 }, // gold kills badge
{ 480, 244 }, // SOC unit crest
}
};
after checking out the constants:
#ifdef FS2_DEMO
#define NUM_MEDALS 16
#define NUM_MEDALS_FS1 16
#else
#define NUM_MEDALS 18
#define NUM_MEDALS_FS1 16
#endif
I noticed the difference in the numbers. I changed it so from 16 to 18 and recompiled (does that make a difference in the game?). The compilation then when fine. But when running the game from the demo data files, I get a splash screen and then a debugging error:
-----------------------------------
Warning: medals.tbl(55):
Error: Required token = [$Wavefile Base:], found [$Wavefile 1: 1_badge_a.wav].
File:C:\fs2_open\code\Parse\PARSELO.CPP
Line: 329
Call stack:
------------------------------------------------------------------
required_string() parse_medal_tbl() game_init() WinMainSub() WinMain() WinMainCRTStartup() kernel32.dll 77e7eb69()
------------------------------------------------------------------
-------------------------------------------------
I would appreciate if someone could help me fix the thing.
Thanks in advance.