Page 2 of 4
Re: Russian OpenTTD Community patchpack (1.2.0)
Posted: 17 Jun 2008 08:42
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.
Re: Russian OpenTTD Community patchpack (1.2.0)
Posted: 17 Jun 2008 08:44
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.
Re: Russian OpenTTD Community patchpack (1.2.0)
Posted: 17 Jun 2008 08:49
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.
Re: Russian OpenTTD Community patchpack (1.2.0)
Posted: 17 Jun 2008 09:47
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.

Re: Russian OpenTTD Community patchpack (1.2.0)
Posted: 17 Jun 2008 09:56
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.

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:
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.
Re: Russian OpenTTD Community patchpack (1.2.0)
Posted: 17 Jun 2008 10:35
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...

Re: Russian OpenTTD Community patchpack (1.2.0)
Posted: 17 Jun 2008 14:56
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 ..
Re: Russian OpenTTD Community patchpack (1.2.0)
Posted: 17 Jun 2008 17:10
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
followed by the final
If anyone has advice on how to get past these, I would be very grateful.
Re: Russian OpenTTD Community patchpack (1.2.0)
Posted: 17 Jun 2008 17:49
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
followed by the final
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.
Re: Russian OpenTTD Community patchpack (1.2.0)
Posted: 17 Jun 2008 18:57
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.
Re: Russian OpenTTD Community patchpack (1.2.0)
Posted: 17 Jun 2008 19:17
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.
Re: Russian OpenTTD Community patchpack (1.2.0)
Posted: 18 Jun 2008 18:07
by tkz
All this needs is the Enhanced NewGRF window and my life will be complete

Re: Russian OpenTTD Community patchpack (1.2.0)
Posted: 19 Jun 2008 11:22
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.
Re: Russian OpenTTD Community patchpack (1.2.0)
Posted: 19 Jun 2008 12:23
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.
Re: Russian OpenTTD Community patchpack (1.2.0)
Posted: 19 Jun 2008 12:32
by Two5Kid

It should be me, thanking you oleg. I'll be waiting for the new files. Oh goodies!
Re: Russian OpenTTD Community patchpack (1.2.0)
Posted: 19 Jun 2008 18:14
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)
Re: Russian OpenTTD Community patchpack (1.2.0)
Posted: 19 Jun 2008 19:21
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?
Re: Russian OpenTTD Community patchpack (1.2.0)
Posted: 20 Jun 2008 03:16
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".
Re: Russian OpenTTD Community patchpack (1.2.0)
Posted: 20 Jun 2008 10:13
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.
Re: Russian OpenTTD Community patchpack (1.2.0)
Posted: 20 Jun 2008 10:24
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!