• Setting up CodeBlocks for hl1
    8 replies, posted
How to set up codeblocks for programing hl1?
Well. What have you tried already?
I want to try [URL="http://www.moddb.com/games/half-life/tutorials/where-is-poppy-your-first-custom-entity-part-1"]this[/URL]. But I need to set up CodeBlocks.
Why do you need to use CodeBlocks? I've never heard of anyone use CodeBlocks for half life 1/2 modding. Actually I haven't heard anything about CodeBlocks since I stopped using it in like 2008. Most people use Visual Studio for hl1 modding nowadays, there are enough tutorials out there for that.
[QUOTE=AtomiCal;53006898]Why do you need to use CodeBlocks? I've never heard of anyone use CodeBlocks for half life 1/2 modding. Actually I haven't heard anything about CodeBlocks since I stopped using it in like 2008. Most people use Visual Studio for hl1 modding nowadays, there are enough tutorials out there for that.[/QUOTE] Thanks. But Visual studio is a bit heavy and it is lagging in my pc, While codeblocks is lightweight and there's no lag when I run it.
[QUOTE=Xxmahaxx;53006932]Thanks. But Visual studio is a bit heavy and it is lagging in my pc, While codeblocks is lightweight and there's no lag when I run it.[/QUOTE] You can't be more right about that. Visual Studio is a huge piece of bloated shit, but it is what people use to develop mods for Half Life 1 and 2. You can find a good guide for half life 1 [url=http://www.moddb.com/games/half-life/tutorials/introduction-to-goldsrc-programming-setting-up-visual-studio]here[/url] I can't find any guides for codeblocks, sorry.
Visual Studio is probably a better choice as it should 'just work'. I don't think Code::Blocks needs any special set-up to build Half-Life, though from memory you need to configure it to point to a compiler. The hard part will probably be getting it to build - there are Visual Studio-specific things I think (if you look at botman's HPB Bot code he had to change some things to compile on Windows with Borland and gcc) and I think vgui.lib is built with Visual Studio which means that the exports are Visual Studio name-mangled and probably won't work in another compiler. I think you can point Code::Blocks at a different compiler (but I last touched it in probably 2006 so don't quote me on it).
Getting it to compile isn’t difficult if you download the version that comes with gcc
Install the microsoft compiler suite and use Visual Studio [B]Code[/B] rather than the full visual studio IDE, might take a little bit of fiddling around but eventually you'll be able to compile it.
Sorry, you need to Log In to post a reply to this thread.