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; Hey I saw your post on the hl2world forums and came here to learn how to do this stuff, I ...

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
  #41  
Old January 18th, 2005
I'm too cool to Post
 
Join Date: January 18th, 2005
Posts: 5
Rep Power: 0
pcgamer58 has disabled reputation
Default Re: [Tutorial] Absolute beginners guide to weapon creation.

Hey I saw your post on the hl2world forums and came here to learn how to do this stuff, I see taht visual studio 2003 costs money but teh Visual C++ 2005 express was free, and I completed the tutorial but got errors while compiling
Its says this
Code:
------ 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://g:\Weaponmod\src\cl_dll\cl_dll___Win32_HL2_Release\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://g:\Weaponmod\src\dlls\Release_hl2\BuildLog.htm"
hl - 3 error(s), 2 warning(s)
========== Build: 0 succeeded, 2 failed, 0 up-to-date, 0 skipped ==========
So I was wondering if there was any other way I could do this without errors or whatever becasue I don't want to pay for somthing im only going to use just to mess around and experiment with.
Reply With Quote
  #42  
Old January 19th, 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.

Go here and you can follow the tutorial for getting Visual C++ 2005 Express Beta working with the SDK: http://www.chatbear.com/board.plm?a=...4991&v=flatold
Scroll down about 3/4 of the page until you find the 1st Dec. 6th post and follow it exactly...It will work if you follow it correctly. I followed it and Im currently using the exact same version
Reply With Quote
  #43  
Old January 20th, 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.

Actually found a way to make the muzzle flashes appear for the CS:S weapons in HL2. I found it on Steampowered.com's SDK Coding forum.

In c_baseanimating.cpp, at line 3024 (after the big ass switch statement), comment out the code so it looks like this
//if ( iAttachment != -1 && m_Attachments.Count() > iAttachment )

{

//GetAttachment( iAttachment+1, attachOrigin, attachAngles );

//int entId = render->GetViewEntity();

//tempents->MuzzleFlash( attachOrigin, attachAngles, atoi( options ), entId, bFirstPerson );

and place the following below it. (be sure not to comment out the ending brakets and final breaks)


if ( iAttachment != -1 && m_Attachments.Count() > iAttachment )
{
if ( input->CAM_IsThirdPerson() )
{
C_BaseCombatWeapon *pWeapon = GetActiveWeapon();
pWeapon->GetAttachment( iAttachment+1, attachOrigin, attachAngles );
}
else
{
C_BasePlayer *pPlayer = C_BasePlayer::GetLocalPlayer();
CBaseViewModel *vm = pPlayer->GetViewModel();
vm->GetAttachment( iAttachment+1, attachOrigin, attachAngles );
engine->GetViewAngles( attachAngles );
}
g_pEffects->MuzzleFlash( attachOrigin, attachAngles, 1.0, MUZZLEFLASH_TYPE_DEFAULT );
}


Go to fx.cpp, line 227 (under the statement "pParticle->m_vecVelocity.Init();"), place the following code.

C_BasePlayer *pPlayer = C_BasePlayer::GetLocalPlayer();
Vector velocity = pPlayer->GetLocalVelocity();
pParticle->m_vecVelocity += velocity;

There you go, working muzzle flashes for CS:S weapons in HL2
Reply With Quote
  #44  
Old January 20th, 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.

Lookin good. I kind of gave up on CSS weapons as i cant actually release anything with them in. But this should be useful for adding muzzleflashes to anything else.

I was thinking of adding some tuts for the stuff in my mod like the flare launcher etc but its gonna take a while before i can be bothered :X
Reply With Quote
  #45  
Old January 20th, 2005
I'm too cool to Post
 
Join Date: January 18th, 2005
Posts: 5
Rep Power: 0
pcgamer58 has disabled reputation
Default Re: [Tutorial] Absolute beginners guide to weapon creation.

Quote:
Originally Posted by DeathGiver
Go here and you can follow the tutorial for getting Visual C++ 2005 Express Beta working with the SDK: http://www.chatbear.com/board.plm?a=...4991&v=flatold
Scroll down about 3/4 of the page until you find the 1st Dec. 6th post and follow it exactly...It will work if you follow it correctly. I followed it and Im currently using the exact same version
Where do I put that stuff he posted? Sorry if I sound like a n00b to it becasue i pretty much am
Reply With Quote
  #46  
Old January 20th, 2005
I'm too cool to Post
 
Join Date: January 18th, 2005
Posts: 5
Rep Power: 0
pcgamer58 has disabled reputation
Default Re: [Tutorial] Absolute beginners guide to weapon creation.

Oh, I figured it out, but im getting a bunch of more errors now, i guess I just follow those fixes.
Reply With Quote
  #47  
Old January 20th, 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.

It tells you which files you need to edit. For example, when it says

..\public\vstdlib\strtools.h(90) : error C2440: 'return' : cannot convert from 'const char *' to 'char *'

Its telling you that you need to edit the strtools.h file in your public\vstlib directory. You can search for it with windows search feature if you have trouble finding it. Now, when it says

inline char* Q_strrchr (const char *s, char c) { return strrchr( s, c ); }

inline char* Q_strrchr (const char *s, char c) { return strrchr( (char *)s, c ); }

That means you need to change the top code shown into the bottom code. Also, you really only need to use the "Release HL2" sections. When you come upon an error, just look for it in the compilation tutorial and make the necessary changes to your code. Its confusing at first, but once you start doing it, its quite easy to do.
Reply With Quote
  #48  
Old January 20th, 2005
I'm too cool to Post
 
Join Date: January 18th, 2005
Posts: 5
Rep Power: 0
pcgamer58 has disabled reputation
Default Re: [Tutorial] Absolute beginners guide to weapon creation.

Yeah i got that part, fixed all the errors that I saw were from the list but i still have additional errors that aren't listed how to fix. So im giving up because theres like 7 errors im getting that werent on the list and its not from my weapon. So screw it.
Reply With Quote
  #49  
Old January 20th, 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.

What errors are you getting? Someone may be able to help you resolve them.
Reply With Quote
  #50  
Old January 20th, 2005
I'm too cool to Post
 
Join Date: January 18th, 2005
Posts: 5
Rep Power: 0
pcgamer58 has disabled reputation
Default Re: [Tutorial] Absolute beginners guide to weapon creation.

Well I quit the thing now and i dont feel like doing a full compile all over again cause it takes like 10 minutes, but there was a bunch of "File is deprecated" is somthing and i got a fatal error taht said somthing like "windows.h does not exsist" or somthing
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.