Mod frustrations

Grab your favourite IDE and tinker with the innards of game engines

Mod frustrations

Postby cypher543 on Sat Jun 02, 2007 7:56 pm

Ok, I am attempting to create a new HL2 singleplayer mod, but it's not going so well.

I am running Windows XP with the Windows Vista Platform SDK (because I need the WPF libraries for other things). I use Visual C++ 2005 Express and I have the Platform SDK setup properly. I originally got linker errors, but this was fixed by linking with "user32.lib" (which is missing for some reason in the default project). Now, the game runs, but as soon as the Valve intro video stops playing, I hear the classic Windows Error sound and the game exits. There's no error dialog or anything.

I have no idea what is wrong. There's no place that I can find an error, either in the build log, or in the source code itself.

Any ideas?
User avatar
cypher543
1337 p0st3r
1337 p0st3r
 
Joined: Sat Jun 02, 2007 12:40 am
Location: Someplace else

Postby ChopperDave on Sat Jun 02, 2007 8:29 pm

Well....no :? . It could be any number of things. One thing that can help track it down is if you run the game in Debug mode through Visual Studio. Check out:
http://developer.valvesoftware.com/wiki ... parameters
for setting up Visual Studio for debugging. Let me know if anything comes up that way.
User avatar
ChopperDave
Rockstar San Diego
 
Joined: Wed Feb 21, 2007 6:06 pm

Postby cypher543 on Sat Jun 02, 2007 9:52 pm

I took a look at my "gameinfo.txt" file and noticed a syntax error. After I fixed that, the game ran perfectly.

Thanks for the debugging info! That will be very helpful in the future.
User avatar
cypher543
1337 p0st3r
1337 p0st3r
 
Joined: Sat Jun 02, 2007 12:40 am
Location: Someplace else

Postby Forceflow on Sat Jun 02, 2007 10:30 pm

Great news that it runs with the Vista SDK too. Hadn't been expecting that :)
User avatar
Forceflow
1337 p0st3r
1337 p0st3r
 
Joined: Sun Jul 16, 2006 12:13 pm
Location: Belgium

Postby Elspin on Thu Jun 07, 2007 3:47 am

I'm currently getting the linker errors, I'm frustrated to HELL because I've been looking for a few days for help. Can you explain how you fixed it?
Elspin
Dumpling
Dumpling
 
Joined: Thu Jun 07, 2007 3:43 am

Postby cypher543 on Thu Jun 07, 2007 4:13 am

In the Solution Explorer, right click on "client_hl2" and click Properties. Expand the Linker tree node on the left and then click Input. In the "Additional Dependencies" box, add "user32.lib" (without quotes) to the end. Click OK and then do the above for "server_hl2" as well. The linker errors should disappear. If not, check that you edited the settings for the correct Configuration (Release or Debug).
User avatar
cypher543
1337 p0st3r
1337 p0st3r
 
Joined: Sat Jun 02, 2007 12:40 am
Location: Someplace else

Postby Elspin on Thu Jun 07, 2007 4:18 am

cypher543 wrote:In the Solution Explorer, right click on "client_hl2" and click Properties. Expand the Linker tree node on the left and then click Input. In the "Additional Dependencies" box, add "user32.lib" (without quotes) to the end. Click OK and then do the above for "server_hl2" as well. The linker errors should disappear. If not, check that you edited the settings for the correct Configuration (Release or Debug).


Thanks. I just figured it out, finally no errors. Succeeded. :D

6 warnings, not sure if I should be worried about those though... should I?
Elspin
Dumpling
Dumpling
 
Joined: Thu Jun 07, 2007 3:43 am

Postby ChopperDave on Thu Jun 07, 2007 1:23 pm

Do the warnings say some PCB files are missing debug information, or something like that? If so, ignore it. Everyone gets those warnings.
User avatar
ChopperDave
Rockstar San Diego
 
Joined: Wed Feb 21, 2007 6:06 pm

Postby ScarT on Thu Jun 07, 2007 5:11 pm

Except the VS2003 users ;)
User avatar
ScarT
Senior Member
Senior Member
 
Joined: Sat Apr 02, 2005 7:33 pm
Location: Denmarkian Land

Return to Programming

Who is online

Users browsing this forum: No registered users