New release
Moderator: OpenTTD Developers
New release
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
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.
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...
$ ./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
Oh yes, i've added initial presignal support, so you need signalsw.grf from ttdpatch. I used their graphics. Here it is.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
$
- Attachments
-
- signalsw.grf
- (22.4 KiB) Downloaded 464 times
Okay now i'm going to try it..Saskia wrote:The worshipping shows effect
Good work, Ludde! Runs fine on Linux
So... I extract it all to a dir and type make install?
GoneWacko. Making [url=irc://irc.oftc.net/tycoon]#tycoon[/url] sexy and exciting since 1784.
- Nero Wolfe
- Engineer
- Posts: 20
- Joined: 07 Mar 2004 14:44
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)
What did I do wrong?
I just did
make install
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.
I just did
make install
GoneWacko. Making [url=irc://irc.oftc.net/tycoon]#tycoon[/url] sexy and exciting since 1784.
You should try
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:
I get this:
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? 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...
Code: Select all
make
What about music? The game runs now but without music. When I run it as:
Code: Select all
./ttd -?
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
Also, I know it's a very addicting game, but to make it completely impossible to quit it? 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
Lol I've got TONNES of errors nowMadEgg wrote:You should try
instead of make install... I don't think there's an install script yet.Code: Select all
make
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.
Well I went to windows now... Gotta work on the ZetorpediaSaskia 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.
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.
- Born Acorn
- Tycoon
- Posts: 7595
- Joined: 10 Dec 2002 20:36
- Skype: bornacorn
- Location: Wrexham, Wales
- Contact:
stdafx.h says: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?
Code: Select all
#if defined(WIN32)
# define TTD_LITTLE_ENDIAN
#endif
Code: Select all
#if defined(UNIX)
# define TTD_LITTLE_ENDIAN
#endif
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."
<@[R-Dk]FoRbiDDeN> "HELP, this litte arrow thing keeps following my mouse, and I can't make it go away."
Who is online
Users browsing this forum: Amazon [Bot], Google Adsense [Bot], JustMoreMemes and 28 guests