Page 1 of 2

OpenTTD 0.4.7 released

Posted: 26 Mar 2006 21:01
by Bjarni
OpenTTD 0.4.7 have been released. This time it fixes some serious bugs in 0.4.6, mainly the NPF bug and the potiential crash in OSX when switching to fullscreen
You can as always get it here:
http://sourceforge.net/project/showfile ... _id=404880

Changelog:
[list]* Feature: [OSX] Add support for triple-binaries (PPC, PPC970, i386) (r4102)
* Fix: [OSX] crash when going to fullscreen (r4100)
* Fix: Allow unused wagons to have their first cache set. Fixes faulty cache-warning message and noticably speeds up depot operations (r4094)
* Fix: [NPF] Trains & busses were unable to find a route when leaving a depot or bus stop. (r4072)[/list]

Windows x64 build

Posted: 26 Mar 2006 21:15
by Michi_cc
And the native Windoows x64 build for all you addicts out there.

Download (about 6.14 MB):
http://www.icosahedron.de/openttd/opent ... -win64.zip


Permission granted to do with it whatever you like; the usual caveats apply.

-- Michael Lutz

Posted: 26 Mar 2006 21:38
by Frostregen
thx :)

Posted: 26 Mar 2006 21:41
by GeordieMike
is it save game compatible?

Posted: 26 Mar 2006 21:47
by Brianetta
GeordieMike wrote:is it save game compatible?
All stable releases are saved game compatible (backwardly - they can load games from older releases).

Posted: 26 Mar 2006 21:59
by Bjarni
Brianetta wrote:
GeordieMike wrote:is it save game compatible?
All stable releases are saved game compatible (backwardly - they can load games from older releases).
if something happens, so they are not, then it will be displayed with big text or something. Hopefully it will never happen

Posted: 26 Mar 2006 23:17
by MisterPresident
When compiling in Linux i recieve the following error:

Code: Select all

leo@zwaardmeester:~/openttd-0.4.7$ make
(...)
saveload.c:956:18: error: zlib.h: No such file or directory
saveload.c:958: error: syntax error before ‘_z’
saveload.c:958: warning: type defaults to ‘int’ in declaration of ‘_z’
saveload.c:958: warning: data definition has no type or storage class
saveload.c: In function ‘InitReadZlib’:
saveload.c:963: warning: implicit declaration of function ‘inflateInit’
saveload.c:963: error: ‘Z_OK’ undeclared (first use in this function)
saveload.c:963: error: (Each undeclared identifier is reported only once
saveload.c:963: error: for each function it appears in.)
saveload.c: In function ‘ReadZlib’:
saveload.c:974: error: request for member ‘next_out’ in something not a structure or union
saveload.c:975: error: request for member ‘avail_out’ in something not a structure or union
saveload.c:979: error: request for member ‘avail_in’ in something not a structure or union
saveload.c:980: error: request for member ‘avail_in’ in something not a structure or union
saveload.c:980: error: request for member ‘next_in’ in something not a structure or union
saveload.c:984: warning: implicit declaration of function ‘inflate’
saveload.c:985: error: ‘Z_STREAM_END’ undeclared (first use in this function)
saveload.c:988: error: ‘Z_OK’ undeclared (first use in this function)
saveload.c:990: error: request for member ‘avail_out’ in something not a structure or union
saveload.c:992: error: request for member ‘avail_out’ in something not a structure or union
saveload.c: In function ‘UninitReadZlib’:
saveload.c:997: warning: implicit declaration of function ‘inflateEnd’
saveload.c: In function ‘InitWriteZlib’:
saveload.c:1004: warning: implicit declaration of function ‘deflateInit’
saveload.c:1004: error: ‘Z_OK’ undeclared (first use in this function)
saveload.c: At top level:
saveload.c:1011: error: syntax error before ‘z’
saveload.c:1012: warning: function declaration isn’t a prototype
saveload.c: In function ‘WriteZlibLoop’:
saveload.c:1012: warning: old-style function definition
saveload.c:1016: error: ‘z’ undeclared (first use in this function)
saveload.c:1016: error: ‘p’ undeclared (first use in this function)
saveload.c:1017: error: ‘len’ undeclared (first use in this function)
saveload.c:1021: warning: implicit declaration of function ‘deflate’
saveload.c:1021: error: ‘mode’ undeclared (first use in this function)
saveload.c:1026: error: ‘Z_STREAM_END’ undeclared (first use in this function)
saveload.c:1028: error: ‘Z_OK’ undeclared (first use in this function)
saveload.c: In function ‘UninitWriteZlib’:
saveload.c:1040: error: ‘Z_FINISH’ undeclared (first use in this function)
saveload.c:1041: warning: implicit declaration of function ‘deflateEnd’
make: *** [saveload.o] Error 1
I am using Kubuntu 2.6.12-10-386 , with newest g++, gcc and make. Perhaps zlib.h is missing in the source tarballs? (i checked both)

regards,

