T1 Car Racing Simulation Screenshot Open source 3D car racing simulation

T1 Car Racing Simulation is an open source (GPL) 3D car racing game meant to be executable under both Linux and Windows using the Cygwin emulation layer. If you make it run under some other operating systems, I'd be glad to hear about it. My primary development platform is Linux, but I promise to also test under Windows - at least at release times.

T1 Car Racing Simulation is primarily meant to be fun to play, instead of a full-featured exercise in physics. Expect a solid physics model with a lot of action and some cool graphics. ;-)

License: free
Requirements: SDL
PLIB
libtiff

Sound:Play in X:Play in Console:Multiplayer:Network Play:3D Acceleration:Source Available:
yesyesnononoyesyes
Suggest an update

Comments

Well, I got it comiled but when I try to run it, I get as follows:

Couldn't open joystick 0: There are 0 joysticks available
Joystick has -1 axes, -1 hats, -1 balls, and -1 buttons
img.alpha: 1(file textures/newpoly.tif)
Starting parsing process...

Track name: "Test Track 1"
Version of track description file: "0.1"
img.alpha: 0(file textures/grassl.tif)
X Error of failed request: GLXBadRenderRequest
Major opcode of failed request: 143 (GLX)
Minor opcode of failed request: 1 (X_GLXRender)
Serial number of failed request: 20
Current serial number in output stream: 23

And very, very confused :)
I can understand the Joystick error because I haven't compiled Joystick support (don't have one)

I really get lost when it comes to that GLX error; Can anyone help??
Re: Compiled but..... posted by anonymous on Feb 14 2003 1:28 AM
i have the same damn problem ....... if anyone knows how to solve it please post an answer .......... don't be shy ;)
Re: Compiled but..... posted by anonymous on Feb 14 2003 7:38 AM
Try the pre-compiled, statically linked binary (released a few days ago). That worked for Tru_Playaz.

Cheers, alex.
I tried t1-crs-0.1.2 (from yesterday) without VAMOS(has quite a number of nested prereqs, takes some time to get, compile and install them in order) and at least on my beta system it has a segfault in collision detection, besides press A to lower the gears ;-) and then arrow-up and it goes backwards.. ;-) (I guess I can look into this, gdb seems to work) But cool engine sound and a cool default car, lets hope this project progresses further as it did the last weeks!
Re: Cool, looks good, go further! posted by apozgaj on Feb 9 2003 11:40 AM
Thanks!
Did that core dump upon collision occure without any previous stdout warnings? Does it happen every time you hit the wall, or only sometimes?
With respect to "lower gear, press UP, and you're going backwards" - I most certainly hope it is so! :-) UP arrow means "gas pedal", and if you lower the gear below 0, you'll be in reverse. Reverse gear + gas pedal == going backwards. ;-)

Best regards, alex.
Firstly, this was the most horrendous thing to compile for slackware I have ever seen. I had to patch up configure and the Makefiles like no bodies business. The game play is ok, better then a lot of many open source car sims in a few areas. However two things stuck out: 1) If you hit/bump a wall you come to a full stop and the gear goes to neutral, why? 2) The grass on the sides actually seems to be moving backwards at certain speeds, this is very disconcerting. :)

Other than that, nice job. Shows a lot of promise.
Re: Couple of things... posted by apozgaj on Feb 9 2003 11:46 AM
Thank you!

Which problems did you have with compiling the released version? If you have some time to send me a description of what you had to do in order to make T1 compile, I could try to fix my autoconf stuff.

Collision detection is already working (sort of), but I still haven't implemented a correct reaction to detected collisions. That's why the car just stops when it hits the wall.

Best regards, alex.
Re: Couple of things... posted by ajalics on Feb 9 2003 12:05 PM
Well configure didn't check /usr/local/ lib/include at all. I couldn't figure a way to make it look there. It didn't find libtiff, libsdl, plibs, pthread?, and a few others - so I edited ./configure to think it found the libraries no matter what. :) I also had to add -I/usr/local/include -I/usr/local/include/SDL -L/usr/local/lib to all the makefiles. Also I think that most installations of SDL done by compiling, not by package, have the SDL includes in something like /usr/local/include/SDL. Try using sdl-config --libs --cflags to autodetect the SDL includes/libs. Then the final gcc linking of the binary I did by hand. :)
Re: Couple of things... posted by apozgaj on Feb 9 2003 1:29 PM
I'll look at it, thanks for the tip with sdl-config. BTW, there are options to configure script (--with-sdl-libs and --with-sdl-includes) which would have done it for SDL. Not for libtiff, though...

