Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tools] Hammer and other tools #175

Open
LakoMoor opened this issue Jan 16, 2023 · 37 comments · May be fixed by #254
Open

[Tools] Hammer and other tools #175

LakoMoor opened this issue Jan 16, 2023 · 37 comments · May be fixed by #254
Labels
enhancement New feature or request

Comments

@LakoMoor
Copy link

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

@SanyaSho
Copy link
Contributor

SanyaSho commented Jan 17, 2023

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

@LakoMoor
Copy link
Author

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 LakoMoor changed the title Hammer and other tools [Tools] Hammer and other tools Jan 17, 2023
@nillerusr nillerusr added the enhancement New feature or request label Jan 17, 2023
@er2off
Copy link
Contributor

er2off commented Jan 31, 2023

@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.

@LakoMoor
Copy link
Author

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++.

@StartForKiller
Copy link

StartForKiller commented Mar 17, 2023

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
Copy link

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

@er2off er2off linked a pull request May 10, 2023 that will close this issue
5 tasks
@coderamen666
Copy link
Contributor

You could compile Hammer against winelib.

@yungDoom
Copy link

yungDoom commented Mar 5, 2024

@coderamen666 did you managed to compile hammer with winelib?

@yungDoom
Copy link

yungDoom commented Mar 5, 2024

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

@er2off
Copy link
Contributor

er2off commented Mar 5, 2024

which is the original leak

1st commit, lol

3bf9df6

@yungDoom
Copy link

yungDoom commented Mar 5, 2024

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

@yungDoom
Copy link

yungDoom commented Mar 5, 2024

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

@coderamen666
Copy link
Contributor

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

@yungDoom
Copy link

yungDoom commented Mar 5, 2024

oh okay

@coderamen666
Copy link
Contributor

@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

@yungDoom
Copy link

yungDoom commented Mar 5, 2024

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

@coderamen666
Copy link
Contributor

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
Copy link
Contributor

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

@yungDoom
Copy link

yungDoom commented Mar 5, 2024

🤞

@coderamen666
Copy link
Contributor

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

@yungDoom
Copy link

yungDoom commented Mar 5, 2024

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

@SanyaSho
Copy link
Contributor

SanyaSho commented Mar 5, 2024

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

@yungDoom
Copy link

yungDoom commented Mar 5, 2024

Contributor

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

@coderamen666
Copy link
Contributor

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

@yungDoom
Copy link

yungDoom commented Mar 5, 2024

image "hl2_src"

image

@SanyaSho
Copy link
Contributor

SanyaSho commented Mar 5, 2024

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

@yungDoom
Copy link

yungDoom commented Mar 5, 2024

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?

@SanyaSho
Copy link
Contributor

SanyaSho commented Mar 5, 2024

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

@yungDoom
Copy link

yungDoom commented Mar 5, 2024

oh okay

@coderamen666
Copy link
Contributor

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

What files should I copy?

@SanyaSho
Copy link
Contributor

SanyaSho commented Mar 5, 2024

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

What files should I copy?

dx9sdk/dx10sdk
some files from utils/vbsp
public/p4lib

@yungDoom
Copy link

yungDoom commented Mar 5, 2024

thanks for this

@yungDoom
Copy link

yungDoom commented Mar 5, 2024

i get an linker error about telemetry

@SanyaSho
Copy link
Contributor

SanyaSho commented Mar 6, 2024

i get an linker error about telemetry

add RAD_TELEMETRY_DISABLED define somewhere in vpc_scripts/

@yungDoom
Copy link

yungDoom commented Mar 6, 2024

thanks but now hammer wants vphysics.dll but i dont have ivp, i tried to put the source-physics ivp to my folder but it gave me unresolved external symbol, so i need import vphysics from source-engine repository too and fix it maybe.

Okay i replaced with the source-engine vphysics and ivp, now it builded!

@yungDoom
Copy link

yungDoom commented Mar 6, 2024

AppFramework : Unable to load module inputsystem.dll!
Unable to load interface InputSystemVersion001 from inputsystem.dll
@SanyaSho, What is the problem?

@SanyaSho
Copy link
Contributor

SanyaSho commented Mar 6, 2024

AppFramework : Unable to load module inputsystem.dll! Unable to load interface InputSystemVersion001 from inputsystem.dll @SanyaSho, What is the problem?

missing SDL2.dll

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants