-
Notifications
You must be signed in to change notification settings - Fork 4
Home
Welcome to the teeworlds-infclassR wiki!
sudo apt-get install libicu-dev libmaxminddb-dev git wget libcurl4-openssl-dev libssl-dev # install required stuff
mkdir InfClassR # create dir "InfClassR"
cd InfClassR
wget https://github.com/matricks/bam/archive/v0.4.0.tar.gz # download bam
tar -xzf bam-0.4.0.tar.gz # extract bam
git clone https://github.com/yavl/teeworlds-infclassR # clone repository
cd bam-0.4.0
./make_unix.sh # compile bam
cp ./bam ../teeworlds-infclassR #copy bam binary into mod folder
cd ../teeworlds-infclassR
./bam server_debug # compile server with bam
cd bin
./server_d # run InfClass server
If geolocation has issues deactivate it: bam server_debug nogeolocation=true
How to set up with MySQL: https://forum.ddnet.tw/viewtopic.php?t=2730
The variables are defined here:
config_variables.h
variable.h
You can type these commands inside the rcon console (F2) or
you can also put them into a file called autoexec.cfg which should be next to your server binary.
You can create new maps with TeeUniverse
TeeUniverse Documentation
You can create a map info file with the same name as the map and put it next to it. (e.g. "infc_skull.mapinfo")
Inside this file you can define 2 variables:
timelimit x
x is the number of minutes a round should take on this map.
minplayers x
x is the minimum number of players this map should be played on, this has an impact on the map rotation.
If there are not enough players the server will skip this map. (But you can still vote and play on it)
With sv_maprotation
you can define what maps will be played in which order, for example:
sv_maprotation "infc_skull infc_warehouse infc_damascus"
With sv_rounds_per_map
you can define how many rounds each map should be played before changing to the next map.
If inf_maprotation_random
is set to 1 than a random map will be chosen after a map finished.
You can change maps by using these commands: skip_map
, sv_map mapname
, change_map mapname
skip_map
will change the map to the next in the rotation.
sv_map infc_skull
will instantly change map to a map called infc_skull.
change_map infc_skull
will show the score of the current round and then change map.
You can create map votes like this:
add_vote "infc_skull" change_map infc_skull
add_vote "skip this map" skip_map
More commands:
inf_min_rounds_map_vote
how many rounds should be played on a map before players can start a map vote.
inf_min_player_percent_map_vote
how many percent of all players need to vote for a map in order to start a map vote.
inf_min_player_number_map_vote
how many players need to vote for a map in order to start a map vote.
If either inf_min_player_percent_map_vote
or inf_min_player_number_map_vote
becomes true, a map vote will start.
By default these features are deactivated.