Cheers, alex.
Hm, compilation with vamos (0.3.0) enabled stops with: t1-crs-0.1.2/src/t1_crs.cc:100: undefined reference to `Vamos_Car::Vamos_Car[in-charge](float, float, float, float, float, float, float, float, float, float, char*)'
Re: compliation with vamos-0.3.0: undefi posted by apozgaj on Feb 9 2003 11:53 AM
Uh, I forgot to mention: you'll have to get & install the CVS version of Vamos, otherwise you won't be able to compile T1. Integration process between T1 and Vamos called for modifications on both sides.

Best regards, alex.
Re: compliation with vamos-0.3.0: undefi posted by anonymous on Feb 9 2003 12:53 PM
Hi Alex! vamos-0.3.0 is equivalent to the current cvs, it was released last wednesday and the only diff to the current head are doc changes in doc/vamos.info.

Maybe this error is triggered by gcc-3.3 being more picky or having a bug, I'll try to check with gcc-3.2

Re: compliation with vamos-0.3.0: undefi posted by apozgaj on Feb 9 2003 1:35 PM
I just gave it a try, it seems Sam has found some time to make a release after all. Unfortunately, it looks like he didn't check-in the necessary changes to vehicles/Vamos_Car.cc yet (in T1).

In the mean-time, you could try renaming libvamos-geometry.so to libvamos-geometry-SAVE.so (or whatever) and re-compiling T1, starting with ./configure. Once T1 is compiled, you can rename libvamos-geometry to what it originaly was.

Best regards, alex.
Although I still havent got it to work, I noticed from the screenshot of that gorgeous Supra model that the tail-lights are the wrong way round (left-right); with too much time on my hands, I compared it to a real Supra parked up the street from me :)

Not exactly a problem but just amusing (to me) ;)
Re: Still suffering GLX problem...but... posted by apozgaj on Feb 9 2003 1:25 PM
:-) Thanks, I'll pass the info to Mario.

Sorry for your other problem, I don't have the faintest idea what it could be. Have you tried searching in Deja?

Best regards, alex.
we want static binaris :)
Re: static posted by apozgaj on Feb 9 2003 1:45 PM
OK, I see I won't be able to wiggle out of that one.. :-)

I never thought there'll be so many compilation problems. I'll provide static binaries in the next few days.

Cheers, alex.
Cheers posted by Tru_Playaz on Feb 9 2003 3:10 PM
Maybe that will help my nasty little GLX affliction :)

BTW, Im using nVidia GLX - could that be an issue?
Re: Cheers posted by apozgaj on Feb 9 2003 3:32 PM
I don't think so - I'm using nVidia drivers myself. Do you get that error only with T1, or also with some other games?

Cheers, alex.
Re: Cheers posted by Tru_Playaz on Feb 9 2003 3:43 PM
Its happened for the first time with T1 and hence I'm a bit stuck....
I get this when I attempt to compile. ../vehicles/libvehicles.a(NormalCar.o): In function `NormalCar::InitializeSound(void)':
/usr/include/plib/sl.h:164: undefined reference to `slDSP::open(char const *, int, int, int)'
/usr/include/plib/sl.h:669: undefined reference to `slScheduler::init(void)'
/usr/include/plib/sl.h:234: undefined reference to `slSample::loadFile(char const *)'
/usr/include/plib/sl.h:235: undefined reference to `slSample::autoMatch(slDSP const *)'
../vehicles/libvehicles.a(NormalCar.o): In function `NormalCar::InitializeSound(void)':
/home/utsav/downloads/t1-crs-0.1.2/vehicles/NormalCar.cc:135: undefined reference to `slSample::adjustVolume(float)'
../vehicles/libvehicles.a(NormalCar.o): In function `NormalCar::InitializeSound(void)':
/usr/include/plib/sl.h:234: undefined reference to `slSample::loadFile(char const *)'
/usr/include/plib/sl.h:235: undefined reference to `slSample::autoMatch(slDSP const *)'
../vehicles/libvehicles.a(NormalCar.o): In function `NormalCar::InitializeSound(void)':
/home/utsav/downloads/t1-crs-0.1.2/vehicles/NormalCar.cc:143: undefined reference to `slScheduler::loopSample(slSample *, int, slPreemptMode, int, void (*)(slSample *, slEvent, int))'
/home/utsav/downloads/t1-crs-0.1.2/vehicles/NormalCar.cc:144: undefined reference to `slScheduler::addSampleEnvelope(slSample *, int, int, slEnvelope *, slEnvelopeType)'
/home/utsav/downloads/t1-crs-0.1.2/vehicles/NormalCar.cc:145: undefined reference to `slScheduler::addSampleEnvelope(slSample *, int, int, slEnvelope *, slEnvelopeType)'
/home/utsav/downloads/t1-crs-0.1.2/vehicles/NormalCar.cc:147: undefined reference to `slScheduler::loopSample(slSample *, int, slPreemptMode, int, void (*)(slSample *, slEvent, int))'
/home/utsav/downloads/t1-crs-0.1.2/vehicles/NormalCar.cc:152: undefined reference to `slScheduler::addSampleEnvelope(slSample *, int, int, slEnvelope *, slEnvelopeType)'
/home/utsav/downloads/t1-crs-0.1.2/vehicles/NormalCar.cc:157: undefined reference to `slScheduler::addSampleEnvelope(slSample *, int, int, slEnvelope *, slEnvelopeType)'
/home/utsav/downloads/t1-crs-0.1.2/vehicles/NormalCar.cc:158: undefined reference to `slScheduler::pauseSample(slSample *, int)'
../vehicles/libvehicles.a(NormalCar.o): In function `NormalCar::InitializeSound(void)':
/usr/include/plib/sl.h:173: undefined reference to `slDSP::close(void)'
../vehicles/libvehicles.a(NormalCar.o): In function `NormalCar::MoveForward(unsigned int, ListContainer *)':
/home/utsav/downloads/t1-crs-0.1.2/vehicles/NormalCar.cc:1337: undefined reference to `slScheduler::resumeSample(slSample *, int)'
/home/utsav/downloads/t1-crs-0.1.2/vehicles/NormalCar.cc:1365: undefined reference to `slScheduler::resumeSample(slSample *, int)'
/home/utsav/downloads/t1-crs-0.1.2/vehicles/NormalCar.cc:1369: undefined reference to `slScheduler::pauseSample(slSample *, int)'
../vehicles/libvehicles.a(NormalCar.o): In function `NormalCar::MoveForward(unsigned int, ListContainer *)':
/usr/include/plib/sl.h:685: undefined reference to `slScheduler::realUpdate(int)'
collect2: ld returned 1 exit status
make[2]: *** [t1_crs] Error 1
make[2]: Leaving directory `/home/utsav/downloads/t1-crs-0.1.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/utsav/downloads/t1-crs-0.1.2'
make: *** [all] Error 2
Re: Compilation error posted by apozgaj on Feb 9 2003 2:16 PM
Could it be that you have upgraded your GCC to a version supporting new ABI? It looks as if plib has been compiled with an old(ish) GCC, while T1 was compiled with a new one.

Best regards, alex.
Re: Compilation error posted by pardasaniman on Feb 9 2003 3:59 PM
I am only using the gcc that came with Mandrake
Re: Compilation error posted by apozgaj on Feb 9 2003 4:02 PM
And have you also installed the PLIB that came with mandrake, or did you get it from some other place? What does "gcc --version" say?
I have tried that game and I think it's already pretty good. I compiled it without vamos (will need to upgrade vamos depending libs) and now I have between 150 and 200fps on my athlon 900 with gf2mx. Sometimes the game stuck shortly but I think I should close xchat, Mozilla, Konqueror blah blah......

I had no joystick buttons. gearshift q + a. I couldn't drive more than 200 (mph or km/h). Steering was very difficult with my analog joystick @ high speeds. But the drifts were nice. Very annoying: Stopping @ almost every border. I had to drive backwards first even if my car was parallel to the border.

Very nice so far. Can't wait for more improvements. 5 stars to boost your development :-)

Hello to all,

due to problems with compiling Vamos support in T1, I have released a new version introducing another flag for "configure" script: "--have-vamos". At the time being, this flag should not be used. The reason for the new version was to allow you to compile T1 even if you already have Vamos installed on your system. I'm working with Sam on resolving the T1+Vamos compilation problem.

Cheers, alex.
As long as everyone is using these comments as a mailing list.... :) I had a game crash going fast, like 150 while running into a wall. I think I may understand the problem, the car slipped out of the track before the collision was detected? Here is the end output...

ERROR: LeftCollisionDetected == RightCollisionDetected == false!
Input values to CheckWallCollision: x1: 399.374, y1: 318.947, x2: 399.643, y2: 317.9, count: 4
Re: As long as.. posted by apozgaj on Feb 9 2003 11:05 PM
Yes, I know about that bug. On some relatively rare occasions, collision is not detected correctly. That will be fixed in the next rekease (I know the reason why it happens, I just have to figure out an ellegant way to handle it)

Cheers, alex.
P.S.: you're right, I guess we're missusing this area as a mailing list (I guess I was caught by surprise by the ammount of feedback :-) ). I suggest we move the discussion to T1 forums on SourceForge.
tried the new static release- whenever i try to run it i get an error:

TIFFOpen: textures/newpoly.tif: Cannot open. Problem loading textures/newpoly.tif!

