Page 1 of 1

code question

Posted: 11 Jan 2009 05:00
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

Re: code question

Posted: 11 Jan 2009 05:40
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 ?

Re: code question

Posted: 11 Jan 2009 06:01
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

Re: code question

Posted: 11 Jan 2009 06:22
by fanioz

Re: code question

Posted: 11 Jan 2009 08:49
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.

Re: code question

Posted: 11 Jan 2009 10:30
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)

Re: code question

Posted: 12 Jan 2009 04:09
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).