axblk / teeworlds

A retro multiplayer shooter
http://teeworlds.com
Other
11 stars 2 forks source link

no-weapons maps needed for initial start #6

Closed PathosEthosLogos closed 7 years ago

PathosEthosLogos commented 7 years ago

When a no-weapons FastCap server starts up for the first time, since it doesn't have no-weapons maps under the maps directory, the server cannot be started. For example, I set this in the configs:

sv_map ctf2-no-weapons

Since ctf2-no-weapons doesn't exist, the server refuses to boot.

axblk commented 7 years ago

To make the server download the no-weapons maps you can set the gametype to fastcap-no-weapons and use a map that already exists on your disk. Since the server checks if the current map is in the maplist for the selected gametype, no runs will be sent to the website until you switch to a no-weapons map.

In general when you set up a new server, use some dm or ctf map and set the intended gametype. It will download the needed maps and you can switch to a valid map as soon as the first maps have been downloaded. The server makes sure that only valid runs are submitted to the website. It checks if the gametype, settings and tunings are correct for the current map.

With the _wa_maptypes variable you can filter the maps that you want to download (and show in the votes). For example if you only want to offer long race maps instead of all race maps, set _wa_maptypes to race long. You only have to make sure that _wa_maptypes contains the gametype you set, otherwise _wa_maptypes will be ignored. If you want to offer all maps for a gametype, _wa_maptypes can be left blank.

When a map contains no-weapons in its name and the gametype is fastcap, it will be forced to fastcap-no-weapons.

Examples: