Author Topic: Errors while compiling for ROE  (Read 830 times)

0 Members and 1 Guest are viewing this topic.

VGames

  • PD3 Beta Testers
  • Hero Member
  • *
  • Posts: 757
  • Karma: +17/-69
    • View Profile
Errors while compiling for ROE
« 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:

Code: [Select]
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:

Code: [Select]
idProjectile*         CommonFireProjectile( const char *projDefName, const idVec3 &firePos, const idVec3 &dir ); // PD3

This line works perfectly ok for Standard Doom 3 source. Any ideas?
« Last Edit: March 03, 2016, 08:57:37 PM by VGames »
Get the latest on Perfected Doom 3 here - http://www.moddb.com/mods/perfected-doom-3-version-500

VGames

  • PD3 Beta Testers
  • Hero Member
  • *
  • Posts: 757
  • Karma: +17/-69
    • View Profile
Re: Errors while compiling for ROE
« Reply #1 on: March 05, 2016, 02:15:05 PM »
Fixed the source code problems. I forgot to include this at the top of the file:

Code: [Select]
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.
Get the latest on Perfected Doom 3 here - http://www.moddb.com/mods/perfected-doom-3-version-500

VGames

  • PD3 Beta Testers
  • Hero Member
  • *
  • Posts: 757
  • Karma: +17/-69
    • View Profile
Re: Errors while compiling for ROE
« Reply #2 on: March 05, 2016, 02:26:07 PM »
Fixed this too. Nevermind.
Get the latest on Perfected Doom 3 here - http://www.moddb.com/mods/perfected-doom-3-version-500

VGames

  • PD3 Beta Testers
  • Hero Member
  • *
  • Posts: 757
  • Karma: +17/-69
    • View Profile
Re: Errors while compiling for ROE
« Reply #3 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?
Get the latest on Perfected Doom 3 here - http://www.moddb.com/mods/perfected-doom-3-version-500

VGames

  • PD3 Beta Testers
  • Hero Member
  • *
  • Posts: 757
  • Karma: +17/-69
    • View Profile
Re: Errors while compiling for ROE
« Reply #4 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.
Get the latest on Perfected Doom 3 here - http://www.moddb.com/mods/perfected-doom-3-version-500