Jump to content

Home

Major problem compiling the new repository code


JRHockney*

Recommended Posts

I got the following errors from my last compilation after updating it and I haven't changed anything:

 

g:\documents and settings\john\desktop\ojp svn repository\enhanced\source\game\g_crash.c(196) : fatal error C1083: Cannot open include file: 'windows.h': Permission denied

g_combat.c

g:\documents and settings\john\desktop\ojp svn repository\enhanced\source\game\g_combat.c(2648) : warning C4013: 'saberReactivate' undefined; assuming extern returning int

g:\documents and settings\john\desktop\ojp svn repository\enhanced\source\game\g_combat.c(2650) : error C2065: 'saberBackToOwner' : undeclared identifier

g:\documents and settings\john\desktop\ojp svn repository\enhanced\source\game\g_combat.c(2650) : warning C4047: '=' : 'void (__cdecl *)(gentity_t *)' differs in levels of indirection from 'int'

g_cmds.c

g:\documents and settings\john\desktop\ojp svn repository\enhanced\source\game\g_cmds.c(1058) : warning C4098: 'SetTeam' : 'void' function returning a value

BSCMAKE: error BK1506 : cannot open file '..\debug\jk2game\g_crash.sbr': No such file or directory

 

The first one is sadly obvious. It uses WIN32 files and I deleted all my Win32 files as apart of Atska's tutorial. I was unable to compile it in the first place otherwise. Can anyone help? Are these win32 files for the new crash recovery file really neccessary?

 

Also, the reason I updated tonight again in the first place was because I wasnt allowed anything but malee in when I started playing at the code server after I gave myself points. It gave me sign on the screen that said something like: "welcome to the OJP Enhanced code server, it appears you dont have enhanced, ou will crash without it." Any ideas there?

Link to comment
Share on other sites

I've changed the INFINITE define in basic but not enhanced yet, apparently INFINITE is also used by windows, just change

 

#ifndef INFINITE

#define INFINITE ....

 

to #ifndef G_INFINITE

#define G_INFINITE ....

 

edit: don't change it, ill add it to enhanced myself in like 1 minute as of posting this.

 

Hmm K Razor, I've got enhanced all working in VS2003 cept you left DEFAULT_FORCEPOWERS still defined in cg_local.h while its now in bg_public.h :S plz 2 fix u no because it throws a Macro Redefinition warnings and that not so gud for client-side.

Link to comment
Share on other sites

  • 2 weeks later...
  • 4 weeks later...

Well, I just tried compiling the new code and got the following problems:

 

g:\documents and settings\john\desktop\ojp svn repository\enhanced\source\game\npc_stats.c(3587) : error C2065: 'ojp_spmodelrgb' : undeclared identifier

g:\documents and settings\john\desktop\ojp svn repository\enhanced\source\game\npc_stats.c(3587) : error C2224: left of '.string' must have struct/union type

g:\documents and settings\john\desktop\ojp svn repository\enhanced\source\game\npc_ai_seeker.c(50) : error C2039: 'remote' : is not a member of 'gclient_s'

g:\documents and settings\john\desktop\ojp svn repository\enhanced\source\game\g_local.h(667) : see declaration of 'gclient_s'

g:\documents and settings\john\desktop\ojp svn repository\enhanced\source\game\npc_ai_seeker.c(632) : error C2039: 'remote' : is not a member of 'gclient_s'

g:\documents and settings\john\desktop\ojp svn repository\enhanced\source\game\g_local.h(667) : see declaration of 'gclient_s'

g:\documents and settings\john\desktop\ojp svn repository\enhanced\source\game\npc_ai_remote.c(245) : warning C4101: 'muzzle' : unreferenced local variable

g:\documents and settings\john\desktop\ojp svn repository\enhanced\source\game\g_utils.c(1382) : warning C4013: 'OJP_AllPlayersHaveClientPlugin' undefined;

g:\documents and settings\john\desktop\ojp svn repository\enhanced\source\game\g_team.c(297) : error C2039: 'remote' : is not a member of 'gclient_s'

g:\documents and settings\john\desktop\ojp svn repository\enhanced\source\game\g_local.h(667) : see declaration of 'gclient_s'

g:\documents and settings\john\desktop\ojp svn repository\enhanced\source\game\g_team.c(299) : error C2039: 'remote' : is not a member of 'gclient_s'

g:\documents and settings\john\desktop\ojp svn repository\enhanced\source\game\g_local.h(667) : see declaration of 'gclient_s'

