id Tech Forums

id Tech 4 (Doom3/Prey/Q4) => id Tech 4 Mod Coding => Topic started by: VGames on March 03, 2016, 08:53:21 PM

Title: Errors while compiling for ROE
Post by: VGames on March 03, 2016, 08:53:21 PM
Ok so I'm transferring all my code for PD3 to a source that can be used with ROE and I've run into a problem. I'm copying and pasting everything just like it is in the source that works fine for standard Doom 3 but for some reason I'm getting some errors and a warning when I try to compile the ROE source:


4>c:\doom3_sdk\src\d3xp\Entity.h(149) : error C2143: syntax error : missing ';' before '*'
4>c:\doom3_sdk\src\d3xp\Entity.h(149) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
4>c:\doom3_sdk\src\d3xp\Entity.h(149) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
4>c:\doom3_sdk\src\d3xp\Entity.h(149) : warning C4183: 'CommonFireProjectile': missing return type; assumed to be a member function returning 'int'


This is the line that's giving me the problem:


idProjectile*         CommonFireProjectile( const char *projDefName, const idVec3 &firePos, const idVec3 &dir ); // PD3


This line works perfectly ok for Standard Doom 3 source. Any ideas?
Title: Re: Errors while compiling for ROE
Post by: VGames on March 05, 2016, 02:15:05 PM
Fixed the source code problems. I forgot to include this at the top of the file:


class idProjectile;


Now I'm getting this error while trying to start the game:


ERROR: Error: file script\weapon_shotgun_double.script, line 24: 'weapon_shotgun_double' : redefinition; different basic types

Any ideas? I don't understand how I can be redefining the double barrel when the game should be ignoring all script files in pak files that come before my new ones.
Title: Re: Errors while compiling for ROE
Post by: VGames on March 05, 2016, 02:26:07 PM
Fixed this too. Nevermind.
Title: Re: Errors while compiling for ROE
Post by: VGames on March 05, 2016, 03:38:47 PM
Ok now I'm getting this message when I run ROE with PD3:

ERROR: Error: file script/map_phobos1.script, line 19: Exceeded global memory size (296608 bytes)

I've tried increasing this number and then I get another error message about exceeding the max amount of statements. I've increased that max amount allowed and the game just completely crashes to desktop. Any ideas?
Title: Re: Errors while compiling for ROE
Post by: VGames on March 05, 2016, 10:26:00 PM
Fixed the problem by removing everything in the script folder in my pak files that ROE won't need. It works.