FileFront Gaming Forums
FileFront Home > FileFront Gaming Forums > The Games > Half-Life Series > Half-Life 2 > HL2 Modding, Mapping and Editing > [Tutorial] Absolute beginners guide to weapon creation.

[Tutorial] Absolute beginners guide to weapon creation.

This is a discussion on [Tutorial] Absolute beginners guide to weapon creation. within the HL2 Modding, Mapping and Editing forums, part of the Half-Life 2 category; I believe ther is a patch/fix which lets you use Visual C++ 6 but i doubt you can use any ...

HL2 Modding, Mapping and Editing Want more info about a Mod? Making a Mod? Looking for Modders, Mappers, Skinners, etc.? This is your Spot!

Reply
 
LinkBack Thread Tools Rating: Thread Rating: 11 votes, 4.91 average. Display Modes
  #1  
Old January 6th, 2005
Killing is my business...
 
Join Date: November 28th, 2004
Location: England - Somerset
Posts: 1,606
Rep Power: 12
metal_militia should make some friends
Default Re: [Tutorial] Absolute beginners guide to weapon creation.

I believe ther is a patch/fix which lets you use Visual C++ 6 but i doubt you can use any compiler.
Reply With Quote
  #2  
Old January 6th, 2005
I don't spend enough time here
 
Join Date: December 7th, 2004
Posts: 18
Rep Power: 0
Toprem is a n00b
Default Re: [Tutorial] Absolute beginners guide to weapon creation.

Hrm, I d/l'ed Visual C++ compiler like the one used in the tutorial and did everything that it said (including compiling and building the solutions) and give weapon_name still doesnt work in the console menu :O/
Reply With Quote
  #3  
Old January 7th, 2005
Killing is my business...
 
Join Date: November 28th, 2004
Location: England - Somerset
Posts: 1,606
Rep Power: 12
metal_militia should make some friends
Default Re: [Tutorial] Absolute beginners guide to weapon creation.

hmmmm, did you rember to add the gun to the c_weapon__stubs_hl2.cpp file?

And when you compiled did it say like
2 (or whatever) suceded
0 errors
0 warnings
Reply With Quote
  #4  
Old January 7th, 2005
I don't spend enough time here
 
Join Date: December 7th, 2004
Posts: 18
Rep Power: 0
Toprem is a n00b
Unhappy Re: [Tutorial] Absolute beginners guide to weapon creation.

Quote:
And when you compiled did it say like
2 (or whatever) suceded
0 errors
0 warnings
This is what it said...

