Digital Paint Discussion Board
Development => General Development => Topic started by: Apocalypse on August 23, 2007, 04:21:32 PM
-
Hey guys I was just thinking how much I could do if I could learn to program well.
I was wondering if someone could either teach me the basics of programming or point me to some sort of guide to do so.
-
http://www.cprogramming.com/tutorial.html
-
That link has so many links it scares me lol. By the way what programs should I use and are they free?
-
Learn C for this game, also read up on OpenGL. As far as us teaching you goes, there's a lot you can learn from Google that would be better than what we could teach you.
Download an IDE (Integrated Development Environment) that includes a C/C++ compiler. Microsoft has Express Editions of all their products, so you could get one from them, or BloodShed has Dev-C++ based off of MinGW which would be another good choice.
Cobo posted a valuable link, it'd be a great start.
-
Well the source for this game and most games made today are in C/C++. For programs, you need a c++ compiler. I suggest either Visual C++ compiler, which this games source is directly compiled in or Dev C++ compiler which is free!! The visual c++ one is expensive but worth it, or of course u could call upon the torrent master(kilo) and then it would be free. ;D
Dev C++ compiler:
http://www.bloodshed.net/devcpp.html
EDIT:
y00tz beat me to posting. lol. but he is right in his post. the dev c++ like i gave u is an ide with a c/c++ compiler in it.
-
Thanks guys I hope you'll see some stuff made by me come out soon :)
@cuso I think I'll stick with dev it look fine.
-
cool. cant wait to see what you come out with. looking forward to it!!!! ;D
-
Before everyone here gives you their opinion, I have to ask: what are your goals for programming? The reason I ask is because programming isn't what it used to be. Do you want to be able to make a web service, a standalone program, a 3d program, data analysis tool? I'd find something that you want to work towards making first. You can read about C all you want, but you won't learn it unless you've applied it to something you want to do. Give us some ideas of what you're looking at making, and we'll point you in the right direction. PB2 was my inspiration on a few languages I've picked up.
Examples:
TCL - Because I wanted to make a !match bot that was 24/7 and not some hosted on someone's mIRC
PHP/MySQL - Wanted to make a cool Members page on the sP website
Perl - wanted to make a half-fast stdlog stats parser that would interface with PHP easily
-
What would you refer to as a web service?
-
If you are looking to help this game, understanding opengl is important too. (the game renders 3d in opengl).
This link takes you to opengl tutorials for c++ and other languages. Even VB6! This helped me because i knew vb6 and saw how it all went together.
http://nehe.gamedev.net/ ;D ;D ;D
-
by webservice i think he means making websites accesible by groups of people. this website ur on right now is a good example ;)
edit:
doh, double post lol. at least they are on different subjects.
-
Thanks again cuso by the way I never knew you programmed. I think probably a data analysis tool or a standalone program. I know this all seems kind of like I have no clue where to start and all but I appreciate you guys taking the time to help me out with it.
-
well actually i am a pretty bad programmer. :P but i have programmed in c++ and can understand it when i read it.vb6 tho is what i am good at. still i can help u get going. personally i think c++ in confusing and i am still trying to figure lots of it out. :o
edit:
i havent seen any updates on your tunnel map. i was looking forward to that one getting finished. :)
-
A webservice would be a website that provides a particular service. This forum is considered one. Maybe you'd like to create a site that handled the scheduling and coordination of DP pickup games for example. Tutorials will show you how to make "hello world" or neat effect applications, the hard part is finding something worth making and doing it right :)
-
Learn C for this game, also read up on OpenGL. As far as us teaching you goes, there's a lot you can learn from Google that would be better than what we could teach you.
Well, I dont think starting with C and openGL would go very good.
I think that what XtremeBain is saying is very true.
I think I started programming because I was really interested in stuff like that, and wanted to learn more.
First thing I tried was learning c++, I didnt even know what c++ but there I was, trying to compile a simple Hello World program, and I failed XD
I took a break, then I tried again, failed again.
Then I think I learned mIRC scripts, it was good experience, I guess, because the next time I tried with c++ I got it.
I didnt stick with native c++, tho, I quickly found out about Visual Studio's express editions and found managed c++, I learned about how CLR programs worked, then I found out about c# and I moved on to that, and I learned more.
Later after that I decided that I should start using some more 'professional' languages, and went back to managed c++, and then I started learning C with the DP2 source, then I learned win32 api in C and then I moved to Native C++ :)
So thats my story, my point is: It'll happen if you apply yourself :)
-
@XB Maybe I'd like to get good first so the DP pickup site doesn't look like excrement.
@cuso Oh I'm still going to continue it I'm just a bit busy helping max out with Crimson Elite designing maps getting, new hud, making a banner etc.
Thanks Cobo I will apply myself fully. By the way I understand the scientific calcuator (although I still don't know what Bin stands for lol) does that count?
-
@Cobo:
inspiring!!!!!!!! ;D actually that was inspiring and true as i failed my first c++ compile ever. xd xd
edit:
bin stands for binary :D
-
By the way I understand the scientific calcuator (although I still don't know what Bin stands for lol) does that count?
Not really.
Programming works quite differently from a scientific calculator.
Programs are written in things called 'Programming Languages' C, C++, C#, Basic, are some of them.
To make a program you would first create whats called 'Source Code'. This is just a file where the coding is done, and then you would pass that file to something called 'Compiler' and it creates your source into an actual program.
-
I didn't think so but there is always hope lol.
Thanks Cobo cuso is right :)
-
i wanted to be inspiring toooooo. so i made a useless program for u in vb6. just run it!!
-
Lol how'd you make that so fast.
-
actually visual basic (vb6) is really easy to learn. plus its a Gui/code language unlike native c++. Gui means graphical user interface. in vb6 you drag and drop the things u want. i dragged a timer and a label to the form.(the thing u drag to)
then i 'coded' the timer to flash the label on and off every half second. VB6 is a good beginner language because you can see what you are coding!! w00t.
tho it isnt as simple as just writing:
"flash the label 1/2 second" it is actuall coding and properties and such.
edit:
it took me longer to write that then the program XD
-
C# has all the 'visual' elements and is a good transition to more complex languages.
With REAL syntax.
-
Learn C for this game, also read up on OpenGL. As far as us teaching you goes, there's a lot you can learn from Google that would be better than what we could teach you.
Well, I dont think starting with C and openGL would go very good.
I think that what XtremeBain is saying is very true.
..
Hey guys I was just thinking how much I could do if I could learn to program well.
His first post says he wants to program WELL, I thought it was implied he's programmed before, now he wants to do stuff right and contribute to the game's source code. Either way I was throwing out some general information for him about the game's source. I realize that if he is a complete newb, he's not going to jump straight into OpenGL.
-y00tz
-
No, I haven't y00tz I was saying I want to learn how to do it and do it well but I see how that could be confusing.
-
Visual studio is probably the best IDE to use, and you can grab the express edition for free now. You'll also need Microsoft's platform SDK to compile most stuff. I've heard good things about Eclipse as well, but never used it. I'd say just grab some sample code and tinker. That's how I learn best. Reading and tutorials only get you so far. Messing with stuff on your own is how you really learn.
-
Visual studio is probably the best IDE to use, and you can grab the express edition for free now. You'll also need Microsoft's platform SDK to compile most stuff. I've heard good things about Eclipse as well, but never used it. I'd say just grab some sample code and tinker. That's how I learn best. Reading and tutorials only get you so far. Messing with stuff on your own is how you really learn.
tru dat!!!
but really visual basic is a good way to start out and you can download the express edition for free.http://msdn2.microsoft.com/en-us/express/aa718406.aspx
tho i still prefer the VB6, its not free.
but like jitspoe said, you need the .net framework to compile, but it will install it if you dont have it already.
w00t!!! get programming ;)
-
Oooh, I agree with some of the points made here.
Apocalypse, I think if you just search for some basic tutorials of the fundamentals behind what programming is. Then try and think of something you'd like to create, or perhaps look at something and thing "hmm, i'd like to make one of those". Learning something with purpose to it will help you a lot, or else it could all get very confusing very fast, especially if you have little experience before hand.
I've heard good things about Eclipse as well, but never used it.
We use Eclipse and its a very nice tool, free and easy for the beginner to setup, but very powerful when you get some more experience.
Soo yeah, try and think of a small project you'd like to complete, then read up specifically on how to achieve that goal. When you work yourself through it slowly you'll realise you've actually picked up a lot more than you thought you would, and have something real YOU created at the end of it, ask any developers here and thats a lovely feeling to have. We'll be around to help you out if you get really stuck (but try and work it out for yourself first :P)
-
Where can I download Eclipse? Also one thing I'm thinking about doing no clue how to but it would be cool :/ is I've seen people say they were missing textures for maps and couldn't figure out what they were or where to get them multiple times so I was thinking there must be something in the bsp that says what the textures are used for each thing and I want to make something that you choose a map and it will see if you have the textures for it and if you don't have all of them it will download the ones you need is that possible?
-
Where can I download Eclipse? Also one thing I'm thinking about doing no clue how to but it would be cool :/ is I've seen people say they were missing textures for maps and couldn't figure out what they were or where to get them multiple times so I was thinking there must be something in the bsp that says what the textures are used for each thing and I want to make something that you choose a map and it will see if you have the textures for it and if you don't have all of them it will download the ones you need is that possible?
Its possible if you manage to read what the bsp file has.
-
Any idea how to do that?
-
Nope.
-
I'll PM Jits he might know.
-
Recommendation from someone who has many years experience with the C family of programming languages(including but not limited to C, C++, and C#):
Download Visual C++ 2005 Express(free version) and the Microsoft Platform SDK. The visual studio suite of IDEs are basically kind in the programming world(on windows, on mac it's xcode, and nix it varies). Buy a book on C++(I recommend Thinking in C++, very good book). You can learn through online tutorials, but a hard, professional copy is always better(I wish I had bought a book when I was new).. Any questions you have, I recommend asking them on the gamedev.net forums under the "For Beginners" section, or you can track me down, Deranged on GGC, FreeNode, and AfterNet.
Good luck.
-
Recommendation from someone who has many years experience with the C family of programming languages(including but not limited to C, C++, and C#):
Including but not limited too? C-- ? Hax.
-
The best IDE for C# is, hands down, SharpDevelop.
-
Recommendation from someone who has many years experience with the C family of programming languages(including but not limited to C, C++, and C#):
Including but not limited too? C-- ? Hax.
The C family is pretty big. Java, J#(and its variants), PHP, and objective C are also in the C family, I just listed the main 3.
The best IDE for C# is, hands down, SharpDevelop.
I Visual C# 2005 Team Suite is like sex in IDE form..
-
The best IDE for C# is, hands down, SharpDevelop.
What does SharpDevelop has that VS doesnt?
-
The best IDE for C# is, hands down, SharpDevelop.
What does SharpDevelop has that VS doesnt?
the question would be, why use sharpdevelop when even the lowest edition of vs2005 is more feature rich.. sharp develop is more if you want to use the MONO toolkit instead of the official .NET framework.
-
The best IDE for C# is, hands down, SharpDevelop.
What does SharpDevelop has that VS doesnt?
Freeness. I like it a ton more than VS.
-
So which is better and also where would I download them?
-
Man, I sure do hate when my Visual Studio is trapped and cant get out.
-
Man, I sure do hate when my Visual Studio is trapped and cant get out.
Ummm... I know I'm new to Programming but was that a joke or does it get stuck sometimes.
-
Ummm... I know I'm new to Programming but was that a joke or does it get stuck sometimes.
Bad joke :)
I would go with Visual Studio if I were you.
-
Try C using the GCC compiler
-
Try C using the GCC compiler
That would work, but an IDE (Integrated Development Enviroment i.e Visual Studio) would really be better.
-
what Apocalypse needs is an easy environment, and most compilers/ides not counting Visual Studio are rather scary and intimidating. By the way i just downloaded C# 2005 express and am learning to write hello world as we speak!!!! Its really similar to c++ so for apocalypse i recommend this. Also Visual Basic cuz its just the best period. XD ;D
-
Hm, forgtot about this:
http://www.kidsprogramminglanguage.com/
Its like basic, but with some C stuff.
Its pretty simple and easy.
-
Try C using the GCC compiler
That would work, but an IDE (Integrated Development Enviroment i.e Visual Studio) would really be better.
Weird. Visual studio and such drove me away from programming. Only did I pick it up after I realized it was as easy as a text editor, compiler, and possibly a few other tools for bigger projects (GNU Make)..
-
well then. i guess its personal preference. since visual studio was the first i saw of programming, thats how i think compilers should look. its confordable. whatever floats ur boat i guess ;)
-
Start out with C# or Java.
and... Apocolypse doesn't care about half the excrement you guys are talking about. Stop trying to show us how big your male organ of copulation is and help the poor kid out.
-
Actually for JUST starting out I would recommend a more loose, easy to pick up language that teaches good habits(Like python) something where it's easy to get 2d/3d junk up and running(pyGame, pyOGRE)
good luck
-
Ok I think I'll go with Visiual studio anyone know where to download the express version?
-
Visual Studio 2005: http://msdn2.microsoft.com/en-us/express/aa975050.aspx
2008 Beta 2: http://msdn2.microsoft.com/en-us/express/future/bb421473.aspx
-
I tried to find you a link but Microsoft was leading me through a maze so i just quit.
Just look on Micorsoft's website to get it.
Edit: Somehow y00tz found it.
-
Thanks, guys I really appreciate all the help :)
-
I tried to find you a link but Microsoft was leading me through a maze so i just quit.
Just look on Micorsoft's website to get it.
Edit: Somehow y00tz found it.
http://www.google.com/search?hl=en&q=Visual+Studio+2005+express&btnG=Search