I looked at newpoly.tif and it's just a white square with a blue border and a question mark in the middle. Is that supposed to be what it is?

Re: newpoly.tif posted by apozgaj on Feb 14 2003 5:14 PM
Could it be that you didn't start T1 from the top-level directory? The proper way to start T1 is to say "src/t1_crs" from the top-level directory.

Cheers, alex.
Re: newpoly.tif posted by anonymous on Aug 1 2003 2:59 AM
When I start the game, I see no textures. The .tif tiles in the texture directory doesn't seem to be regular tif files, because I cannot view them in any picture viewer. Neverthless the game runs, but I cannot really enjoy it without any texture :)
I am sorry for giving just 2 stars, but playability is very low. Physics doesn't exist in that game. You ride on track, then bump in edge and car just _stops_. There are problems with graphics: for example z-buffer fighting in very close (!) area. Speed of game is very strange, like with old DOS games on fast machines. Camera is located in bad place. The only good thing in that game is interesting track construction. That's why it's not 1 star. Racing game is very needed in Free Software world, but *please* make it little better.
Is there somone that can tell me from scratch what to do to get this game up and running.. I would have bin grateful if someone told me ......
Re: I am new inthe Linux world posted by apozgaj on Feb 15 2003 4:09 AM
Send me your e-Mail address, and I'll try to help you.

Cheers, alex.
This game has the "SuperCars" feeling. I really like it. I hope the game won't turn out to be a "simulation" as the name suggests. This will be a great racing game, eventually. I would give it 4 stars if I weren't anonymous ;) BTW are you plannig on having computer cars, arcade-mode racing and multiplayer support?
Re: Cool posted by apozgaj on Feb 15 2003 12:48 PM
Thank you! Don't worry, I'm not planning to make it a real simulation, at least not in the standard mode :-). In future, as soon as we resolve the incompatibilities that arose shortly before I made this announcement, you'll be able to activate "Vamos" model if you want accurate physics. I'm planning on continuing with the arcade mode.

Other cars, network play, and multiple player support are planed, but probably not coming any time soon. I still have a lot to do with the basic functionality.

Cheers, alex.
Hello,

I get this when using the static-bin:

src/t1_crs: relocation error: src/t1_crs: symbol __libc_sigaction, version GLIBC_2.2 not defined in file libc.so.6 with link time reference

What's the problem?

Re: relocation error... posted by apozgaj on Feb 15 2003 12:43 PM
Sorry, you'll still need glibc 2.2.x. Have you tried compiling it from sources? If you wish, I could mail you libc and libm from glibc-2.2.4, not sure that'll suffice, though...

Cheers, alex.
I am running Debian unstable and I get an instant segmentation fault when executing the binary.
i installed this game on mandrake 9.0 and radeon 9000 pro it works fine, but its only one track, please for more
Downloaded binaries... didn't work. Compiled from source, worked. A good attempt has been made at this car game. It's early days yet. Physics need improving. When hitting a wall the car stops as if the game has frozen. Sometime, this will cause a segfault (SDL parachute deployed). I like the arcade-style sideways sliding action.

PLEASE keep developing this.......

Graphics are pretty - handling seems nice (although I'd like an automatic gearbox option if there isn't one already) .

Yes it's not really playable yet but the homepage says its unplayable, but what it does, it does quite nicely , got a good chance to become a 5 star game(instead of alpha) sometime

ps - Wouldn't install at first because for some odd reason my SDL.h is in user/local/include/SDL/SDL.h not hard to fix then it worked fine.

I reckon this should be Happy Penguin GOTM.
Re: GOTM posted by anonymous on Jan 11 2005 6:52 PM
Seconded.
Re: GOTM posted by apozgaj on Jan 11 2005 11:11 PM
Thanks guys - you can cast your votes on the next poll... :-)

Cheers, alex.
Re: GOTM posted by anonymous on Jan 12 2005 12:30 PM
Keen to import TORCS code and tracks? The code's all there.
Re: GOTM posted by apozgaj on Jan 13 2005 3:29 PM
I'm not qute sure what you mean. You can't just "import" the graphics from another game if the engines are too different. I don't know much about TORCS, but I guess the engine has no similiarities to T1's engine whatsoever. Using TORCS graphics would practically mean re-inventing the game.
Re: GOTM posted by anonymous on Jan 14 2005 12:38 PM
AH ok. But it'd be a shame not to glean info, technique and code from TORCS, Trigger and the likes. :-)
Re: GOTM posted by apozgaj on Jan 15 2005 9:51 AM
It would be the shame, if I had anything to learn from it... :))))

Log in or register to rate this game or post a comment.