[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! |
![]() |
| | LinkBack | Thread Tools | Rating: | Display Modes |
|
#41
| |||
| |||
| 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 ========== |
|
#42
| |||
| |||
| 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 |
|
#43
| |||
| |||
| 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 |
|
#44
| |||
| |||
| 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 |
|
#45
| |||
| |||
| Quote:
|
|
#46
| |||
| |||
| Oh, I figured it out, but im getting a bunch of more errors now, i guess I just follow those fixes. |
|
#47
| |||
| |||
| 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. |
|
#48
| |||
| |||
| 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. |
|
#49
| |||
| |||
| What errors are you getting? Someone may be able to help you resolve them. |
|
#50
| |||
| |||
| 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 |
![]() |
| Bookmarks |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| Display Modes | Rate This Thread |
| |
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.







Linear Mode

