coding? Created 16 years ago2008-01-26 19:16:56 UTC by thehalflifedude thehalflifedude

Created 16 years ago2008-01-26 19:16:56 UTC by thehalflifedude thehalflifedude

Posted 16 years ago2008-01-26 19:16:56 UTC Post #244355
i really want to know how to code for hl1. is there any books or tutorials on coding for half life? also, one thing i never could find out how to do, how do you compile the hl.dll? (i've never compiled a dll before.)

please help me. i need this so i can add the ar2 to my mod.

(also, for those of you who had said that making a mod for a 6 year old engine is a waste of time, well, for your information, half life 2 uses some parts of the old half life engine. it's not a completly new engine, it's the old engine WITH the source engine. half life 2 may use a lot of the source engine, but it's still the same old engine.)
Posted 16 years ago2008-01-26 19:29:18 UTC Post #244356
Coding is not an easy thing to just learn. Ive been trying for months and ive made only small progress. Try googleing C++ tutorials, and youll get some good resources. But it will take you a long time, and you have to be dedicated, otherwise, dont even bother trying to learn coding
Posted 16 years ago2008-01-26 19:32:28 UTC Post #244357
dude, i'm not adding physics here. i'm just copying the code for the 9mmar, modyfing it, and turning it into the ar2. also, can somebody PLEASE tell me how to compile the hl dll?
Posted 16 years ago2008-01-26 19:35:35 UTC Post #244358
I do not know how to compile the dll.

ok, now please answer this honestly, and im not trying to be offensive, but have you ever coded, seen coding, or know anything about coding?
Posted 16 years ago2008-01-26 19:38:50 UTC Post #244359
atemmped coding, but i didn't know how to compile the hl.dll, so i gave up coding.
Posted 16 years ago2008-01-26 19:42:25 UTC Post #244361
Well, its good that you have at least some idea of what your doing. Do what i said before and learn some more about coding.

As for the dll, wait for another reply from someone other than me :|
Posted 16 years ago2008-01-26 19:50:37 UTC Post #244364
I'll help you two here. I am a begginer coder but I do know how to compile the dlls and modify the weapons and what ever you guys said.

http://www.snarkpit.net/editing.php?page=tutorials&game=HL&id=223

After I explain to you guys hoe to compile to get a dll, read that tutorial carefully.
Posted 16 years ago2008-01-26 20:00:30 UTC Post #244365
is there any other way to compile it? cuz i don't want to waste 3 hours just to downlaod a stupid program that's +70 mbs just to compile a single dll.
Posted 16 years ago2008-01-26 20:03:01 UTC Post #244366
COMPILING TO GET A DLL

In your code, there are dsw and dsp files. These files contain all the information you need to compile, along with all the other header and source files (.h .cpp). The dsw/dsp really just links all these files together.

Download the code compiler/editor I linked to (thanks to some guy from twhl, cant remember). Once you have, you should be able to double click on the dsw or dsp files and open them. Doesn't matter which one you open, they are both the same to me. Once it openes, click build > build <insert name here>.dll.

The dsw/dsp files for the half-life/spirit source code are located in the cl_dll folders and the dlls folder. Obviously this gives you the two dlls you need for you mod. hl.dll and client.dll.

After your code is finished compiling, it will create a new folder in the same directory as the dsw/dsp was that contains a bunch of spr files and the finished dll.

Next time you go to compile, click build > rebuild all.

Now do my tutorial :D
Posted 16 years ago2008-01-26 20:03:45 UTC Post #244367
No, there is no other way :| .
Posted 16 years ago2008-01-26 20:04:07 UTC Post #244368
it'll take you 3 hours to download a 70mb program?

get some internets.
Archie ArchieGoodbye Moonmen
Posted 16 years ago2008-01-26 20:05:26 UTC Post #244369
This program will be like your hammer for mapping. And its not a waste :|
Posted 16 years ago2008-01-26 20:15:26 UTC Post #244370
use dev-c++ its free and like 9mb size and its one of the best :^_^:
Posted 16 years ago2008-01-26 20:23:36 UTC Post #244372
If anybody else is interested in learning to code, than I will be glad to help you. Read my post about how to compile code, than read the tutorial and follow it. This will give you some experience and will make you familiar with what code looks like and your c++ editing program. I am assuming no coding knowledge or experience but some common sense, I don't think anybody here lacks that ;)
Posted 16 years ago2008-01-26 20:38:34 UTC Post #244373
use dev-c++ its free and like 9mb size and its one of the best :^_^:
downloading immeaditly. thanks for sharing that!
Posted 16 years ago2008-01-26 20:55:52 UTC Post #244374
Whatever. Don't come to me if you are having problems getting it to work with the half-life source code or any other problems.
Posted 16 years ago2008-01-26 21:18:41 UTC Post #244375
half life 2 uses some parts of the old half life engine
That's actually incorrect.
he amount of Quake code remaining in Source is a point of contention. John Carmack commented on his blog in 2004 that "there are still bits of early Quake code in Half-Life 2" and numerous development interfaces are similar to Quake's, at least at a high level - but with both easily likely of being Valve avoiding reinventing the wheel, neither are indicative of a notable reliance on the older engine. Indeed given the fact that Source's 2003 code leak did not produce any such claims it can only be assumed that no incriminating evidence was to be found.
AJ AJGlorious Overlord
Posted 16 years ago2008-01-26 21:22:38 UTC Post #244376
"there are still bits of early Quake code in Half-Life 2"
Posted 16 years ago2008-01-26 22:23:25 UTC Post #244379
use dev-c++ its free and like 9mb size and its one of the best ^^ - :^^:
Actually, it's not. It's development has halted more than two years ago, and the latest version ships with an outdated version of the GCC compiler. And while it's interface is less intimidating than the various Microsoft Visual IDE's, it's also a lot less powerfull.

Anyway, @thehalflifedude: check out The Wavelength. It has several usefull Half-Life coding articles. As for a 70 MB download, is that a big issue for you? A decent IDE can speed up your programming and save you a lot of hassle, so I'd say, just download it and check it out.

And no, the Source engine certainly isn't the same engine that Half-Life uses. 'bits of early Quake code' doesn't mean 'the same engine'. After all, just look at the difference in capabilities and power... ;)
Posted 16 years ago2008-01-26 22:47:51 UTC Post #244380
for a free alternative to Visual Studio, the best option is to use Code::Blocks (nightly build) with the latest version of MinGW, (which is the GCC compiler for windows).
Unfortunately you cannot use GCC to compile the Half-Life code, so you need to either get an old copy of VS6, or just set up CB to use its compiler.

As for the discussion on the engines, Source is based on the Half-Life code, but in reality the engine is completely different. Of course, some parts are very similar, seeing as they both use BSP technology, but they have modified it a lot, and almost everything else is new. There is no way you can say they are the same engine, just because they reused an efficient function here or there.
Penguinboy PenguinboyHaha, I died again!
Posted 16 years ago2008-01-27 14:57:27 UTC Post #244429
ok, i'm going to use aarons program, now that utorrent isn't running. my dad has his own machine and it has utorrent on it. it slows down my cennection because we have a router (both machines are attached to it) so now that utorrents not running, i have fast internets! :biggrin:
Posted 16 years ago2008-01-28 01:03:33 UTC Post #244455
okay, mabye i AM that hopless. how do you add another weapon? (sorry for the dumb question, i only knew how to change what gun the grunt drops)

can anyone help me with this? cuz i really need this for my mod.
You must be logged in to post a response.