Topic: [MOD] Race
Current version: 3.3-dev
This is the new Race mod for teeworlds 0.6.1. A lot has been done since the last release and im gonna present the shiny new Race mod.
The Race mod is able to run special map designd for races. It will show and save your time on any race map so you can compare your skills with many othere racers around! All you have to do is join a Race server and be ready to break records.
This mod was original made by Rajh. Meanwhile the mod is developed by Rajh, Redix and me.
Pls report all bugs her or directly on our github repo!
---------------------------------------------------------------------------
The client
Yes there is a client for this mod. This client is not needed but recommend to get the best racing experience.
The Race client is able to record demos and ghost of all your runs. It is even possible to load ghosts from other players which can be shown along with your own ghost ingame. You can activate as many ghost as you want.
The recorded demos are stored in the demo folder and the ghosts in the ghosts folder.
Own Demos and Ghosts will be overwritten each time you do a new record on the map.
Also there are some special gui things like the race time and a special scoreboard.
The client is needed to create race maps with teleporters or speedups. Also it is possible to save server settings within the map. Alos u can set info about who created the map and license and so on.
If the server is set to use the settings from the map all settings set by the race config will be overwritten by the settings from the config
---------------------------------------------------------------------------
Client commands:
cl_auto_race_record ...Save the best demo of each race (default "1")
cl_demo_name ...Save the playername within the demo (default "1")
cl_show_others ...Turn other players off in race (default "1")
cl_render_speedmeter ...Render in game speedmeter (default "1")
cl_speedmeter_accel ...Show acceleration (default "1")
cl_show_checkpoint_diff ...Show checkpoint diff (default "1")
cl_show_records ...Show records (default "1")
cl_show_server_record ...Show server record (default "1")
cl_race_ghost ...Enable ghost (default "1")
cl_race_save_ghost ...Save ghost (default "1")
cl_ghost_nameplates ...Show ghost nameplates (default "1")
cl_ghost_nameplates_always ...Always show ghost nameplats disregarding of distance (default "0")
cl_api_token ...Api token for the webapp (default "")
---------------------------------------------------------------------------
The server
The server provides all the stuff u need to host your own race server like teleporter, speedups or the game timer.
Each player will have its own pickups which will not interfere with other players.
The collision between players is disabled. This is also for the hook.
The server also provides 2 gametypes. One of it is Race (:-O) and the other one is Fastcap. Fastcap is a gametype where you have to capture the flag as fast as possible. It is activated by using "fastcap" as gametype (sv_gametype).
---------------------------------------------------------------------------
Server commands:
sv_reserved_slots ...Number of reserved slots (default "0" | min "0" | max "12")
sv_reserved_slots_pass ...Password for reserved slots (default "")
sv_regen ...Set regeneration per second (default "0" | min "0" | max "50")
sv_strip ...Enable or disable keeping weapon after teleporting (default "0")
sv_infinite_ammo ...Enable or disable infinite ammo (default "0")
sv_no_items ...removes any items from the map if there are any (default "0")
sv_teleport ...Enable or disable teleportation (default "1")
sv_teleport_grenade ...Enable or disable teleport of grenade (default "0")
sv_teleport_kill ...Teleporting one someone kills him (default "0")
sv_teleport_vel_reset ...Reset velocity after teleport (default "0")
sv_delete_grenades_after_death ...Delete grenades after the player dies (default "1")
sv_rocket_jump_damage ...Enable or disable rocket jump damage (default "1")
sv_pickup_respawn ...Time before a pickup respawn (default "-1" (after death) | min "-1" | max "120")
sv_score_ip ...Check score for ip, too (default "1")
sv_checkpoint_save ...Save checkpoint times to score file (default "1")
sv_score_folder ...Folder to save score files to (default "records")
sv_show_times ...Show the times of other players (default "1")
sv_show_others ...Show other players (default "1")
sv_load_map_defaults ...Set the settings on map change/reload which are stored in the map (default "1")
Server SQL commands (only for SQL version):
sv_use_sql ...Enables SQL DB instead of record file (default "0")
sv_sql_user ...SQL User (default "nameless")
sv_sql_pw ...SQL Password (default "tee")
sv_sql_ip ...SQL Database IP (default "127.0.0.1")
sv_sql_port ...SQL Database port (default "3306")
sv_sql_database ...SQL Database name (default "teeworlds")
sv_sql_prefix ...SQL Database table prefix (default "record")
Admin commands:
teleport ...teleports one player to the other (usage: teleport <id1> <id2>)
teleport_to ...teleports one tee to any position (usage: teleport_to <id> <x-coordiante> <y-coordiante>)
get_pos ...finds out the position of a tee (usage: get_pos <id>)
---------------------------------------------------------------------------
chat commands:
/info ...infos about the mod
/cmdlist ...shows a list of all commands
/rank ...shows the rank as server message, everyone can see it
/rank <name> ...shows the rank of a specific player (not nessesary to enter full name)
/top5 x ...shows the top 5 as server message, only u can see it, x stands for a number from which place the top 5 shall begin
---------------------------------------------------------------------------
example config for default teeraces: race01.cfg
example config for races with teleports: race02.cfg
---------------------------------------------------------------------------
So and here the most important stuff
Server
linux binary: race_srv_0.6-end_linux_i686.tar.gz
linux binary 64 Bit: race_srv_0.6-end_linux_x86_64.tar.gz
Windows binary: race_srv_0.6-end_win_i686.rar
Mac binary: teeworlds_srv_race_mac.zip (old version 3.2)
Client
linux binary: teeworlds_race
linux binary 64 Bit: teeworlds_race_x86_64
Windows binary: teeworlds_race.exe
Mac binary: teeworlds_race_mac.zip
Source
Source: Source last 0.6 version
---------------------------------------------------------------------------
So and for all you guys who wnat to make their own maps... here the entities.png: entities.png (this needs to be redone but works for now)
Also you will need this image which have to be in the same directory as the entities.png to map speedup tiles: speed_arrow.png
The race client uses an additional image ingame which have to be directly in the data folder: race_flag.png
---------------------------------------------------------------------------
Changelog:
2.1:
25 teleport or checkpoint tiles
vote kick message
checkpoints and checkpoint save
ip score
no "nameless tee" in record file
new reserved slots
2.1.1
added client for auto demo recording
2.1.2
time save fixes for race client
code cleanup for race cleint
2.1.3
added client hprace support
2.2
added /rank <name>
added /cmdlist
changed .info and .mods to /info and /mods
removed sv_rank_site
rewrote score system (no new files but safer)
added thread for score saving--->no lags while new records even with really big record files
no wrong commands any more
bug fixes
code cleanup
2.3
fixed strange saving bug (was only in linux)
moved score from gamemods to game since its no gamemod
3.0
added ghost recording and playing
devided items for each player
new teleport system
new speedup system
fixed moving through teleports when there fast
added fastcap gametype
many other minor changes
3.1
fixed some warnings
fixed fastcap
3.2-dev
forgot to change version properly
added ability to save server settings within the map
fixed weird bug with reserved slots
update to 0.6.1
3.3-dev
fixed crash
... I may have forgotton some things... so let me know in that case
Further information:
If a map was created with the race client of version 3.2-dev or newer or any other client based on that client the maps will not be playable on older server versions (smaller than 3.2)
Thanks to laxa for compiling the last 0.6 version. I was too lazy for this.
Everyone should update. It fixes a top5 crash bug which was actually fixed in october 2011 already xD