Last night I spent a few hours to make Half-Life source code to be compiled in Visual Studio 2008. It was very boring and tiresome work, so I think, publishing the results of this work would be very useful for those coders who want to deal with Half-Life SDK and use MSVC 2008 (which is modern and advanced and which you can legally download for free, unlike MSVC 6).
ISSUES
- Both client and server projects included in 'src_dll' solution. The solution smoothly and clearly compiling on VC 2008 and probably output DLLs are workable. :)
- I removed original VC6 DSPs and I am not sure you will be able to compile the SDK in VC6 at all. But you still can restore them from original SDK if you want.
- 'ARRAYSIZE' macro in 'engine\eiface.h' undefines a macro with the same name which defined in 'winnt.h'
- A strange 'warning C4482' disabled in the client project (seems to be not serious)
- Original 'common\com_model.h' replaced with its analog from QuakeWorld to allow access map surfaces, polygons, textures etc. Thanks to author of this file whoever he is.
- !!!IMPORTANT: 'HSPRITE' type on the client renamed to 'SpriteHandle_t' due to 'windef.h' which defined same-named type for itself. I hope you will like this new typename. :)
UPDATE
I discovered an error in 'dlls\effects.cpp' in line 430 which appears in Debug mode only:
> SetTouch( TriggerTouch );
must be replaced with:
> SetTouch( &CBeam::TriggerTouch );
Archive re-uploaded.
Nice job, downloading now. I'll probably test it out this weekend. ^^
giant thx
Win.
BIG thx
Many many thanks, I am nub at coding, so this is greatly appreciated! :-)
i'm actually glad about ppl saying this is nice, because this is released by the makers of BooM, the "so called" best hl mod ever.
They've already said that mod was a joke
Thank you so much for this. I hated working with that dang old compiler. If only someone would do this for a compiler like gcc/MingGW...
You should try doing that yourself, great learning experience. Also, thanks so much, i did a MUCH dirtier version of this a while ago, and this is a breath of fresh air
Didn't botman do this a while back?
EPIC WIN!
Thnx man!
lol this is made by Gary_McTaggart
How to get Microsoft Visual Studio 2008, 11-99(Someone Need Assistance/Help)
Because i have to make new mod!!!
Microsoft.com
I don't get it what does this do?
I made fixes to make it possible to build it under MSVC 2008, cause if you try to compile original HLSDK you would get a lot of errors...
how to make multiplayer changelevel2 ?
my email:peon501@gmail.com
It says that sl_dlls and hl are unavailable. :( pls help.
In Visual Studio beta 11 it says I need upgrades for 3 of the files, is it incompatible with 11? Do I need to go to 10 or 8?
This version is for 2008, but it was created for earlier, you could in theory update, but 2008 is no longer an option, it seems to have gone off of MS servers.
This works fine with 2010... And there is the updated SDK from Valve now available on Github.com try this!
ARRAYSIZE and HSPRITE?? Is that all?? Lol, thanks, man! (never had VS2008 so your info will help me to provide my mod source to new VS users)
PS: Normal people (//NOTE: crossplatform programmers) already have all SetThink(&Class::Func) written this way ;) (that's a GCC requrement)
I have one thing I wish existed, one for 2010 or 2012. Still, huge mother truckin win!