lfnetwork.com mark read register faq members calendar

Thread: Major problem compiling the new repository code
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 10-19-2006, 02:33 AM   #1
JRHockney*
Moderator
 
JRHockney*'s Avatar
 
Join Date: Jan 2006
Posts: 1,255
Hot Topic Starter LFN Staff Member 
Major problem compiling the new repository code

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?


Game screen name: Master Jon Hoc Ni

UDM Quote: in singapore, gangsters are...skinny jacka**es who think they can 0wn you. they hurl insults at u, and then lose in a fight. n00bs
JRHockney* is offline   you may: quote & reply,
Old 10-19-2006, 04:47 AM   #2
razorace
Impressive, Terran!
 
razorace's Avatar
 
Join Date: May 2002
Posts: 9,176
I'm not sure about the windows.h and g_crash.sbr but the others are a problem with one of Ensiform's bugfixes. It looks like he missed a couple of prototypes when he did the code port. I'm working on it right now.


---Jedi Guardian of the Newbie Questions
---Masters of the Force Team Leader / Creator
---Open Jedi Project Lead Moderator / Co-Founder
razorace is offline   you may: quote & reply,
Old 10-19-2006, 05:03 AM   #3
razorace
Impressive, Terran!
 
razorace's Avatar
 
Join Date: May 2002
Posts: 9,176
I've commited fixes for the issues that I know about. The rest sound like problems with using VS Express with the code. Come talk to me about it sometime and maybe we can figure it out.


---Jedi Guardian of the Newbie Questions
---Masters of the Force Team Leader / Creator
---Open Jedi Project Lead Moderator / Co-Founder
razorace is offline   you may: quote & reply,
Old 10-19-2006, 05:24 PM   #4
ensiform
The Stig
 
ensiform's Avatar
 
Join Date: Nov 2004
Location: Sawtooth Cauldron
Posts: 1,241
Current Game: Borderlands 2
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.


iojamp project lead / coder

Last edited by ensiform; 10-19-2006 at 05:58 PM.
ensiform is offline   you may: quote & reply,
Old 10-19-2006, 06:47 PM   #5
razorace
Impressive, Terran!
 
razorace's Avatar
 
Join Date: May 2002
Posts: 9,176
I'll fix the DEFAULT_FORCEPOWERS issue right now.

Isn't this offtopic?


---Jedi Guardian of the Newbie Questions
---Masters of the Force Team Leader / Creator
---Open Jedi Project Lead Moderator / Co-Founder
razorace is offline   you may: quote & reply,
Old 10-29-2006, 12:55 PM   #6
ensiform
The Stig
 
ensiform's Avatar
 
Join Date: Nov 2004
Location: Sawtooth Cauldron
Posts: 1,241
Current Game: Borderlands 2
I've made a note in OJP_Changes_basic.txt saying that you need your proper windows headers where all regular headers are usually supposed to be since some of you thought it was okay to delete your winblows header files.


iojamp project lead / coder
ensiform is offline   you may: quote & reply,
Old 11-26-2006, 03:38 PM   #7
JRHockney*
Moderator
 
JRHockney*'s Avatar
 
Join Date: Jan 2006
Posts: 1,255
Hot Topic Starter LFN Staff Member 
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(63 2) : 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(24 5) : 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


Game screen name: Master Jon Hoc Ni

UDM Quote: in singapore, gangsters are...skinny jacka**es who think they can 0wn you. they hurl insults at u, and then lose in a fight. n00bs
JRHockney* is offline   you may: quote & reply,
Old 11-27-2006, 03:49 PM   #8
razorace
Impressive, Terran!
 
razorace's Avatar
 
Join Date: May 2002
Posts: 9,176
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.


---Jedi Guardian of the Newbie Questions
---Masters of the Force Team Leader / Creator
---Open Jedi Project Lead Moderator / Co-Founder
razorace is offline   you may: quote & reply,
Old 11-27-2006, 08:37 PM   #9
ensiform
The Stig
 
ensiform's Avatar
 
Join Date: Nov 2004
Location: Sawtooth Cauldron
Posts: 1,241
Current Game: Borderlands 2
looks more like his code is not up-to-date.


iojamp project lead / coder
ensiform is offline   you may: quote & reply,
Old 01-09-2007, 10:07 PM   #10
JRHockney*
Moderator
 
JRHockney*'s Avatar
 
Join Date: Jan 2006
Posts: 1,255
Hot Topic Starter LFN Staff Member 
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.


Game screen name: Master Jon Hoc Ni

UDM Quote: in singapore, gangsters are...skinny jacka**es who think they can 0wn you. they hurl insults at u, and then lose in a fight. n00bs
JRHockney* is offline   you may: quote & reply,
Old 01-09-2007, 10:14 PM   #11
ensiform
The Stig
 
ensiform's Avatar
 
Join Date: Nov 2004
Location: Sawtooth Cauldron
Posts: 1,241
Current Game: Borderlands 2
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.


iojamp project lead / coder
ensiform is offline   you may: quote & reply,
Old 01-09-2007, 10:46 PM   #12
JRHockney*
Moderator
 
JRHockney*'s Avatar
 
Join Date: Jan 2006
Posts: 1,255
Hot Topic Starter LFN Staff Member 
Quote:
Originally Posted by ensiform
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.


Game screen name: Master Jon Hoc Ni

UDM Quote: in singapore, gangsters are...skinny jacka**es who think they can 0wn you. they hurl insults at u, and then lose in a fight. n00bs
JRHockney* is offline   you may: quote & reply,
Old 01-09-2007, 11:12 PM   #13
JRHockney*
Moderator
 
JRHockney*'s Avatar
 
Join Date: Jan 2006
Posts: 1,255
Hot Topic Starter LFN Staff Member 
Heh, you were right. I should have DIFFed it to begin with. I guess a prior change I make to both Local.h and main caused them not to update completely. I made the changes and it compiles now


Game screen name: Master Jon Hoc Ni

UDM Quote: in singapore, gangsters are...skinny jacka**es who think they can 0wn you. they hurl insults at u, and then lose in a fight. n00bs
JRHockney* is offline   you may: quote & reply,
Old 01-10-2007, 02:27 AM   #14
razorace
Impressive, Terran!
 
razorace's Avatar
 
Join Date: May 2002
Posts: 9,176
Great!


---Jedi Guardian of the Newbie Questions
---Masters of the Force Team Leader / Creator
---Open Jedi Project Lead Moderator / Co-Founder
razorace is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > JediKnight Series > Community > Hosted Forums > Open Jedi Project (OJP) > Major problem compiling the new repository code

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:06 PM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.