version 0.7
[zeRace] / README
1 zeRace 0.7
2 site: http://royale.zerezo.com/zerace/
3 mail: royale@zerezo.com
4
5 install:
6 In order to compile the game, you will need SDL, SDL_net, SDL_mixer, SDL_image, SDL_gfx and the related developpement headers.
7 Then, just type "make" to build the game.
8 The Makefile as some parameters. For example, in order to cross-compile Windows binaries using MinGW you can type :
9 make CC=i586-mingw32msvc-gcc SDLCONFIG=/path/to/sdl-config WINDRES=i586-mingw32msvc-windres ICON=icon.o EXT=.exe
10
11 bots:
12 To play a game against bots, you will first need to launch a local server :
13 ./server "My private server" 5 1 private col
14 Then launch as many bots as you want :
15 ./bot_anticip localhost 3600 0
16 ./bot_anticip localhost 3600 8
17 ./bot_anticip localhost 3600 16
18 Then you can join your own server in zeRace in the "network game" section.
19 If you are under Windows, replace by "server.exe" and "bot_anticip.exe" in MS-DOS commands.
20 You can also use the "local-server-with-bots.*" scripts.
21
22 windows:
23 Take a look at the files stdout.txt and stderr.txt, they can give useful informations.
24 You need to use the task manager if you want to stop the server.
25
26 syntax:
27 ./server 'server_name' nb_laps network_speed (public|private) (col|nocol)
28   server_name : the name of the server
29   nb_laps : the number of laps to complete for each race
30   network_speed : frequency of network messages (1 for fast network, 10 for slow network...)
31   private : this server will not be listed in the 'internet games'
32   col : the server will compute collisions between cars
33 ./bot_anticip host port random
34   host   : host or ip of the server to connect to
35   port   : port number of the server to connect to
36   random : frequency of random moves (0 = no random moves, 1 = only random, 1000 = 1/1000 random moves)