1420
|
1 |
#summary How to setup the official racer room
|
|
2 |
|
|
3 |
= Racer Room Setup =
|
|
4 |
|
|
5 |
== Overview ==
|
|
6 |
Some time ago unc0rr added support for "fixed" server rooms in order to have a permanent room for hosting race maps. A little manual setup is required, and at present must be recreated on every new release and server restart.
|
|
7 |
|
|
8 |
== Removing the Room ==
|
|
9 |
|
|
10 |
In order to add a room for a new release, the old room must be removed first. Join the game using the old release, join the Official Racer Room then run:
|
1421
|
11 |
{{{
|
1420
|
12 |
/unfix
|
|
13 |
/delegate YourNick
|
1421
|
14 |
}}}
|
1420
|
15 |
|
|
16 |
Then exit. The room will be removed.
|
|
17 |
|
|
18 |
== Updating the room config for a new release ==
|
|
19 |
|
|
20 |
The racer room configuration is currently here: [https://hg.hedgewars.org/hedgewars/raw-file/tip/misc/racer.room]
|
|
21 |
It is stored relative to the game server.
|
|
22 |
According to unc0rr, any errors in syntax will kill the server, so be careful!
|
|
23 |
To update for a new release you usually just need to add new characters to the AMMO for any newly added weapon entries.
|
1421
|
24 |
{{{:s/\([0-9]\{58\}\)/\10/g}}}
|
1420
|
25 |
will do this in vim, where 58 is the number of weapons in the current racer room and the 0 is for the addition.
|
|
26 |
New maps can be added too, using existing entries as a reference.
|
|
27 |
|
|
28 |
== Setting up the room ==
|
|
29 |
|
|
30 |
After having removed the old room, create a new room named "Official Racer Room". Restrict join to registered players only (unregistered don't get recorded in the stats) then run:
|
1421
|
31 |
{{{
|
1420
|
32 |
/loadroom racer.room
|
|
33 |
/fix
|
|
34 |
/callvote map #01
|
1421
|
35 |
}}}
|
1420
|
36 |
|
|
37 |
And leave. The callvote will cause errors as long as you are still the room admin, but they don't matter. You can quit/rejoin before that step if you wish.
|
1507
|
38 |
|
|
39 |
== Running checker ==
|
1509
|
40 |
Make sure you have hedgewars working, your login/password pair (admin rights on the server required!) is stored in frontend's config.
|
1507
|
41 |
|
|
42 |
To build checker:
|
|
43 |
{{{
|
|
44 |
$ cabal build checker
|
|
45 |
}}}
|
|
46 |
|
|
47 |
Put checker.ini into ~/.hedgewars with such content:
|
|
48 |
{{{
|
|
49 |
[engine]
|
|
50 |
exe=/usr/home/hedgewars/0.9.24/bin/hwengine
|
|
51 |
prefix=/usr/home/hedgewars/0.9.24/share/hedgewars/Data
|
|
52 |
}}}
|
|
53 |
|
|
54 |
When updating between versions, update version in checker's source, run this on the server's database to have new stats appear on the records page:
|
|
55 |
{{{
|
|
56 |
INSERT INTO gameversions (protocol, version) VALUES (55, '0.9.24'), (56, '0.9.25-dev');
|
|
57 |
}}}
|
1508
|
58 |
|
|
59 |
If you see too many "Check failed" messages in your checker's log, check your setup. If you fixed a problem with engine, you might want to recheck previously failed replays by moving them from "failed" to "replays" folder on the game server. You may do it on live system, that's np.
|
|
60 |
|
|
61 |
It is also not a problem to stop checker at any point. If you have engine hanging for too long (shouldn't happen since .24) and game0.log suggests that there's nothing going on in the game being replayed, just kill engine process to count this attempt as failed.
|
|
62 |
|
|
63 |
It is fine to have multiple instances of checker running, even on the same host and on the same account, if you like. This helps when you have lots of replays to check and some spare cpu cores. |