New release

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

Moderator: OpenTTD Developers

User avatar
ludde
OpenTTD Developer
OpenTTD Developer
Posts: 35
Joined: 07 Mar 2004 09:28

New release

Post by ludde »

New release with support for loading SV1 files and it also works on unix.
I didn't bother adding the GPL stuff, but the code is GPL.

-DWITH_SDL was missing from the makefile, I added that.

/Ludde
Attachments
openttd.zip
(765.4 KiB) Downloaded 552 times
Last edited by ludde on 08 Mar 2004 13:34, edited 1 time in total.
MadEgg
Engineer
Engineer
Posts: 72
Joined: 08 Mar 2004 12:51
Location: Netherlands
Contact:

Post by MadEgg »

On Linux I get this message:

$ ./ttd
Loading sound effects...
Loading sprite set 0.
Error: Cannot open file 'signalsw.grf'
ttd: ttd.c:74: error: Assertion `0' failed.
Aborted
$

I copied all grf files and sample.cat from all three versions of TT(DX) I have, Transport Tycoon original, Transport Tycoon Deluxe for DOS and Transport Tycoon Deluxe for Windows but I keep getting this message. Quite obviously because there isn't a signalsw.grf with any of those versions...
Protect the Banana
User avatar
ludde
OpenTTD Developer
OpenTTD Developer
Posts: 35
Joined: 07 Mar 2004 09:28

Post by ludde »

MadEgg wrote:On Linux I get this message:
$ ./ttd
Loading sound effects...
Loading sprite set 0.
Error: Cannot open file 'signalsw.grf'
ttd: ttd.c:74: error: Assertion `0' failed.
Aborted
$
Oh yes, i've added initial presignal support, so you need signalsw.grf from ttdpatch. I used their graphics. Here it is.
Attachments
signalsw.grf
(22.4 KiB) Downloaded 464 times
User avatar
Killer 11
Tycoon
Tycoon
Posts: 2463
Joined: 06 Jan 2004 18:38
Location: Kaunas, Lithuania
Contact:

Post by Killer 11 »

There's a bug with presignal graphics.
I builded a signal for traffic in -> direction.
The graphics were good but when i converted it to a presignal look whats happened.

PS trains hanndle's it like normal but only graphics are wrong.
Attachments
A glich
A glich
glitch.PNG (5.96 KiB) Viewed 12490 times
User avatar
ludde
OpenTTD Developer
OpenTTD Developer
Posts: 35
Joined: 07 Mar 2004 09:28

Post by ludde »

Presignals don't work yet, the only thing you can do is to place them :)
They don't affect the behaviour of trains. It is not a "supported" feature at this stage.
MadEgg
Engineer
Engineer
Posts: 72
Joined: 08 Mar 2004 12:51
Location: Netherlands
Contact:

Post by MadEgg »

That helped a bit...

$ ./ttd
Loading sound effects...
Loading sprite set 0.
Loading drivers...
LoadCustomEngineNames: not done

And it just hangs there(while eating 90% CPU-power).
Ah, well, I'll toy with it later, got to go now anyway.
Protect the Banana
User avatar
ludde
OpenTTD Developer
OpenTTD Developer
Posts: 35
Joined: 07 Mar 2004 09:28

Post by ludde »

MadEgg wrote: And it just hangs there(while eating 90% CPU-power).
Ah, well, I'll toy with it later, got to go now anyway.
You need -DWITH_SDL in the makefile, I forgot about that. I made a new zipfile with that change.
User avatar
Saskia
Director
Director
Posts: 523
Joined: 22 Feb 2004 14:23
Location: Cologne, Germany
Contact:

Post by Saskia »

The worshipping shows effect :bow: :bow: :bow:
Good work, Ludde! Runs fine on Linux :D
User avatar
GoneWacko
Tycoon
Tycoon
Posts: 8680
Joined: 10 Jul 2002 15:08
Location: Enschede, The Netherlands
Contact:

Post by GoneWacko »

Saskia wrote:The worshipping shows effect :bow: :bow: :bow:
Good work, Ludde! Runs fine on Linux :D
Okay now i'm going to try it.. :roll:

So... I extract it all to a dir and type make install? :lol:
GoneWacko. Making [url=irc://irc.oftc.net/tycoon]#tycoon[/url] sexy and exciting since 1784.
User avatar
Nero Wolfe
Engineer
Engineer
Posts: 20
Joined: 07 Mar 2004 14:44

Post by Nero Wolfe »

A little note to the Gentoo users. Edit the Makefile and replace sdl11-config with sdl-config. Worked for me.
User avatar
GoneWacko
Tycoon
Tycoon
Posts: 8680
Joined: 10 Jul 2002 15:08
Location: Enschede, The Netherlands
Contact:

Post by GoneWacko »

I'm on SuSE 9.0 and this is what showed up (I had to update my GCC compiler, too... I guess it was a bit old or something)

Code: Select all

gonewacko@linux:~/openttd> make install
Makefile:125: minilzo.d: No such file or directory
set -e; \
gcc -MM -g -Wall -Wno-multichar `sdl11-config --cflags` -DUNIX -DWITH_SDL minilzo.c \
| sed 's#\(minilzo\)\.o[ :]*#\1.o minilzo.d : #g' > minilzo.d; \
[ -s minilzo.d ] || rm -f minilzo.d
/bin/sh: line 1: sdl11-config: command not found
In file included from minilzo.c:51:
minilzo.h:51:21: lzoconf.h: No such file or directory
minilzo.h:54:4: #error "version mismatch in header files"
make: *** No rule to make target `install'.  Stop.
What did I do wrong? :roll:
I just did

make install
GoneWacko. Making [url=irc://irc.oftc.net/tycoon]#tycoon[/url] sexy and exciting since 1784.
MadEgg
Engineer
Engineer
Posts: 72
Joined: 08 Mar 2004 12:51
Location: Netherlands
Contact:

Post by MadEgg »

You should try

Code: Select all

make
instead of make install... I don't think there's an install script yet.

What about music? The game runs now but without music. When I run it as:

Code: Select all

./ttd -?
I get this:

Code: Select all

Command line options:
  -v drv = Set video driver (see below)
  -s drv = Set sound driver (see below)
  -m drv = Set music driver (see below)
  -8     = Use 800x600 resolution
  -1     = Use 1024x768 resolution
  -h     = Display this help text
  -d date= Set starting date
  -l lng = Select Language
  -e     = Start Editor
List of video drivers:
      null: Null Video Driver
       sdl: SDL Video Driver
List of sound drivers:
      null: Null Sound Driver
       sdl: SDL Sound Driver
List of music drivers:
      null: Null Music Driver
No music driver? How come? SDL can handle that, can't it?

Also, I know it's a very addicting game, but to make it completely impossible to quit it? :p What I mean is that when I select 'Quit' I get a window asking me if I want to return to windows. In that window, I can only click the 'No' button, the 'Yes' button doesn't react...
Protect the Banana
User avatar
GoneWacko
Tycoon
Tycoon
Posts: 8680
Joined: 10 Jul 2002 15:08
Location: Enschede, The Netherlands
Contact:

Post by GoneWacko »

MadEgg wrote:You should try

Code: Select all

make
instead of make install... I don't think there's an install script yet.
Lol I've got TONNES of errors now :(
About SDL..

Should I do that thing that was recommended for gentoo users too? :)
Attachments
openttd-error.jpg
(350.46 KiB) Downloaded 331 times
GoneWacko. Making [url=irc://irc.oftc.net/tycoon]#tycoon[/url] sexy and exciting since 1784.
User avatar
Saskia
Director
Director
Posts: 523
Joined: 22 Feb 2004 14:23
Location: Cologne, Germany
Contact:

Post by Saskia »

Hm, first you need lzoconf.h from the old release.

Then you should remove the "11" from all "sdl11-config" in the makefile. All SDL errors you get are because of this. Maybe, you need to install SDL and it's development headers too.
User avatar
GoneWacko
Tycoon
Tycoon
Posts: 8680
Joined: 10 Jul 2002 15:08
Location: Enschede, The Netherlands
Contact:

Post by GoneWacko »

Saskia wrote:Hm, first you need lzoconf.h from the old release.

Then you should remove the "11" from all "sdl11-config" in the makefile. All SDL errors you get are because of this. Maybe, you need to install SDL and it's development headers too.
Well I went to windows now... Gotta work on the Zetorpedia :)

Anyways, thanks for the help.

I already updated all the SDL I could find in YaST.
I'll try the removal of 11 later...

Maybe I won't do it until somewhere next week. I am going to format my PC this weekend to get rid of all the nooby 'I-have-never-touched-a-PC-before' junk. This is a pretty new PC.
After that, I'll be installing Debian Sarge. :)
GoneWacko. Making [url=irc://irc.oftc.net/tycoon]#tycoon[/url] sexy and exciting since 1784.
MadEgg
Engineer
Engineer
Posts: 72
Joined: 08 Mar 2004 12:51
Location: Netherlands
Contact:

Post by MadEgg »

I also notice support for different language files now! Great :) Now get to translating :)
Protect the Banana
User avatar
Born Acorn
Tycoon
Tycoon
Posts: 7595
Joined: 10 Dec 2002 20:36
Skype: bornacorn
Location: Wrexham, Wales
Contact:

Post by Born Acorn »

very nice, presignals should be implemented in the near future?
Image
Bjarni
Tycoon
Tycoon
Posts: 2088
Joined: 08 Mar 2004 13:10

Post by Bjarni »

I get


stdafx.h:70: #error No endianness defined, use either TTD_LITTLE_ENDIAN or TTD_BIG_ENDIAN


How do I fix that?
User avatar
Darkvater
Tycoon
Tycoon
Posts: 3053
Joined: 24 Feb 2003 18:45
Location: Hong Kong

Post by Darkvater »

Bjarni wrote:I get


stdafx.h:70: #error No endianness defined, use either TTD_LITTLE_ENDIAN or TTD_BIG_ENDIAN


How do I fix that?
stdafx.h says:

Code: Select all

#if defined(WIN32)
# define TTD_LITTLE_ENDIAN
#endif
So you must either compile this in windows, or add something like

Code: Select all

#if defined(UNIX)
# define TTD_LITTLE_ENDIAN
#endif
LITTLE or BIG Endian depends on which OS you are using. I think linux is little endian too, but solaris sparc is big endian.

I myself have problems with sdl though. I get compile error:
c:\openttd-0.1\sdl.c(6): fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory

Obviously I don't have SDL.h. But should I have it? Or where to get the SDL stuff from? Using WinXP
TrueLight: "Did you bother to read any of the replies, or you just pressed 'Reply' and started typing?"
<@[R-Dk]FoRbiDDeN> "HELP, this litte arrow thing keeps following my mouse, and I can't make it go away."
TrueSatan
Transport Coordinator
Transport Coordinator
Posts: 291
Joined: 16 Jul 2003 18:33

Post by TrueSatan »

Hi Darkvater.
You can get SDL here http://www.libsdl.org
greets
Post Reply

Return to “General OpenTTD”

Who is online

Users browsing this forum: Amazon [Bot], Google Adsense [Bot], JustMoreMemes and 28 guests