g:\documents and settings\john\desktop\ojp svn repository\enhanced\source\game\g_utils.c(1393) : warning C4715: 'G_PlayBoltedEffect' : not all control paths return a value

g:\documents and settings\john\desktop\ojp svn repository\enhanced\source\game\g_items.c(1111) : error C2039: 'remote' : is not a member of 'gclient_s'

g:\documents and settings\john\desktop\ojp svn repository\enhanced\source\game\g_local.h(667) : see declaration of 'gclient_s'

g:\documents and settings\john\desktop\ojp svn repository\enhanced\source\game\g_items.c(1125) : error C2039: 'remote' : is not a member of 'gclient_s'

g:\documents and settings\john\desktop\ojp svn repository\enhanced\source\game\g_local.h(667) : see declaration of 'gclient_s'

g:\documents and settings\john\desktop\ojp svn repository\enhanced\source\game\g_autosave.c(53) : error C2065: 'AUTOSAVE_EDITOR' : undeclared identifier

g:\documents and settings\john\desktop\ojp svn repository\enhanced\source\game\g_autosave.c(104) : error C2065: 'AUTOSAVE_TELE' : undeclared identifier

 

Is this a problem with my code itself or the main code? looks like it has mostly to do with gclients_s. I diffed the base main code with my code and didn't see anything different about it that would make a difference

Link to comment
Share on other sites

It looks like the new remote NPC additions are causing problems with your compile. My compile is working so it's probably something with your copy.

 

It looks like there's missing semi-colon before 'ojp_spmodelrgb' and that 'remote' isn't defined as part of the ->client struct. All that stuff should have updated with the lastest revision so you probably have a conflict in there some where.

Link to comment
Share on other sites

  • 1 month later...

I have a new small list of errors that I've been getting in my lastest compile:

 

g:\documents and settings\john\desktop\ojp svn repository\enhanced\source\game\npc_stats.c(3586) : error C2065: 'ojp_spmodelrgb' : undeclared identifier

g:\documents and settings\john\desktop\ojp svn repository\enhanced\source\game\npc_stats.c(3586) : error C2224: left of '.string' must have struct/union type

g:\documents and settings\john\desktop\ojp svn repository\enhanced\source\game\npc_stats.c(3586) : warning C4047: 'function' : 'const char *' differs in levels of indirection from 'unsigned int'

g:\documents and settings\john\desktop\ojp svn repository\enhanced\source\game\npc_stats.c(3586) : warning C4024: 'Q_strncpyz' : different types for formal and actual parameter 2

g:\documents and settings\john\desktop\ojp svn repository\enhanced\source\game\npc_stats.c(3586) : error C2198: 'Q_strncpyz' : too few arguments for call

g:\documents and settings\john\desktop\ojp svn repository\enhanced\source\game\npc_stats.c(3587) : error C2224: left of '.string' must have struct/union type

 

g:\documents and settings\john\desktop\ojp svn repository\enhanced\source\game\g_autosave.c(53) : error C2065: 'AUTOSAVE_EDITOR' : undeclared identifier

g:\documents and settings\john\desktop\ojp svn repository\enhanced\source\game\g_autosave.c(104) : error C2065: 'AUTOSAVE_TELE' : undeclared identifier

 

 

The errors are probably pretty obvious, but I have no idea what some of the undeclared ones are suppose to be defined as.

Link to comment
Share on other sites

It's pretty obvious that you don't have either g_main.c or g_local.h at r195. Because its all there on the trac. And r195 is relatively old now... About 2 months to be exact. r196 added the extern define of the cvar to g_local.h I guess but, why are you the only one experiencing this, rofl... It compiles here, and razor hasn't said anything about it not compiling. Neither has robo.

Link to comment
Share on other sites

It's pretty obvious that you don't have either g_main.c or g_local.h at r195. Because its all there on the trac. And r195 is relatively old now... About 2 months to be exact. r196 added the extern define of the cvar to g_local.h I guess but, why are you the only one experiencing this, rofl... It compiles here, and razor hasn't said anything about it not compiling. Neither has robo.

 

First of all, I have no idea what r195 means (I'm assuming its the number of revision or something) :p Secondly, I just updated the code today, but I hadn't even looked at the code in over a month. I'm not sure why its doing this. My code or studio version seems to have been different from the beginning. Probably has to do with that tutorial that I originally read just to get the code to compile the first time.

 

Because level of C language understanding, I have no intention of ever commiting anything to the repository anyways. This is just for my own experimentation or to demonstrate possible features or tweaks if I come up with them.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...