Russian OpenTTD Community patchpack (1.2.0)

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

User avatar
Oleg
Traffic Manager
Traffic Manager
Posts: 226
Joined: 09 Jul 2004 08:55
Location: Moscow, Russia
Contact:

Re: Russian OpenTTD Community patchpack (1.2.0)

Post by Oleg »

Ammler wrote:Did you try the "inbuilt" bundle creator?
Ammler, thanks for the advice. I've tried make bundle (without _dmg, was just curious), and after the compilation I've got the /bin/sh^M: invalid interpreter error.
TtdRussia.net - The Russian TTD, OpenTTD, and Locomotion Community
User avatar
Toni Babelony
Tycoon
Tycoon
Posts: 1389
Joined: 07 Jul 2006 09:34
Skype: toni_babelony
Location: Sagamihara-shi, Japan
Contact:

Re: Russian OpenTTD Community patchpack (1.2.0)

Post by Toni Babelony »

Oleg wrote:P.S. I tried to experiment with making bundles and universal binaries by adding appropriate instructions as described in the Wiki, but got nothing but errors.
Ah, that's where my problem was! Thanks! Compiling a new version now :) I'll post the .dmg when it's finished. (Shouldn't take more than half an hour)

EDIT: uploading has to wait until later today or tomorrow.
Last edited by Toni Babelony on 17 Jun 2008 09:13, edited 1 time in total.
Retired JapanSet developer and creator of TIAS.
Rubidium
OpenTTD Developer
OpenTTD Developer
Posts: 3815
Joined: 09 Feb 2006 19:15

Re: Russian OpenTTD Community patchpack (1.2.0)

Post by Rubidium »

Oleg wrote:I've got the /bin/sh^M: invalid interpreter error.
Just strip the Windows line endings (the \r) from all the files (dos2unix). A normal checkout on OSX from SVN will do that automatically, even patch will automatically do that. However, the patchpack zip seems to contain the Windows line endings because they did the checkout under Windows.
User avatar
Toni Babelony
Tycoon
Tycoon
Posts: 1389
Joined: 07 Jul 2006 09:34
Skype: toni_babelony
Location: Sagamihara-shi, Japan
Contact:

Re: Russian OpenTTD Community patchpack (1.2.0)

Post by Toni Babelony »

Drat. The game compiled as described, however it won't start and the description of the binary is 'Unix-File' instead of the regular 'Program-File'...

Could you please post a .zip/.rar/.dmg/.whateverpackage of your version of OTTD, Oleg? Since don't know much about compiling apart from the very basics. :oops:
Retired JapanSet developer and creator of TIAS.
User avatar
Oleg
Traffic Manager
Traffic Manager
Posts: 226
Joined: 09 Jul 2004 08:55
Location: Moscow, Russia
Contact:

Re: Russian OpenTTD Community patchpack (1.2.0)

Post by Oleg »

Toni Babelony wrote:Drat. The game compiled as described, however it won't start and the description of the binary is 'Unix-File' instead of the regular 'Program-File'...

Could you please post a .zip/.rar/.dmg/.whateverpackage of your version of OTTD, Oleg? Since don't know much about compiling apart from the very basics. :oops:
If the game has compiled and you got you terminal prompt back than it's ok, and the openttd file is indeed not the same as regular program files in the Applications folder. While I was able to double-click this file and bring the game to life, the correct way of doing that will be running the following terminal command:

Code: Select all

./openttd
The prompt should of course point to the directory where all the game files are situated, you could do that by typing cd to the terminal and then using your mouse to drag the folder icon right into the prompt. You'll get something like cd /Users/yourname/Applications/OpenTTD/ as a result.
You could also copy the contents of the bin/ folder somewhere else to avoid confusion and of course make sure the data folder contains all the necesssary original grf files.

I will of course post a dmg file as soon as I manage to get one. I only wish to add that I'm myself a noob in this area, and only know it all because kind people (and first of all, Smoky555) did find enough patience to lead me step by step through all these terminal commands.
TtdRussia.net - The Russian TTD, OpenTTD, and Locomotion Community
User avatar
Toni Babelony
Tycoon
Tycoon
Posts: 1389
Joined: 07 Jul 2006 09:34
Skype: toni_babelony
Location: Sagamihara-shi, Japan
Contact:

Re: Russian OpenTTD Community patchpack (1.2.0)

Post by Toni Babelony »

Hmm, I still can't open the game. When opening through double-clicking or through Terminal I get this message:

Code: Select all

