HL1 modding: How do I compile/de-compile dll's(or .h files)?
12 replies, posted
Me and a friend thought it would be cool to make a mod, so we are making maps, skinning, making music, sounds and all that.
Now we want to edit walk-speed, hud color and other stuff. It seems that we need to edit the client dll's.
We have Microsoft Visual studio and the SDK, but we don't know what to do from here.
Do we have to compile the SDK into a .dll file and put it in the mod-directory, or do we need to open and edit the project dll? If the latter, how?
Interlopers would be better for this. They're more of a coding/modding community as oppose to a playing community, like Facepunch.
[QUOTE=~ZOMG;24864375]Interlopers would be better for this. They're more of a coding/modding community as oppose to a playing community, like Facepunch.[/QUOTE]
Yea, but they seem to specify on Source mods, not Half Life 1.
This is Half-Life's source code ported to work with Visual Studio 2010, which is free.
[url]http://quad.hostilezone.net/Half-Life-SP_SDK_v2.3(VS2010).rar[/url]
Post your progress, so I can help you.
[QUOTE=Hybrid 4F;24865030]This is Half-Life's source code ported to work with Visual Studio 2010, which is free.
[url]http://quad.hostilezone.net/Half-Life-SP_SDK_v2.3(VS2010).rar[/url]
Post your progress, so I can help you.[/QUOTE]
Link doesn't work. We tried to pack everything in the single-player SDK into a .dll and make the game/mod pick this .dll file to run. Problem is that it froze.
There's one for Visual Studio 2008.
[url]http://www.moddb.com/company/tesha-software/downloads/half-life-sdk-v23-for-visual-studio-2008[/url]
[QUOTE=Hybrid 4F;24866277]There's one for Visual Studio 2008.
[url]http://www.moddb.com/company/tesha-software/downloads/half-life-sdk-v23-for-visual-studio-2008[/url][/QUOTE]
And then we add all the single-player files(.h etc) and create the .dll?
I am the one doing the maps for this project. I'm currently using the Hammer Editor MOD 'Spirit of Half Life', which may cause several problems when it comes to using the original Half Life's SDK with my Spirit of Half Life made maps, as "Spirit" uses it's own .dll.
I found the SDK for spirit however, but I still don't know how to make those .dll's I compile work.
I just threw every .h file from the folder containing singleplayer SDK files into Visual Studio 2010, and then compiled the .dll. This made the game freeze when I tried to run the mod.
What am I doing wrong? Should I avoid adding certain files, or add some sort of script to make the .dll run? Thanks.
Hey Ted, the SDK you have might be not compatible with Visual Studio 2010 - and honestly, I don't understand the way you work. What do you need, anyway?
[QUOTE=Hybrid 4F;24870088]Hey Ted, the SDK you have might be not compatible with Visual Studio 2010 - and honestly, I don't understand the way you work. What do you need, anyway?[/QUOTE]
As Thaard said, we're trying to adjust things like hud color, running speed and so on. In short, I would like to know how to create a working hl.dll by using the sdk.
You don't have to edit the code to change hud colour (there is a command to change it), and movement speed, if you are using Spirit of Half-Life. Perhaps, you should get Microsoft Visual C++ 6.0 Standard Edition. It's not smooth as Visual Studio, but it's fully compatible Valve and Laurie's code.
[QUOTE=Hybrid 4F;24870329]You don't have to edit the code to change hud colour (there is a command to change it), and movement speed, if you are using Spirit of Half-Life. Perhaps, you should get Microsoft Visual C++ 6.0 Standard Edition. It's not smooth as Visual Studio, but it's fully compatible Valve and Laurie's code.[/QUOTE]
Thanks, but would these changes be permanent? The main character in the mod is supposed to walk slower than Freeman.
Yes, I believe you can use trigger_auto (or any other similiar entity like trigger_inout) to automaticly trigger your settings every time when level loads. It's been a long time since I last edited Half-Life's code. VERC is gone, so I can't check the entity list.
Sorry, you need to Log In to post a reply to this thread.