Missing weapon script?

Pajari

Newbie
Joined
Jul 23, 2005
Messages
268
Reaction score
0
Every time I load a new map in my mod I get an error at line 200 in basecombatweapon_shared.cpp or something like that. Supposedly I'm missing a weapon script file, which is probably because I just added a new weapon. But the thing is, I made a script for the weapon after I got that error the first time, and the error persists.

Any help?
 
Check the filenames in both the .cpp anything that reads weapon_(Your weapon here) is what the file is looking for and the script file. They must be exactly the same. (HL2 is very picky about capitals etc)

Also, has the weapon been declared in c_weapon__stubs_hl2.h ?
 
I'm pretty sure it's declared everywhere, but it didn't occur to me to search for the weapon script file name- I just changed it in a couple places and didn't bother to look elsewhere.

I'll try that out, thanks!
 
Just let me know how it goes :P

I've just been trying out the whole weapon creation lark myself.
 
Crap. I created a different weapon in the code than I defined an external script for.
 
haha :D i make stupid mistakes all the time. i lost my will to live at one stage untill i realised i was building it in debughl2 mode :D
 
Back
Top