SDK Example Compile problems on vs.net 2003

kelerain

Newbie
Joined
May 14, 2004
Messages
73
Reaction score
0
I got the SDK, and being a coder, went right to that section. I am carefully following the example ( http://www.valve-erc.com/srcsdk/MyFirstMod.htm ) as closely as I can, but its not working. I am aware of the nececary environment variable ( http://www.valve-erc.com/srcsdk/dev_environment.html ), and have set it properly.

I'm running VisualStudio.net 2003.
Uppon opening the .sln file (for Game_SDK) it complains about not having a source safe server, which I believe was an oversight on the part of valve, hopefully they can fix that. It seems to be a non fatal problem however, and I can cancel out and 'work offline'. After that editing the file as specified can be done, although I've tried it with and without changes. What happens is when I go to compile the output window looks like this:

Code:
 ------ Build started: Project: client, Configuration: Debug SDK Win32 ------


Build log was saved at "file://g:\MyTestMod\src\cl_dll\Debug_SDK\BuildLog.htm"
client - 1 error(s), 0 warning(s)


------ Build started: Project: hl, Configuration: Debug SDK Win32 ------


Build log was saved at "file://g:\MyTestMod\src\dlls\Release_SDK\BuildLog.htm"
hl - 1 error(s), 0 warning(s)


---------------------- Done ----------------------

    Build: 0 succeeded, 2 failed, 0 skipped

And the task list is empty. No output can be found in the directories either, and the build logs mentioned are no help. vs.net is usually very good about pointing out the source of errors.

I've tried this as both the retail and debug builds, same issues. The errors do not specify where they are comming from or why, so I can't begin to understand how to work around them.

This also occurs when doing a 'from scratch' mod.

Does anyone know where to go from here? Has anyone gotten the example code to compile, perferably on vs.net? Any other suggestions?
 
Ooops. I was kinda tired last night. Could this please be moved to the coding forum? Sorry about the mixup.
 
kelerain said:
Ooops. I was kinda tired last night. Could this please be moved to the coding forum? Sorry about the mixup.

Your wish is my command ;)

gl with the coding prob ;(
 
You need to post the actual errors. Look for the errors further up in the log.
 
For those that are interested, I'm writing a page to guide you through compiling on VC++ Express 2005 Beta. I've just got past the code errors, now I'm on to the linker errors! OH THE JOY!

Anyway, hopefully it should help a few people out.
 
dscowboy said:
You need to post the actual errors. Look for the errors further up in the log.

Thats what I'm saying. Thats the ENTIRE OUTPUT of my builds 'output' window, top to bottom. The 'TODO' list, where errors are usually organized, is also blank.

The only instance of the word 'error' in either build log, was the summar at the bottom, 1 error(s). I have no idea where to track things from here.

Edit: I've posted the build logs here, incase they contain something useful:

hl2.dll Build log
client.dll Build log
 
umm, what about

g:\MyTestMod\src\cl_dll\Debug_ SDK\BuildLog.htm as in the error?
 
Sorry, I should have posted them in the first place. Links are above, but they don't seem to indicate any specific problems :/
 
Have you tried compiling in Release mode instead of Debug?
 
Yes, I've tried many variations. Release/Debug, HL2 mod, From Scratch Mod, Everything solution, Game solution, With and without editing the file (changing the rocket speed #define).
 
Looks like the project file is cocked or something, it's obviously not bulding the files it should build.
 
From the HLCoders mailing list:

Josh Ferguson said:
Regarding source control (I know a lot of you have complained about
it), using VS.NET 2003, simply go into File->Source Control->Change
Source Control, and click on the "unbind" button.

That fixed the source control errors. Hopefully valve can do that and distribute the changed files for people. I have no idea where to start checking on this other issue though. If I knew a lot more about the detailed compiler options, I would probably recreate the proejct from scratch, but I'm fairly sure I couldn't do that properly myself.
 
Recreating the project from scratch would be one heck of a task, even for an experienced coder. It's not even coding, just getting things all linked together correctly, compiled in the right order etc etc. Lots of hassle!
 
Back
Top