code question

OpenTTD is a fully open-sourced reimplementation of TTD, written in C++, boasting improved gameplay and many new features.

Moderator: OpenTTD Developers

Post Reply
grayscale
Engineer
Engineer
Posts: 2
Joined: 11 Jan 2009 04:40

code question

Post by grayscale »

hello openTTD community
i have been playing openTTD (stable versions only) for a long time now, but this is my first time on the forums, and i come to ask a favor of a person more knowledgeable than i am. i have recently aquired a second monitor, and have used Nview desktop manager to span displays, making my total screen width 3360 pixels. as some of you may know, there is a restriction in the code of openTTD limiting the screen width to 2048 pixels. this code, in the stable 0.6.3 source, lies in line 131 of the source file openttd.h, and is known as MAX_SCREEN_WIDTH. after some research i found how to edit this and did so. thats where my progress stopped. knowing nothing about code, i have no idea how to compile my edited version into a usable file. i have tried all of the instructions on the openTTD wiki and on other forums and websites. nothing works for me. maybe somebody here would be willing to give me a few pointers? or maybe even do the quick edit and compile it for me? any help would be terrific, as i have been working at this for a day or so and feel pretty stuck.
thanks in advance :))
-Grayscale
User avatar
fanioz
Transport Coordinator
Transport Coordinator
Posts: 320
Joined: 19 Dec 2008 05:03
Location: Indonesia
Contact:

Re: code question

Post by fanioz »

Hi ...
have you read this ?
I always download the latest trunk code and successfully compile it under my Ubuntu Hardy. :D
But I never try to compile the modified version such yours. Would you like to explain the problem ?
Correct me If I am wrong - PM me if my English was bad :D

**[OpenTTD AI]** Image
***[NewGRF] *** Image
grayscale
Engineer
Engineer
Posts: 2
Joined: 11 Jan 2009 04:40

Re: code question

Post by grayscale »

yeah, i've read through most of the stuff at that link, but i think theres just some fundamental coding/developing knowledge that i lack, and therefore it's all lost on me. for instance, in my attempt to compile using cygwin, i followed all the instructions listed, and when i get to the end it says to "type make" but when i do it is an unrecognized command... no matter what i do it wont accept it, even after doing everything else exactly as it describes. i tried using the buildottd utility, but that forces you to download the code from a server, and mine is local so that doesnt work either... :? also tried some c++ compilers not listed there, but they either failed to install or wouldnt work for me...

maybe i should post this in the development section?

-Grayscale
User avatar
fanioz
Transport Coordinator
Transport Coordinator
Posts: 320
Joined: 19 Dec 2008 05:03
Location: Indonesia
Contact:

Re: code question

Post by fanioz »

Correct me If I am wrong - PM me if my English was bad :D

**[OpenTTD AI]** Image
***[NewGRF] *** Image
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Re: code question

Post by DaleStan »

grayscale wrote:i followed all the instructions listed, and when i get to the end it says to "type make" but when i do it is an unrecognized command...
Then you didn't follow all the instructions. Check the list of packages you downloaded again. Twice, if need be.

Or you failed to copy/paste the exact error message.
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
Eddi
Tycoon
Tycoon
Posts: 8289
Joined: 17 Jan 2007 00:14

Re: code question

Post by Eddi »

not that i want to thwart your enthusiasm to get a compiling environment running.

but the screen width limit has been lifted in the nightlies, so you could just try those (might be less favourable for multiplayer)
Conditional Zenith
Chief Executive
Chief Executive
Posts: 697
Joined: 10 Jun 2003 00:19
Location: Australia

Re: code question

Post by Conditional Zenith »

grayscale wrote:i followed all the instructions listed
To elaborate on what DaleStan says, verify that you completed step 7 correctly, (ie. that you did install make).
Post Reply

Return to “General OpenTTD”

Who is online

Users browsing this forum: Semrush [Bot] and 4 guests