New zombie models

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

New zombie models

Postby andy4729 on Thu Mar 24, 2011 11:21 pm

So I want to add some custom zombie models to the npc_zombie entity. I have followed this tutorial:

viewtopic.php?f=11&t=31530

...and I ended up with several "precompiled header" warnings. I checked out this page:

http://developer.valvesoftware.com/wiki ... der_VS2010

and read that I had to do the following:

If you want to remove the "precompiled header" warnings seen during a full compile, open these files in your client project and move #include "cbase.h" up to the first line:

1. hud_locator.cpp
2. hud_credits.cpp
3. hud_flashlight.cpp


I did that, and got lots of new errors and that's when I gave up.

I am a complete noob at c++ programming so I 'm not really sure what I'm doing. I know that there are issues when using newer version of VS but I don't really know how to resolve my situation.

Any help would be great, thanks!
We're squatting in a system that consistently stalls
User avatar
andy4729
Regular
Regular
 
Joined: Sat Sep 09, 2006 7:26 pm
Location: Canterbury, United Kingdom

Re: New zombie models

Postby stoopdapoop on Fri Mar 25, 2011 12:25 am

warnings don't necessarily mean there's a problem, they can often point out risky operations or code that doesn't seem like it has any practical purpose.

I personally didn't even bother fixing the warnings, so unless they're really bothering you, you can ignore them for now. Your dll's are compiling fine.
I'm Brown
Image
User avatar
stoopdapoop
Veteran
Veteran
 
Joined: Sun Aug 21, 2005 2:14 am
Location: Ann Arbor, MI

Re: New zombie models

Postby Jordash on Fri Mar 25, 2011 2:12 am

Did the warnings appear before you followed the tutorial?
User avatar
Jordash
Been Here A While
Been Here A While
 
Joined: Mon Sep 21, 2009 10:36 am
Location: Perth, Australia

Re: New zombie models

Postby andy4729 on Fri Mar 25, 2011 10:07 am

I didn't try compiling before the tutorial so I'm not sure if they were there before or not. It wouldn't suprise me if they were.

When you say ignore them, do you mean there is some option in VS to ignore them or that even though at the end of the compiling process it says there were build errors - the dlls have still been put in the bin folder?
We're squatting in a system that consistently stalls
User avatar
andy4729
Regular
Regular
 
Joined: Sat Sep 09, 2006 7:26 pm
Location: Canterbury, United Kingdom

Re: New zombie models

Postby zombie@computer on Fri Mar 25, 2011 10:25 am

theres a large difference between warnings and errors. Warnings don't cause your compile to fail, errors always do. Seems the header warnings aren't your only problem.
When you are up to your neck in shit, keep your head up high
zombie@computer
Forum Goer Elite™
Forum Goer Elite™
 
Joined: Fri Dec 31, 2004 5:58 pm
Location: Lent, Netherlands

Re: New zombie models

Postby andy4729 on Fri Mar 25, 2011 5:28 pm

Now all I'm getting is this error:

error MSB3191: Unable to create directory "c:\program files\steam\steamapps\SourceMods\Outbreak\bin\". Access to the path 'c:\program files\steam\steamapps\SourceMods\Outbreak\bin\' is denied.

Not really sure why access is denied...
We're squatting in a system that consistently stalls
User avatar
andy4729
Regular
Regular
 
Joined: Sat Sep 09, 2006 7:26 pm
Location: Canterbury, United Kingdom

Re: New zombie models

Postby andy4729 on Fri Mar 25, 2011 6:02 pm

OK, I started again with a fresh game solution. Haven't run through the tutorial and I have the following errors/warnings:

1>c:\users\andy\documents\testmod\src\game\client\hl2\hud_flashlight.cpp(7): warning C4627: '#include "hudelement.h"': skipped when looking for precompiled header use
1> Add directive to 'cbase.h' or rebuild precompiled header
1>c:\users\andy\documents\testmod\src\game\client\hl2\hud_flashlight.cpp(8): warning C4627: '#include "hud_numericdisplay.h"': skipped when looking for precompiled header use
1> Add directive to 'cbase.h' or rebuild precompiled header
1>c:\users\andy\documents\testmod\src\game\client\hl2\hud_flashlight.cpp(9): warning C4627: '#include <vgui_controls/Panel.h>': skipped when looking for precompiled header use
1> Add directive to 'cbase.h' or rebuild precompiled header
1>c:\users\andy\documents\testmod\src\game\client\hl2\hud_credits.cpp(7): warning C4627: '#include "hudelement.h"': skipped when looking for precompiled header use
1> Add directive to 'cbase.h' or rebuild precompiled header
1>c:\users\andy\documents\testmod\src\game\client\hl2\hud_credits.cpp(8): warning C4627: '#include "hud_numericdisplay.h"': skipped when looking for precompiled header use
1> Add directive to 'cbase.h' or rebuild precompiled header
1>c:\users\andy\documents\testmod\src\game\client\hl2\hud_credits.cpp(9): warning C4627: '#include <vgui_controls/Panel.h>': skipped when looking for precompiled header use
1> Add directive to 'cbase.h' or rebuild precompiled header
1>c:\users\andy\documents\testmod\src\game\client\spritemodel.cpp(442): error C3861: 'IsBIK': identifier not found
1>c:\users\andy\documents\testmod\src\game\client\in_joystick.cpp(10): warning C4627: '#include <windows.h>': skipped when looking for precompiled header use
1> Add directive to 'cbase.h' or rebuild precompiled header

