Programming problem with the Source SDK

Programming problem with the Source SDK

Re: Programming problem with the Source SDK Posted by Yak_Fighter on Tue Apr 22nd 2008 at 6:10am
Yak_Fighter
1832 posts
Posted 2008-04-22 6:10am
1832 posts 742 snarkmarks Registered: Dec 30th 2001 Occupation: College Student/Slacker Location: Indianapolis, IN
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 settings\owner\desktop\miscellaneous\mod\hl2sgsas\src\game\server\ai_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 settings\owner\desktop\miscellaneous\mod\hl2sgsas\src\game\server\hl2\npc_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 settings\owner\desktop\miscellaneous\mod\hl2sgsas\src\game\server\hl2\npc_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 Settings\Owner\Desktop\Miscellaneous\mod\hl2sgsas\src\game\server\Release_hl2\BuildLog.htm"
Server (HL2) - 15 error(s), 1 warning(s)


[color=white]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 :sad:

[/color]
Re: Programming problem with the Source SDK Posted by Le Chief on Tue Apr 22nd 2008 at 7:20am
Le Chief
2605 posts
Posted 2008-04-22 7:20am
Le Chief
member
2605 posts 937 snarkmarks Registered: Jul 28th 2006 Location: Sydney, Australia
I'm not too sure, but try asking here.
Aaron's Stuff
Re: Programming problem with the Source SDK Posted by Crono on Tue Apr 22nd 2008 at 7:21am
Crono
6628 posts
Posted 2008-04-22 7:21am
Crono
super admin
6628 posts 700 snarkmarks Registered: Dec 19th 2003 Location: Oregon, USA
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.
Re: Programming problem with the Source SDK Posted by Yak_Fighter on Tue Apr 22nd 2008 at 8:21pm
Yak_Fighter
1832 posts
Posted 2008-04-22 8:21pm
1832 posts 742 snarkmarks Registered: Dec 30th 2001 Occupation: College Student/Slacker Location: Indianapolis, IN
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 :smile: I'm sure I'll need it again sooner or later.

PS aaron, that forum has been closed for over a year...
Re: Programming problem with the Source SDK Posted by reaper47 on Wed Apr 23rd 2008 at 11:06am
reaper47
2827 posts
Posted 2008-04-23 11:06am
reaper47
member
2827 posts 1921 snarkmarks Registered: Feb 16th 2005 Location: Austria
They moved it here. Steampowered forums.... shivers
Why snark works.
Re: Programming problem with the Source SDK Posted by Le Chief on Wed Apr 23rd 2008 at 11:49am
Le Chief
2605 posts
Posted 2008-04-23 11:49am
Le Chief
member
2605 posts 937 snarkmarks Registered: Jul 28th 2006 Location: Sydney, Australia
:eek: Its been closed and moved?
Aaron's Stuff