source-engine icon indicating copy to clipboard operation
source-engine copied to clipboard

[Tools] Hammer and other tools

Open LakoMoor opened this issue 2 years ago • 37 comments

I see folders with Hammer and SDKlauncher. But they didn't have wscript file. Any ideas how to build it?

LakoMoor avatar Jan 16 '23 10:01 LakoMoor

clone original leak to windows host, fixup vpcs and build it with vpc hammer and other utils for sdk isnt ported to linux yet

SanyaSho avatar Jan 17 '23 05:01 SanyaSho

clone original leak to windows host, fixup vpcs and build it with vpc hammer and other utils for sdk isnt ported to linux yet

Well, it's like a crutch for me. still, the tool files are present in this repo.

LakoMoor avatar Jan 17 '23 05:01 LakoMoor

@SanyaSho have private repo with almost everything from utils/ directory.

Hammer is the most difficult part because it uses Win32 API, maybe easier to rewrite it from scratch than try to port as is.

er2off avatar Jan 31 '23 14:01 er2off

Hmm... I'm trying to create a wscript file based on launcher and launcher_main. But I had a lot of errors after compilation. I think this problem is solvable, but I don't have more experience in c/c++.

LakoMoor avatar Jan 31 '23 16:01 LakoMoor

My only issue when compiling it on windows with a crafted wscript is: nafxcw.lib(dllmodul.obj) : error LNK2005: already defined _DllMain@12 on LIBCMT.lib(dll_dllmain_stub.obj)

StartForKiller avatar Mar 17 '23 03:03 StartForKiller

idk if this can be force to use the nafxcw dllmain first and the use /force, or if it's a setup problem, i'm using v143 MFC tools

StartForKiller avatar Mar 17 '23 03:03 StartForKiller

You could compile Hammer against winelib.

coderamen666 avatar Feb 11 '24 04:02 coderamen666

@coderamen666 did you managed to compile hammer with winelib?

swaglesh avatar Mar 05 '24 11:03 swaglesh

@SanyaSho which is the original leak, full.zip?

swaglesh avatar Mar 05 '24 12:03 swaglesh

which is the original leak

1st commit, lol

https://github.com/nillerusr/source-engine/commit/3bf9df6b2785fa6d951086978a3e66f49427166a

er2off avatar Mar 05 '24 12:03 er2off

XD im trying to compile hammer but its not working so thats why i asked

swaglesh avatar Mar 05 '24 13:03 swaglesh

@er2off btw, how to fix the first commit to actually compile hammer? i get socketlib.vpc error

swaglesh avatar Mar 05 '24 15:03 swaglesh

I didn't compile hammer with winelib. It was just an idea

coderamen666 avatar Mar 05 '24 16:03 coderamen666

oh okay

swaglesh avatar Mar 05 '24 16:03 swaglesh

@er2off btw, how to fix the first commit to actually compile hammer? i get socketlib.vpc error

I tried doing what you are trying to do. Its a pain in the bum and I need help with it too

coderamen666 avatar Mar 05 '24 16:03 coderamen666

I compiled the hammer_dll and hammer_launcher successfully but when i try to open the hammer.exe, the program tries to access dll's, so i put the dll's to the right folder but the inputsystem doesnt load even if it was in the folder its really weird. it actually loads but it gets unloaded :/

UPDATE: Actually wait a second, Source 2007 Leak has the hammer and hammer_launcher, maybe its working idk but i need visual studio 2005, im installing it: http://go.microsoft.com/fwlink/?linkid=57034

swaglesh avatar Mar 05 '24 16:03 swaglesh

I compiled the hammer_dll and hammer_launcher successfully but when i try to open the hammer.exe, the program tries to access dll's, so i put the dll's to the right folder but the inputsystem doesnt load even if it was in the folder its really weird. it actually loads but it gets unloaded :/

UPDATE: Actually wait a second, Source 2007 Leak has the hammer and hammer_launcher, maybe its working idk but i need visual studio 2005, im installing it: http://go.microsoft.com/fwlink/?linkid=57034

Could you try making a standalone repo that only has the source code needed to build hammer and the compile tools?

coderamen666 avatar Mar 05 '24 18:03 coderamen666

maybe? im trying to build to hammer in the 2007 repo, if this works then i will try to do it. and i think we need vs2005 c++ professional edition rather than express one. image

i found these: https://archive.org/details/microsoft-visual-studio-2005-professional-edition-disc-1 https://archive.org/details/microsoft-visual-studio-2005-msdn-library-disc-2_202103

and the product key: KGR3T-F2C26-RRTGT-D6DQT-QBBB3

I will try these on virtual machine and test it.

swaglesh avatar Mar 05 '24 18:03 swaglesh

maybe? im trying to build to hammer in the 2007 repo, if this works then i will try to do it. and i think we need vs2005 c++ professional edition rather than express one. image

i found these: https://archive.org/details/microsoft-visual-studio-2005-professional-edition-disc-1 https://archive.org/details/microsoft-visual-studio-2005-msdn-library-disc-2_202103

and the product key: KGR3T-F2C26-RRTGT-D6DQT-QBBB3

I will try these on virtual machine and test it.

Good luck. I really hope that someone could eventually build hammer on modern windows

coderamen666 avatar Mar 05 '24 18:03 coderamen666

🤞

swaglesh avatar Mar 05 '24 18:03 swaglesh

I'm not skilled in dealing with Microsoft stuff. Linux is more of my thing

coderamen666 avatar Mar 05 '24 18:03 coderamen666

i used linux for building kisak strike and play it.
I created the repo but idk if hammer works its just a test repo: https://github.com/WH0LEWHALE/hammer-source-code

swaglesh avatar Mar 05 '24 18:03 swaglesh

find somewhere full.7z and copy some missing files from SDK2013MP

SanyaSho avatar Mar 05 '24 20:03 SanyaSho

Contributor

did you compiled the hammer? i already have these files by the way. thanks for that actually, i will try it.

swaglesh avatar Mar 05 '24 21:03 swaglesh

Contributor

did you compiled the hammer? i already have these files by the way. thanks for that actually, i will try it.

Not yet I'll try using full.7z

coderamen666 avatar Mar 05 '24 21:03 coderamen666

image "hl2_src"
image

swaglesh avatar Mar 05 '24 21:03 swaglesh

Contributor

did you compiled the hammer? i already have these files by the way. thanks for that actually, i will try it.

i'm using this engine only for my port, for anything else i have modified source2013 engine branch with 64bit hammer

SanyaSho avatar Mar 05 '24 21:03 SanyaSho

Contributor

did you compiled the hammer? i already have these files by the way. thanks for that actually, i will try it.

i'm using this engine only for my port, for anything else i have modified source2013 engine branch with 64bit hammer

where? is that private?

swaglesh avatar Mar 05 '24 21:03 swaglesh

Contributor

did you compiled the hammer? i already have these files by the way. thanks for that actually, i will try it.

i'm using this engine only for my port, for anything else i have modified source2013 engine branch with 64bit hammer

where? is that private?

yes

SanyaSho avatar Mar 05 '24 21:03 SanyaSho

oh okay

swaglesh avatar Mar 05 '24 21:03 swaglesh

find somewhere full.7z and copy some missing files from SDK2013MP

What files should I copy?

coderamen666 avatar Mar 05 '24 21:03 coderamen666