Where Can i?

HL2Fans_MoleX

Newbie
Joined
Apr 16, 2005
Messages
84
Reaction score
0
I would like to know where can i find tutorials for coding...

I am planing on starting a mod some time soon maybe this summer... and i need to start learning coding :p
 
so your saying i can only use Visual C++ .net 2003 to work "code" for HL2?
or can i also use an other C++ programe "free" ^.^
 
You can use other IDE's, but for the SDK to compile correctly, and not you having to worry about conversions, VS C++ .NET 2003 is the best way to go.

If you are really against using it, then I would suggest Borland's Dev C++...

BTW, coding isn't like mapping that you can just pick up in a few months :P You have to work for probably close to one or two years, before you could code a Total-Conversion... I would suggest that you work on design for a few months, make sure that is rock solid (pages upon pages of documentation of your mod) and then start to learn coding, while maintaining the mod.
 
There is a free version of the Visual C++ compiler here. Note that this is a command-line only version, and you'll need a separate IDE to actually write the code. Search for tutorials online that explain how to build the SDK with this compiler; they do exist. This one is a good place to start.

Iced_Eagle said:
I would suggest that you work on design for a few months, make sure that is rock solid (pages upon pages of documentation of your mod) and then start to learn coding, while maintaining the mod.

To the contrary, I'd suggest learning to code first, and then worry about making your mod. You learn to make a mod by first making small changes -- changing the RPG speed, making the gravity gun stronger -- and moving up to larger changes. This is how you learn the structure of the SDK, and what's easy to do and what's nearly impossible to pull off. Also, you may find in the course of learning to program that you really don't like it that much, in which case writing a mod will be out of the question.

Two things have to happen before you write a mod:
1. You need to know C++ rather well. This includes advanced topics like class hierarchies and inheritance. This also includes knowing the basics down cold, like the fact that the expression (1 < i < 3) always evaluates to true, regardless of the value of i. If you don't, you'll never be able to make sense of anything in the SDK. If you REALLY work at it (I'm talking coding 30-40 hours a week), you might be able to gain sufficient skill in a couple months. Maybe. Programming isn't easy! :)
2. You need to like programming. Unless you have some sort of superhuman will, you can't force yourself to do something as time-consuming as making a mod.

I'm not saying this to discourage you! You did the right thing by asking where to start. With a lot of effort and determination, you can get there. Also remember, though, that programming itself can be fun, even without the end of mod-making in mind. I've been programming for about 11 years, have an internship for the summer, and I still code a lot in my free time.
 
now that makes sence!! ok will try maybe 10hours a week and then jump on the mod when ready...

also by the way i have : Bloodshed dev c++ is that good?
 
Physicles: By design, I meant like gameplay flow charts, descriptions of each thing in the universe, maybe a backstory or something, etc etc so that if you wanted to have a friend come on as concept art, he could help you out, whlie you learn to code. Obviously, I wouldn't even suggest doing any of the code for your first mod, maybe do website/foirums administration, PR, community events, etc etc and pick up actual coders once you are getting stuff modeled.

Bloodshed Dev C++ is perfect, it's what I meant in my first post :D Make sure to grab the latest version.
 
i have the latest version! and still reading the tuts i hope i do well.... and by the way thank you all for the help.

i will post my first programs sometime around ^.^
 
Iced_Eagle said:
You can use other IDE's, but for the SDK to compile correctly, and not you having to worry about conversions, VS C++ .NET 2003 is the best way to go.

If you are really against using it, then I would suggest Borland's Dev C++...

BTW, coding isn't like mapping that you can just pick up in a few months :P You have to work for probably close to one or two years, before you could code a Total-Conversion... I would suggest that you work on design for a few months, make sure that is rock solid (pages upon pages of documentation of your mod) and then start to learn coding, while maintaining the mod.

Borland doesn't own DEV C++, it's open source and it's based on the mingw port of gcc 3.4.2. Borland owns Turbo C/Turbo C++
 
ok guys im have a problem over here for some reason the test i was doing did not work.

#include <stdio.h>
void main()
{
printf("Salut Abel\n");
}

for some reason i do not know, compiler got errors.

Compiler LOG
Compiler: Default compiler
Executing g++.exe...
g++.exe "C:\Documents and Settings\Molex cs server\My Documents\my programing\mon premier program.cpp" -o "C:\Documents and Settings\Molex cs server\My Documents\my programing\mon premier program.exe" -I"C:\Dev-Cpp\lib\gcc\mingw32\3.4.2\include" -I"C:\Dev-Cpp\include\c++\3.4.2\backward" -I"C:\Dev-Cpp\include\c++\3.4.2\mingw32" -I"C:\Dev-Cpp\include\c++\3.4.2" -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib"
C:\Documents and Settings\Molex cs server\My Documents\my programing\mon premier program.cpp:3: error: `main' must return `int'

Execution terminated
 
i have been getting deep in the zone with the tuts and i managed to make a code work!!!

#include <iostream>

using namespace std;

int main (int argc, char *argv[])
{
char quit;

quit = '\0';
while (quit != 'c')
{
cout << "Hello ! this is my first app" << endl;
cout << "Im not sure how i did this" << endl;
cout << "But." << endl;
cout << "Type c to quit" << endl;
cin >> quit;
}

return 0;
}
 
Back
Top