New to C

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

Post Reply
crilen007
Engineer
Engineer
Posts: 32
Joined: 20 Jul 2004 03:43

New to C

Post by crilen007 »

Hi, I have never done any C or C++ programming, but I've always been facinated with learning it, and also OpenTTD.

What exactly do I need to open the source and run it on windows?
After that I can figure out how to modify it on my own.

A link to what I need to do to get it going would also work.

I've only worked with Javascript, PHP, and VBA, and some others.
Nothing that required Visual Studio, so not sure where to start.

I hope to learn C quite fast so I can make some good contributions to this project.

Thanks for help.
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Re: New to C

Post by DaleStan »

crilen007 wrote:What exactly do I need to open the source and run it on windows?
The ability to find and read the FAQs.
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
crilen007
Engineer
Engineer
Posts: 32
Joined: 20 Jul 2004 03:43

Post by crilen007 »

So I tried following the FAQ, got a bunch of errors when trying to do a few things and I guess they are out dated too.

Oh well. Thanks for the help anyways.
crilen007
Engineer
Engineer
Posts: 32
Joined: 20 Jul 2004 03:43

Post by crilen007 »

By the way, if you are trying to chase away people who want to help, you are doing a great job of it.
User avatar
StopRightThere
Chief Executive
Chief Executive
Posts: 761
Joined: 18 Dec 2005 20:10
Location: United Kingdom

Post by StopRightThere »

You can read the source code using notepad or any other text editor. To compile, try following this guide here: http://www.tt-forums.net/viewtopic.php?t=24533
Bye Bye OpenBVE :(
Official TT-Hot young ginger Doctor Who assistant FanClub
Formerly known as AdditionalData
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Post by DaleStan »

crilen007 wrote:So I tried following the FAQ, got a bunch of errors
OK, then. Next you need the ability to copy and paste the error messages, so we have a vague idea of what might be broken.

It might also be useful to read up on how to ask a Smart Question. Read the whole thing, then find the last two instances of the word "compile", and read that section again.

And as a retro-reply to LotP (it's not worth its own post), I'll also point in the direction of the words "ruthless meritocracy" too.
Last edited by DaleStan on 28 Aug 2006 03:23, edited 2 times in total.
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
User avatar
LordOfThePigs
Route Supervisor
Route Supervisor
Posts: 435
Joined: 01 Jul 2004 10:28
Location: Jura/Switzerland

Post by LordOfThePigs »

crilen007 wrote:By the way, if you are trying to chase away people who want to help, you are doing a great job of it.
Don't mind the tone of his replies. He's trying to be helpful in his own, very annoying way.
Sometimes I'm told "Brilliant"...
Sometimes I'm told "Charming"...
And Often I'm told "Shut Up"!
crilen007
Engineer
Engineer
Posts: 32
Joined: 20 Jul 2004 03:43

Post by crilen007 »

Normally I would post a more informative reply Dale, I honestly was not in the mood to hear more of you acting like an ass lol.


When I was trying to do the


http://wiki.openttd.org/index.php/Compi ... g_up_MinGW

Compiling zlib

./mingwPORT.sh


It kept saying no directory but was not telling me what directory.


Let me try again tuesday before replying.
User avatar
Darkvater
Tycoon
Tycoon
Posts: 3053
Joined: 24 Feb 2003 18:45
Location: Hong Kong

Post by Darkvater »

I've given a try to mingw as well. It was really easy. Download cygwin, select development, core, SVN, libzlib, libpng, sdl-develop, I think that was it.

Check out the sorce with svn and run make. You don't need anything from that page.
TrueLight: "Did you bother to read any of the replies, or you just pressed 'Reply' and started typing?"
<@[R-Dk]FoRbiDDeN> "HELP, this litte arrow thing keeps following my mouse, and I can't make it go away."
User avatar
gkirilov
Chief Executive
Chief Executive
Posts: 696
Joined: 03 May 2005 09:32
Location: Othala

Post by gkirilov »

The tutorial given above (the one in the forum) works. I've tried it.
Alto the tutorial : http://wiki.openttd.org/index.php/Cygwin also works (with the disadvantage of missing libpng).
Darkvater, can i make PNG screens using the cygwin .exe?
OTTDCoop NewGRF Pack|Different sets of GRFs for TTDPatch (some of them work in OTTD) - 1|- 2|GRF sets for OTTD|OTTD nightly
Image
I hooked up my accelerator to my brake lights. I hit the gas, people behind me stop, and I'm gone.
Understeer is when you hit the wall with the front of the car. Oversteer is when you hit the wall with the rear of the car. Horsepower is how fast you hit the wall. Torque is how far you take the wall with you. Spoilers and bodykits are how much of the wall you take with you. Rollcages and windownets are how much of a mess you leave on the wall.
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: Ahrefs [Bot] and 9 guests