Looks like the IsBIK is the problem, am I right? I didn't notice that before.
We're squatting in a system that consistently stalls
User avatar
andy4729
Regular
Regular
 
Joined: Sat Sep 09, 2006 7:26 pm
Location: Canterbury, United Kingdom

Re: New zombie models

Postby Welsh Mullet on Fri Mar 25, 2011 6:55 pm

On the wiki there is a page on code files that are missing in the sdk (I made it myself, no less)
The file that fixes the IsBik error can be found there.
That's what she said.
User avatar
Welsh Mullet
Regular
Regular
 
Joined: Mon Jul 12, 2010 10:37 am
Location: Reading... Or sometimes Wales for the weekend.

Re: New zombie models

Postby andy4729 on Sat Mar 26, 2011 8:55 am

Thank you!

I will try this on monday as I'm away for the weekend.
We're squatting in a system that consistently stalls
User avatar
andy4729
Regular
Regular
 
Joined: Sat Sep 09, 2006 7:26 pm
Location: Canterbury, United Kingdom

Re: New zombie models

Postby andy4729 on Sat Apr 02, 2011 10:46 pm

Ok, so I fixed the IsBIK error and it now compiles successfully. However, at the end of the compile I get the following message:

Unable to start program
'C:\Users\Andy\Documents\TestMod\src\game\client\.\Release_episodic\Client Episodic.dll'.

The system cannot find the file specified.


What does this mean and is there a way to fix it?
We're squatting in a system that consistently stalls
User avatar
andy4729
Regular
Regular
 
Joined: Sat Sep 09, 2006 7:26 pm
Location: Canterbury, United Kingdom

Re: New zombie models

Postby Dr. Delta on Sun Apr 03, 2011 9:15 am

Are you building your solution or are you debugging it? That was the mistake I was always making until recent (yea I'm stupid) when I got that same message. You're supposed to build your solution and then launch it via steam, not via Visual Studio.

Highlight to read:
I'll probably have said something wrong, but was thinking in the right direction, like my help in the other threads recently :s
User avatar
Dr. Delta
Veteran
Veteran
 
Joined: Thu Dec 27, 2007 1:18 pm
Location: People's Republic of Porygon

Re: New zombie models

Postby andy4729 on Sun Apr 03, 2011 11:45 am

Um, well I've tried it on Debug and Release and get the same message either way.
We're squatting in a system that consistently stalls
User avatar
andy4729
Regular
Regular
 
Joined: Sat Sep 09, 2006 7:26 pm
Location: Canterbury, United Kingdom

Re: New zombie models

Postby zombie@computer on Sun Apr 03, 2011 11:53 am

By default, visual studio tries to start your compiled project by launching projectDir/projectName.exe (or .dll).

to stop it, and to properly launch the game from visual studio with debug shizzle, use

http://developer.valvesoftware.com/wiki ... ual_Studio
When you are up to your neck in shit, keep your head up high
zombie@computer
Forum Goer Elite™
Forum Goer Elite™
 
Joined: Fri Dec 31, 2004 5:58 pm
Location: Lent, Netherlands

Re: New zombie models

Postby andy4729 on Sun Apr 03, 2011 11:55 am

So does it not matter if I get this message? It will still work OK if I jsut run it through Steam?
We're squatting in a system that consistently stalls
User avatar
andy4729
Regular
Regular
 
Joined: Sat Sep 09, 2006 7:26 pm
Location: Canterbury, United Kingdom

Re: New zombie models

Postby Dr. Delta on Sun Apr 03, 2011 11:55 am

Are you building like this? Or are you trying to debug it? If you're trying to build it, do something like this;

Basic Mode:
Image

Expert Mode:
Image

It shouldn't give an error since you're not trying to debug it, which needs extra settings before you can use debugging. (like zombie posted).

Highlight to read:
sorry zombie for my ever failing impotent coding help
User avatar
Dr. Delta
Veteran
Veteran
 
Joined: Thu Dec 27, 2007 1:18 pm
Location: People's Republic of Porygon
Next

Return to Programming

Who is online

Users browsing this forum: No registered users