Programming problem with the Source SDK
Post Reply
Quote
Re: Programming problem with the Source SDK
Posted by Yak_Fighter on Tue Apr 22nd at 6:10am 2008


I'm currently working on my own little mod for s**ts and giggles. The mod is a weapon rebalance of Episode 2 and single player only. It's very modest, with most of the changes being stuff like weapon damage, ammo amounts, health, movement speeds, that sort of thing. My programming knowledge peaked in 2001 so I can't really do anything spectacular.

I'd done most of the necessary 'coding' (if you can call changing numbers coding) in the files spat out by 'Create a Mod' under the SDK tools when I realized that none of the EP1 or 2 code was included in the solution. I have the necessary files, npc_zombine.cpp and npc_hunter.h and all that, the rub is that I need to get them into the solution with the rest of the already working code. And that is where I'm completely stuck. I did a fresh install of the source code and got the client part with the Ep2 stuff compiling correctly, but the server part gives compile errors that I cannot make heads or tails of. Here's the truncated build log:

Compiling...
cl : Command line warning D9035 : option 'Wp64' has been deprecated and will be removed in a future release
ai_behavior_passenger.cpp
c:documents and settingsownerdesktopmiscellaneousmodhl2sgsassrcgameserverai_behavior_passenger.h(16) : fatal error C1083: Cannot open include file: 'vehicle_jeep_episodic.h': No such file or directory
npc_alyx_episodic.cpp
c:documents and settingsownerdesktopmiscellaneousmodhl2sgsassrcgameserverhl2npc_playercompanion.h(22) : fatal error C1083: Cannot open include file: 'ai_behavior_passenger_companion.h': No such file or directory
npc_antliongrub.cpp
c:documents and settingsownerdesktopmiscellaneousmodhl2sgsassrcgameserverhl2npc_playercompanion.h(22) : fatal error C1083: Cannot open include file: 'ai_behavior_passenger_companion.h': No such file or directory

[.... same missing ai_behavior_... error repeats for a total of 14 times....]

Build log was saved at "file://c:Documents and SettingsOwnerDesktopMiscellaneousmodhl2sgsassrcgameserverRelease_hl2BuildLog.htm"
Server (HL2) - 15 error(s), 1 warning(s)

I've looked up what that error means and it quite obviously states that the header files that are to be included don't exist. The part I don't get is that these files do exist, and they are sitting in my solution explorer in VSE2008 right where they are supposed to be (at least I think they are). I don't know what to do to fix this. I've googled, scoured the valve developer wiki, read hundreds of posts in the hlcoders mailing list and more to no avail. Any help would be appreciated





Quote
Re: Programming problem with the Source SDK
Posted by Le Chief on Tue Apr 22nd at 7:20am 2008


I'm not too sure, but try asking here.





Quote
Re: Programming problem with the Source SDK
Posted by Crono on Tue Apr 22nd at 7:21am 2008


This is a C++ error, it really has nothing to do with the Source engine it self.

The only thing I can think of is to check your include path. Make sure wherever the header files are you have the path to that directory added to your include path properties in the IDE you're using. (I've used many IDEs where this means dick and, in essence, makes the environment useless)

An alternative is that they might be using namespaces now ... in which case you use the same include without the .h, then put "using namespace name" under your include paths ... but I have no idea if that's what they're doing or not, that's usually what happens if .h files are used and are marked as depreciated.

If you can't get the path working, try looking for alternatives to these header files, if they're depreciated, it will exist.

To note, they suggest VS2005 as the "best option" for IDEs.



Blame it on Microsoft, God does.



Quote
Re: Programming problem with the Source SDK
Posted by Yak_Fighter on Tue Apr 22nd at 8:21pm 2008


I got it working, hooray! Apparently the solution really was something easy. I had to move the two header files out of the 'episodic' folder into the more general 'hl2' folder. Why that is I have no idea, but it worked. Thanks for the help anyways I'm sure I'll need it again sooner or later.

PS aaron, that forum has been closed for over a year...





Quote
Re: Programming problem with the Source SDK
Posted by reaper47 on Wed Apr 23rd at 11:06am 2008


They moved it here. Steampowered forums.... *shivers*





Quote
Re: Programming problem with the Source SDK
Posted by Le Chief on Wed Apr 23rd at 11:49am 2008


<img src=" SRC="images/smiles/icon_eek.gif"> Its been closed and moved?






Post Reply