Snuffish 24 Nov, 2012 @ 9:16am
From scratch, no weapons?
Hi everyone!

I just started to look into the Source SDK yesterday, Ive got everything working when I compiled and so on. So now I want to do some development, Im not a professional developer in C++.. Im orginally a webdeveloper (thats my job also).

But when I created a test map i see that i cannot place any weapon entitys. I have looked through the code and can see that the weapon_crowbar codes exists and so on. But I cant select that entity in valve hammer.

Am i missing something? Like is something disabled in the code or something? I cant figure it out..

Best regards Christoffer!
< >
Showing 1-10 of 10 comments
ok so you got two possibitliies
or you are using the command impulse 101 in the console, or you can put the weapon entity, ( crowbar if this is the one you want, into your level.
so create an entity in your and choose weapon_crowbar.
Snuffish 24 Nov, 2012 @ 9:26am 
Originally posted by fuzZz:
ok so you got two possibitliies
or you are using the command impulse 101 in the console, or you can put the weapon entity, ( crowbar if this is the one you want, into your level.
so create an entity in your and choose weapon_crowbar.

Thanks for your reply.

The point is that i mention in the previous post is that there is no "weapon_crowbar" entity to pick.
So i cannot place and crowbar on my map. This happens when you create a mod from "scratch" via the SDK Source.
start your mod load a map , open the console and type "give weapon_crowbar".

The game_scratch_2005.sln solution is different from the one i use for my mod, it's source 2007 and not source 2006 engine branch. 2007 engine do not propose me the to create a mod from scratch but from a MP mod template.
the source code is not oraganized as the source code of hl2 episodic, so you will find the weapon_crowbar source code into this folder :

mod/src/gameshared/hl2mp/

you problem is surely a bad hammer setting , don't forget to add the hl2mp.fgd.
i think the right one for source 2006 engine branch, is the this location in the source sdk

steam/steamapps/account/sourcesdk/bin/ep1/bin/

why do you want to use source 2006 , and build a project from the scratch ? you want to create a Total conversion of source engine or something like that ?

fuzz
Snuffish 25 Nov, 2012 @ 12:05pm 
"give weapon_crowbar" worked for me :)

I use the source 2007 to create a project from scratch.. I really dont want to use the HL2DM to make a remake off. I want to learn something too through the process.

I havent tried the hl2mp.fgd change.. will try that when I got time.

Thanks!
Last edited by Snuffish; 25 Nov, 2012 @ 12:05pm
great :)
Snuffish 28 Nov, 2012 @ 12:45am 
I got another problem.. i tried this tutorial to just make something to see if something changes in the mod.

https://developer.valvesoftware.com/wiki/My_First_Mod

Trist to change the rocket speed.. I compile and everythings compiles and the game stars. But no change have been made to the rocket speed. Dont know what im doing wrong :(

Really want to do a "small" change to really see that any change will happen to the mod before I can go into deeper development.
did you not forget to copy the compiled server/client.dll into the /mod/bin directory ?
Snuffish 28 Nov, 2012 @ 7:53am 
OMG! It works!

The problem was that I just run the "run_mod.bat" file directly after I have compiled the source.
I thought that the dll:s were placed at the right place with that bat file.

Your the man! Tank you so much! :)
client solution > configuration properties

go to Custom generation step > general

command line :

$(TargetDir)client.dll
if exist "$(sourcesdk)\..\..\sourcemods\your_mod\bin\client.dll" attrib -r "$(sourcesdk)\..\..\sourcemods\your_mod\bin\client.dll"
copy "$(TargetDir)"client.dll "$(sourcesdk)\..\..\sourcemods\your_mod\bin\"


description : "copy to destination folder"

output :

$(sourcesdk)\..\..\sourcemods\your_mod\bin\client.dll
$(sourcesdk)\..\..\sourcemods\your_mod\bin\client.pdb // add this one for debug only.

so the client will be automatically copied in /your_mod/bin/ folder
do the same for the Server dll.
Snuffish 28 Nov, 2012 @ 9:44am 
Thank you once again! :)
< >
Showing 1-10 of 10 comments
Per page: 1530 50