Quote:
------ Build started: Project: client, Configuration: Release HL2 Win32 ------
Compiling...
cl : Command line warning D9035 : option 'Og' has been deprecated and will be removed in a future release
stdafx.cpp
..\public\tier0\dbg.h(482) : warning C4996: '_vsnprintf' was declared deprecated
C:\Program Files\Microsoft Visual Studio 8\VC\include\stdio.h(304) : see declaration of '_vsnprintf'
..\public\vstdlib\strtools.h(90) : error C2440: 'return' : cannot convert from 'const char *' to 'char *'
Conversion loses qualifiers
..\public\vstdlib\strtools.h(93) : error C2440: 'return' : cannot convert from 'const char *' to 'char *'
Conversion loses qualifiers
Creating browse information file...
Microsoft Browse Information Maintenance Utility Version 8.00.40607
Copyright (C) Microsoft Corporation. All rights reserved.
BSCMAKE: error BK1506 : cannot open file '.\cl_dll___Win32_HL2_Release\activitylist.sbr': No such file or directory
Build log was saved at "file://c:\Documents and Settings\Alex\My Documents\MyMod\src\cl_dll\cl_dll___Win32_HL2_Rele ase\BuildLog.htm"
client - 3 error(s), 2 warning(s)
------ Build started: Project: hl, Configuration: Release HL2 Win32 ------
Compiling...
cl : Command line warning D9035 : option 'Og' has been deprecated and will be removed in a future release
stdafx.cpp
../public\tier0\dbg.h(482) : warning C4996: '_vsnprintf' was declared deprecated
C:\Program Files\Microsoft Visual Studio 8\VC\include\stdio.h(304) : see declaration of '_vsnprintf'
../public\vstdlib\strtools.h(90) : error C2440: 'return' : cannot convert from 'const char *' to 'char *'
Conversion loses qualifiers
../public\vstdlib\strtools.h(93) : error C2440: 'return' : cannot convert from 'const char *' to 'char *'
Conversion loses qualifiers
Creating browse information file...
Microsoft Browse Information Maintenance Utility Version 8.00.40607
Copyright (C) Microsoft Corporation. All rights reserved.
BSCMAKE: error BK1506 : cannot open file '.\Release_hl2\activitylist.sbr': No such file or directory
Build log was saved at "file://c:\Documents and Settings\Alex\My Documents\MyMod\src\dlls\Release_hl2\BuildLog.htm"
hl - 3 error(s), 2 warning(s)
========== Build: 0 succeeded, 2 failed, 0 up-to-date, 0 skipped ==========
I did what the tutorial said :O/, and yes I realize I am a total n00b :O(.
Reply With Quote
  #5  
Old January 7th, 2005
Killing is my business...
 
Join Date: November 28th, 2004
Location: England - Somerset
Posts: 1,606
Rep Power: 12
metal_militia should make some friends
Default Re: [Tutorial] Absolute beginners guide to weapon creation.

hmmm, it needs to compile with not errors or warnings for it to work.

Send me the .cpp files you made and your c_weapon_stubs (via PM or e-mail stefan@extalia.com) and il take a look at the code. Its probably just one simple mistake causeing all the errors.
Reply With Quote
  #6  
Old January 7th, 2005
Rage2Wrath's Avatar
banned
El Bano
 
Join Date: November 20th, 2004
Location: Misawa Japan
Posts: 181
Rep Power: 0
Rage2Wrath is a n00b
Send a message via AIM to Rage2Wrath Send a message via Yahoo to Rage2Wrath
Default Re: [Tutorial] Absolute beginners guide to weapon creation.

Topem, this is very similar to the problem I was having. I had the 2005 Beta version of Visual C++ but as soon as I got the 2003 version, it worked fine.
Reply With Quote
  #7  
Old January 7th, 2005
I don't spend enough time here
 
Join Date: December 7th, 2004
Posts: 18
Rep Power: 0
Toprem is a n00b
Default Re: [Tutorial] Absolute beginners guide to weapon creation.

Aye, Im using the 2005 version, where can you (if possible) download the 2003 version?
Reply With Quote
  #8  
Old January 7th, 2005
Rage2Wrath's Avatar
banned
El Bano
 
Join Date: November 20th, 2004
Location: Misawa Japan
Posts: 181
Rep Power: 0
Rage2Wrath is a n00b
Send a message via AIM to Rage2Wrath Send a message via Yahoo to Rage2Wrath
Default Re: [Tutorial] Absolute beginners guide to weapon creation.

It's possible to d/l the 2003 version.....
Reply With Quote
  #9  
Old January 7th, 2005
I don't spend enough time here
 
Join Date: January 7th, 2005
Posts: 19
Rep Power: 0
DeathGiver has disabled reputation
Default Re: [Tutorial] Absolute beginners guide to weapon creation.

I followed your tutorial and everything compiled without any errors, so I started up my mod and I got this message in the console: Host_EndGame: CL_ParseClassInfo_EndClasses: server and client classes for 'CWeaponKiller' use different datatables (server: DT_WeaponPistol, client: DT_WeaponKiller)
Do you know what this means, and how I can correct it?
Reply With Quote
  #10  
Old January 7th, 2005
Killing is my business...
 
Join Date: November 28th, 2004
Location: England - Somerset
Posts: 1,606
Rep Power: 12
metal_militia should make some friends
Default Re: [Tutorial] Absolute beginners guide to weapon creation.

hmm, what did you write in your weapon_stubs?

But this sounds like a problem with you weapon_killer.cpp file. Check for the cases of letters. for instance DT_Weaponkiller and DT_WeaponKiller would not be the same.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Beginners Guide to Modding Tally CoD2 Modding, Mapping and Editing 5 June 24th, 2009 09:25 AM
MySQL: The beginners guide {james} Web-Code Help and Discussion 3 March 7th, 2006 09:14 AM
Guide to mapping for beginners and useful websites Rich19 CnC Modding, Mapping and Editing 3 April 22nd, 2005 03:44 PM
Orb's Beginners Guide to Skinning in JK2 & JA orbitius SW:JK3 Modding, Mapping and Editing 0 March 3rd, 2004 08:25 PM
Lightray3d Easy Absolute Beginners Tutorials? Silent_Death427 MoH Mapping, Modeling and Skinning 0 July 13th, 2003 07:02 PM


All times are GMT -7.