Posted: 26 Mar 2006 23:29
by Bjarni
MisterPresident wrote:When compiling in Linux i recieve the following error:

Code: Select all

leo@zwaardmeester:~/openttd-0.4.7$ make
(...)
saveload.c:956:18: error: zlib.h: No such file or directory
(...)
I am using Kubuntu 2.6.12-10-386 , with newest g++, gcc and make. Perhaps zlib.h is missing in the source tarballs? (i checked both)

regards,
zlib is not missing from the source tarballs, since it's a header you get when you install the library called zlib. Somehow the makefile detected that you got zlib, but gcc were unable to use it. This should not happen.

There are two solutions: either you fix your zlib or you edit Makefile.config and remove WITH_ZLIB, so you compile without zlib support
If you don't have zlib support, you can't compress the savegames as good, can't open savegames saved by other people/scenarios and you can't join multiplayer games.
I recommend that you investigate why it failed to use zlib

Posted: 27 Mar 2006 03:48
by maartena
Awesome! Thanks :)

Posted: 27 Mar 2006 08:08
by DeletedUser21
You guys...





are cool! :D
Thank you. :wink:

Posted: 27 Mar 2006 08:37
by MisterPresident
Bjarni wrote:
MisterPresident wrote:When compiling in Linux i recieve the following error:

Code: Select all

leo@zwaardmeester:~/openttd-0.4.7$ make
(...)
saveload.c:956:18: error: zlib.h: No such file or directory
(...)
I am using Kubuntu 2.6.12-10-386 , with newest g++, gcc and make. Perhaps zlib.h is missing in the source tarballs? (i checked both)

regards,
zlib is not missing from the source tarballs, since it's a header you get when you install the library called zlib. Somehow the makefile detected that you got zlib, but gcc were unable to use it. This should not happen.

There are two solutions: either you fix your zlib or you edit Makefile.config and remove WITH_ZLIB, so you compile without zlib support
If you don't have zlib support, you can't compress the savegames as good, can't open savegames saved by other people/scenarios and you can't join multiplayer games.
I recommend that you investigate why it failed to use zlib
100x thanks Bjarni! I reinstalled the zlib-dev package and now it compiled right through. Apparently there was something wrong with it.. I start playing right away :D

Posted: 27 Mar 2006 08:57
by Bjarni
MisterPresident wrote:Perhaps zlib.h is missing in the source tarballs? (i checked both)
btw there is no need to check both as I created them from the same dir, so they are identically when extracted. It's just a matter of what format you prefer to extract :wink:

Posted: 27 Mar 2006 11:40
by Oxygene
Will there be a debian .deb-file or am I just too impatient? ;)

Posted: 27 Mar 2006 17:30
by tisoft_media
Oxygene wrote:Will there be a debian .deb-file or am I just too impatient? ;)
I've attached a debian-archive. It works fine for me.

Markus

Thanks!

Posted: 28 Mar 2006 01:40
by Ch'marr
Thank you very kindly for the fix... that pathfinder bug was really annoying.

Depot... rail... station... all within 10 squares on a nice straight line. Set train to go to station... train leaves depot and turns the wrong way!!! :)

OpenTTD installer for PC-BSD

Posted: 30 Mar 2006 19:10
by pepecito
Hi,
I have also created an installer of OpenTTD for the PC-BSD operative system. You can find more info in this thead:
http://www.tt-forums.net/viewtopic.php?p=423416

Bye,
pepecito

Posted: 31 Mar 2006 04:40
by doskey
---------------------------
Error!
---------------------------
Tried to load non-existing sprite #666.
Probable cause: Wrong/missing NewGRFs
---------------------------
OK
---------------------------

I am sorry that my english is pool.
Why have this message then I complie 0.4.7 and run it.
I used TTD's data files, and the data files is work fine at 0.4.5...

Posted: 31 Mar 2006 07:35
by Bjarni
doskey wrote:---------------------------
Error!
---------------------------
Tried to load non-existing sprite #666.
Probable cause: Wrong/missing NewGRFs
---------------------------
OK
---------------------------

I am sorry that my english is pool.
Why have this message then I complie 0.4.7 and run it.
I used TTD's data files, and the data files is work fine at 0.4.5...
you should use the 0.4.7 data files came with 0.4.7. Nothing good will come from using 0.4.5 data files with the 0.4.7 binary
I'm not entirely sure that is what happened in this case, but it's a very good place to start

Posted: 31 Mar 2006 10:44
by doskey
Thanks.
I download source files. Unpack it. I complie it with VC 6.0 and DX9SDK. I copy the followg files from the original version of TTD to data directory. And run it with debugger. But It still show this message. :(
Data files from original version:
sample.cat
trg1r.grf
trgcr.grf
trghr.grf
trgir.grf
trgtr.grf

Posted: 31 Mar 2006 11:23
by Hesuses
Just a question. I haven't closely examined any readme files or anything but...

Has the Helicopter auto-replacing been fixed (helicopters stay in hangar after being replaced)?