/Applications/OTTDRus/openttd; exit
pptp-212-201-71-26:~ albohelm$ /Applications/OTTDRus/openttd; exit
/Users/(yourname)/Desktop/OTTD/src/bridge_map.h:85: failed assertion `IsBridgeAbove(t)'
Abort trap
logout
Well, I'll just wait for a MacOS binary/.dmg...

P.s. I'm using OSX Tiger, maybe that could also be the cause of the problem... :?
Retired JapanSet developer and creator of TIAS.
nonick37
Engineer
Engineer
Posts: 26
Joined: 25 Mar 2006 13:38
Contact:

Re: Russian OpenTTD Community patchpack (1.2.0)

Post by nonick37 »

I have had a game running for a while. With pretty much every patch turned on. Everything seemed stable, until i tried to reload a game, which did not work. I get an error message: Reason: Vehicles: failed loading savegame: too many vehicles, and i get the emergency save dialog after it has crashed. Obviously since I have not built any new vehicles after the last working savegame, just lots of tracks, it is not possble that i have reached the vehucles limit. Anyone know what might be the problem? Or which patch is causing this?

http://www.uuaarrgh.com/nonick.sav -> savegame days/months before savegames are useless.

ALso possible solution: vehicles are behing upgraded ..
Last edited by nonick37 on 21 Jun 2008 12:46, edited 2 times in total.
User avatar
Oleg
Traffic Manager
Traffic Manager
Posts: 226
Joined: 09 Jul 2004 08:55
Location: Moscow, Russia
Contact:

Re: Russian OpenTTD Community patchpack (1.2.0)

Post by Oleg »

Well, I have managed to get rid of ^M line ends and even launched make with --enable-universal. All this pain only to get a couple of

Code: Select all

make[1]: *** [unix.o] Error 1
followed by the final

Code: Select all

make: *** [all] Error 2
If anyone has advice on how to get past these, I would be very grateful.
TtdRussia.net - The Russian TTD, OpenTTD, and Locomotion Community
Yexo
Tycoon
Tycoon
Posts: 3663
Joined: 20 Dec 2007 12:49

Re: Russian OpenTTD Community patchpack (1.2.0)

Post by Yexo »

Oleg wrote:Well, I have managed to get rid of ^M line ends and even launched make with --enable-universal. All this pain only to get a couple of

Code: Select all

make[1]: *** [unix.o] Error 1
followed by the final

Code: Select all

make: *** [all] Error 2
If anyone has advice on how to get past these, I would be very grateful.
There are probebly some more error lines before the [unix.o] Error 1 line. Without these we can't be of any help.
User avatar
Oleg
Traffic Manager
Traffic Manager
Posts: 226
Joined: 09 Jul 2004 08:55
Location: Moscow, Russia
Contact:

Re: Russian OpenTTD Community patchpack (1.2.0)

Post by Oleg »

Well, here they are:

Code: Select all

[PowerPC] Compiling unix.cpp
/Applications/OTTDEdge/src_13437/src/unix.cpp: In function ‘const char* convert_tofrom_fs(void*, const char*)’:
/Applications/OTTDEdge/src_13437/src/unix.cpp:160: error: invalid conversion from ‘char**’ to ‘const char**’
/Applications/OTTDEdge/src_13437/src/unix.cpp:160: error:   initializing argument 2 of ‘size_t libiconv(void*, const char**, size_t*, char**, size_t*)’
make[1]: *** [unix.o] Error 1
The same gets repeated in Power PC, Intel, and Power PC G5 sections and in the end results in Error 2 line cited previously.
TtdRussia.net - The Russian TTD, OpenTTD, and Locomotion Community
User avatar
Oleg
Traffic Manager
Traffic Manager
Posts: 226
Joined: 09 Jul 2004 08:55
Location: Moscow, Russia
Contact:

Re: Russian OpenTTD Community patchpack (1.2.0)

Post by Oleg »

UPD
Removing --enable-universal, making plistgen.sh unix-formatted and chmodded to 777 solved the problem. The result is attached below. It works for Intel macs only, but hopefully it works.
Attachments
OTTD-OSX-custom-r13437 - Russian Community patchpack 1.2.0.dmg.zip
r13437 - Russian Community patchpack 1.2.0
(3.86 MiB) Downloaded 99 times
TtdRussia.net - The Russian TTD, OpenTTD, and Locomotion Community
User avatar
tkz
Engineer
Engineer
Posts: 84
Joined: 27 Nov 2007 14:23

Re: Russian OpenTTD Community patchpack (1.2.0)

Post by tkz »

All this needs is the Enhanced NewGRF window and my life will be complete :D

:bow:
User avatar
Two5Kid
Chief Executive
Chief Executive
Posts: 654
Joined: 26 Feb 2007 07:10
Location: Kota Bharu, Malaysia

Re: Russian OpenTTD Community patchpack (1.2.0)

Post by Two5Kid »

I've got an error using the above mentioned .dmg

Dyld Error Message:
Library not loaded: /usr/X11/lib/libpng12.0.dylib
Referenced from: /Applications/OpenTTD/OpenTTD.app/Contents/MacOS/openttd
Reason: Incompatible library version: openttd requires version 25.0.0 or later, but libpng12.0.dylib provides version 1.0.0

What does this mean? Seems like I'm missing some files.
Any dream worth having,
Is a dream worth fighting for!
User avatar
Oleg
Traffic Manager
Traffic Manager
Posts: 226
Joined: 09 Jul 2004 08:55
Location: Moscow, Russia
Contact:

Re: Russian OpenTTD Community patchpack (1.2.0)

Post by Oleg »

Two5Kid wrote:What does this mean? Seems like I'm missing some files.
Two5Kid, thanks for the feedback. Seems like it's actually me who was missing some files at the time this build was made. I'll try to make another version soon.
TtdRussia.net - The Russian TTD, OpenTTD, and Locomotion Community
User avatar
Two5Kid
Chief Executive
Chief Executive
Posts: 654
Joined: 26 Feb 2007 07:10
Location: Kota Bharu, Malaysia

Re: Russian OpenTTD Community patchpack (1.2.0)

Post by Two5Kid »

:bow: It should be me, thanking you oleg. I'll be waiting for the new files. Oh goodies!
Any dream worth having,
Is a dream worth fighting for!
User avatar
Oleg
Traffic Manager
Traffic Manager
Posts: 226
Joined: 09 Jul 2004 08:55
Location: Moscow, Russia
Contact:

Re: Russian OpenTTD Community patchpack (1.2.0)

Post by Oleg »

I'm glad to present to all Mac users a brand new universal binary of Russian Community Pack 1.2.0 r13437.

Two5Kid, your issue has been specificaly addressed by turning off png support in this OpenTTD build.

2All, I would still be very grateful for any feedback, esp. from those on non-Intel Macs. Besides, any information on what should be installed in order to allow for png and ttf support would be much appreciated.

OpenTTD r13437 Russian Community Patchpack 1.2.0 for Mac (8M universal binary)
TtdRussia.net - The Russian TTD, OpenTTD, and Locomotion Community
User avatar
Toni Babelony
Tycoon
Tycoon
Posts: 1389
Joined: 07 Jul 2006 09:34
Skype: toni_babelony
Location: Sagamihara-shi, Japan
Contact:

Re: Russian OpenTTD Community patchpack (1.2.0)

Post by Toni Babelony »

I run OTTD on a non-Intel mac (G4) but I can't seem to open the new binary. The file downloads well, but when I try to open the program the icon jumps once but OTTD doesn't start.

Could you please post your version of the pack, so that I can compile and post a binary for non-Intel processors?
Retired JapanSet developer and creator of TIAS.
User avatar
Two5Kid
Chief Executive
Chief Executive
Posts: 654
Joined: 26 Feb 2007 07:10
Location: Kota Bharu, Malaysia

Re: Russian OpenTTD Community patchpack (1.2.0)

Post by Two5Kid »

Hmm, that would probably give me some headache with the posting of screenshots later but otherwise, the game is playable. Even without PNG support. By the way, as far as the GRFs are concerned, this patch can't load the latest CanSet. Something about "incompatible with OTTD 0.7, r14000 and above".
Any dream worth having,
Is a dream worth fighting for!
User avatar
Oleg
Traffic Manager
Traffic Manager
Posts: 226
Joined: 09 Jul 2004 08:55
Location: Moscow, Russia
Contact:

Re: Russian OpenTTD Community patchpack (1.2.0)

Post by Oleg »

Toni Babelony wrote:Could you please post your version of the pack, so that I can compile and post a binary for non-Intel processors?
What's the OS version, I wonder? It seems the universal binary only compiles for 10.3.9 or later, may be that's the reason? Anyway, the source code is available, only be sure to use ./conf_rules instead of ./config and change plistgen.sh from windows to unix-style line breaks.
Two5Kid wrote:By the way, as far as the GRFs are concerned, this patch can't load the latest CanSet. Something about "incompatible with OTTD 0.7, r14000 and above".
That's a question for CanSet devs. If I find out the reason for this, I'll immediately post a new version.
TtdRussia.net - The Russian TTD, OpenTTD, and Locomotion Community
User avatar
Toni Babelony
Tycoon
Tycoon
Posts: 1389
Joined: 07 Jul 2006 09:34
Skype: toni_babelony
Location: Sagamihara-shi, Japan
Contact:

Re: Russian OpenTTD Community patchpack (1.2.0)

Post by Toni Babelony »

Oleg wrote:
Toni Babelony wrote:Could you please post your version of the pack, so that I can compile and post a binary for non-Intel processors?
What's the OS version, I wonder? It seems the universal binary only compiles for 10.3.9 or later, may be that's the reason? Anyway, the source code is available, only be sure to use ./conf_rules instead of ./config and change plistgen.sh from windows to unix-style line breaks.
I'm using OSX 10.4.11, so that wouldn't be the problem... I'll try to work on it tonight or this weekend. Thanks for the heads-up!
Retired JapanSet developer and creator of TIAS.
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: Baidu [Spider] and 10 guests