Starting to MOD Created 15 years ago2008-08-09 15:50:54 UTC by Spike Spike

Created 15 years ago2008-08-09 15:50:54 UTC by Spike Spike

Posted 15 years ago2008-08-09 15:50:54 UTC Post #253498
I would like to start modding, just to make some experiments and stuff. So how do I start? Which tools do I need?

I know C++, I think HL2 is done with C++ but I don't know anything about libraries, classes and all this stuff, I only know how to make little programs like a sudoku corrector or mathematic programs.

Can some help me out on this?
Posted 15 years ago2008-08-09 15:59:17 UTC Post #253499
When you say "I would like to start modding" that could mean absolutely any aspect. (i.e. mapping, skinning, modelling or coding.)

If its just the coding side of things that you are after then I suggest you simply read tutorials on libraries and classes.
monster_urby monster_urbyGoldsourcerer
Posted 15 years ago2008-08-09 16:23:00 UTC Post #253501
I would guess he wants to "code"....since he is mentioning c++ :P

Best would be to get source sdk first :P
Posted 15 years ago2008-08-09 16:27:19 UTC Post #253502
lolz, I know mapping skinning and modeling. It's the coding part the one I'm interested. I learn kickly to code, but the difficult part is how Source code is done.
Best would be to get source sdk first
Lol I already have it since January.

Which program do I need to compile for Source? Or modding is only based on scripts? I don't know, explain it to me please.
Posted 15 years ago2008-08-09 16:45:10 UTC Post #253503
Have you been to Wavelength?
Captain Terror Captain Terrorwhen a man loves a woman
Posted 15 years ago2008-08-09 18:19:44 UTC Post #253504
GldSrc: Microsoft Visual C++ 6.0 (recommended)
Src: Microsoft Visual C++ 2003 (recommended) and newer
Torrent em'.

As for the Source code, both HL and HL2 are written in C++
Both have a similar entity hierarchy/system and more similar things.

For GldSrc , google Half-Life coding tutorials and I'm sure you'll find loads of material to get you started/guide you further.
For Src, go to the Valve Developer wiki/google it.
Daubster DaubsterVault Dweller
Posted 15 years ago2008-08-09 18:43:12 UTC Post #253505
oh and to notice...for orange engine....there is not that much
and you can't use the ep1 engine tuts 1:1 . ;)

but as a guideline...
Posted 15 years ago2008-08-09 18:57:51 UTC Post #253506
for source, i think VS.NET 2005 is the standard now.
Penguinboy PenguinboyHaha, I died again!
Posted 15 years ago2008-08-09 21:00:03 UTC Post #253507
What does all this stuff mean?
if ( gpGlobals->maxClients > 1 )
{
// no thirdperson in multiplayer.
return;
}
and make it look like this:
/*
if ( gpGlobals->maxClients > 1 )
{
// no thirdperson in multiplayer.
return;
}
*/
Is it a real code or just broken ASCII?
Posted 15 years ago2008-08-09 21:15:44 UTC Post #253508
Broken.
if ( gpGlobals->maxClients > 1 )
{
// no thirdperson in multiplayer.
return;
}
and make it look like this:
/*
if ( gpGlobals->maxClients > 1 )
{
// no thirdperson in multiplayer.
return;
}
*/
Oskar Potatis Oskar Potatis🦔
Posted 15 years ago2008-08-09 21:19:48 UTC Post #253509
Ok thanks. I found that on moddb and I though it was weird for a code.

BTW does it really care which version of VS do I use?
Posted 15 years ago2008-08-09 21:20:26 UTC Post #253510
Yes. Are coding for GoldSource of Source?
Oskar Potatis Oskar Potatis🦔
Posted 15 years ago2008-08-09 21:21:03 UTC Post #253511
Source
Posted 15 years ago2008-08-09 21:24:11 UTC Post #253512
Posted 15 years ago2008-08-09 21:29:02 UTC Post #253513
I'm choosing 2005 on pirate bay dot or... I mean I'm going to buy it.
Posted 15 years ago2008-08-09 22:08:35 UTC Post #253514
Spike ... shesh shesh shesh
I like your way of thinking :P
Posted 15 years ago2008-08-10 08:22:46 UTC Post #253528
Can I use VS 2005 Express edition or standert edition instead of the profesional?
Posted 15 years ago2008-08-10 09:08:12 UTC Post #253529
Yes.
The Mad Carrot The Mad CarrotMad Carrot
Posted 15 years ago2008-08-10 10:12:40 UTC Post #253531
I would not recommend Express Edition.

[url=http://developer.valvesoftware.com/wiki/Compiling_under_VS2005#Requirements]
If you use Express Edition you have to install
  • MS DirectX SDK
  • Microsoft Platform SDK For Windows 2000/XP/Server 2003
  • Microsoft Windows SDK For Windows Vista
And do some other stuff.
[/url]

Downloa... buying and installing standard VC 2005 is probably faster.
Oskar Potatis Oskar Potatis🦔
Posted 15 years ago2008-08-10 17:06:39 UTC Post #253552
Ok I have all the necessary stuff. Now I want to create the "project" on Visual C++. So I press File->New-> Project and it pops-up a window telling me to choose a option: CLR,Win32,General.

Which one do I choose?
Posted 15 years ago2008-08-10 17:09:20 UTC Post #253570
You don't want to start a new project. If you want to mod for Half-Life 2/Source, you need to modify the gamecode. So open that. To get the code, you need to use the create new mod wizard in Steam. This'll create the necessary files that you need to mod for Source, including project solution files. Open that one in your Visual C++ editor.
The Mad Carrot The Mad CarrotMad Carrot
Posted 15 years ago2008-08-10 17:22:36 UTC Post #253572
Aha, you mean Everything_SDK-2005?

Thanks btw
Posted 15 years ago2008-08-10 17:33:48 UTC Post #253573
Im not sure about this, but Everything_SDK-2005 will load both the multiplayer and the singleplayer source code. If you're mod is singleplayer only, then load the singleplayer code.

Someone correct me if im wrong about this.
The Mad Carrot The Mad CarrotMad Carrot
Posted 15 years ago2008-08-10 17:40:29 UTC Post #253574
There are 2 more: Game_Episodic-2005 and Game_Hl2-2005, I think both are single player because I chose Single Player option on Mod creation
Posted 15 years ago2008-08-10 18:16:12 UTC Post #253575
My guess is:

Game_Episodic-2005 = Orange Box code.

Game_Hl2-2005 = Episode 1/pre-Orange Box code.
The Mad Carrot The Mad CarrotMad Carrot
Posted 15 years ago2008-08-13 14:49:25 UTC Post #253633
I succesfully compiled the mod (Game_Episodic-2005) without any error or warning.

But when I try to run the mod it crashes on menu (menu not showing up) + the background is from HL2 and I Created the Mod for Ep2. Should't it run HL2:Ep2 as if I was opening the original game?
You must be logged in to post a response.