Plugin to support multiple servers for shavit-timer.
- Shavit's Timer (https://github.com/shavitush/bhoptimer)
- An updated map list (We recommend you use this plugin: https://forums.alliedmods.net/showthread.php?t=56376?t=56376)
It connects to the shavit database, and stores name of the current map in it. If map is currently played on another server connected to the same database it forces a mapchange. It prevents possible bugs with replays and player records.
If you want to run multiple servers using same database you should :
- Place
shavit-uniquemap.smx
in all connected servers - Make all servers using same shared folder for storing replay data.
- If servers are running within same machine you can achive this by:
-
Creating joint folder and specifing path to it in your
configs/shavit-replay.cfg
For example for folder structure like this:/home/steam └───replaydata └───server1 │ └───csgo └───server2 └───csgo
You would like to put
"replayfolder" "{SM}/../../../../replaydata"
on both of your servers -
Creating soft link to
replaybot
folder on main server in according paths on other servers.- On Linux Servers by using
ln -s
command. - On Windows Servers by using
mklink /D
command or even better by usingmklink /J
which creates directory junction.
For example for folder structure like above on Linux you would run :
ln -s /home/steam/server1/csgo/addons/sourcemod/data/replaybot /home/steam/server2/csgo/addons/sourcemod/data/replaybot
- On Linux Servers by using
-
- If servers are running on different machines, you can share the directory through the use of network shares.
- If servers are running within same machine you can achive this by: