author | Wuzzy |
Fri, 27 Nov 2020 13:45:03 +0100 | |
changeset 2200 | b285ffef13e0 |
parent 2082 | bb914d6298f2 |
permissions | -rw-r--r-- |
2082 | 1 |
#summary How to setup the Official Racer Challenge room |
1420 | 2 |
|
2082 | 3 |
= Official Racer Challenge Room Setup = |
1420 | 4 |
|
5 |
== Overview == |
|
2078 | 6 |
|
2082 | 7 |
The server has support for "fixed" server rooms in order to have a permanent room for e.g. hosting Racer/TechRacer maps. Fixed rooms can exist even when nobody is inside. |
8 |
||
9 |
On the official server, we use this for the Official Racer Challenge. |
|
10 |
||
11 |
A little manual setup is required, and at present must be recreated on every new release and server restart. |
|
1420 | 12 |
|
13 |
== Removing the Room == |
|
14 |
||
2082 | 15 |
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 Challenge room, then run: |
1421 | 16 |
{{{ |
1420 | 17 |
/unfix |
18 |
/delegate YourNick |
|
1421 | 19 |
}}} |
1420 | 20 |
|
2078 | 21 |
Then exit. The room will be removed. |
1420 | 22 |
|
23 |
== Updating the room config for a new release == |
|
24 |
||
1742 | 25 |
The racer room configuration is currently here: [https://hg.hedgewars.org/hedgewars/raw-file/tip/misc/racer.yaml] |
1420 | 26 |
It is stored relative to the game server. |
27 |
According to unc0rr, any errors in syntax will kill the server, so be careful! |
|
2079 | 28 |
To update for a new release you usually just need to update `AMMO` for any newly added weapon entries. |
1420 | 29 |
New maps can be added too, using existing entries as a reference. |
30 |
||
31 |
== Setting up the room == |
|
32 |
||
2082 | 33 |
After having removed the old room, create a new room named "Official Racer Challenge". Restrict join to registered players only (unregistered players don't get recorded in the stats) then run: |
1421 | 34 |
{{{ |
1743 | 35 |
/loadroom racer.yaml |
1420 | 36 |
/fix |
37 |
/callvote map #01 |
|
1421 | 38 |
}}} |
1420 | 39 |
|
2078 | 40 |
And leave. The `/callvote` will cause error messages 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 | 41 |
|
42 |
== Running checker == |
|
2078 | 43 |
Make sure you have Hedgewars working, your login/password pair (admin rights on the server required!) is stored in frontend's config. |
1507 | 44 |
|
45 |
To build checker: |
|
46 |
{{{ |
|
47 |
$ cabal build checker |
|
48 |
}}} |
|
49 |
||
2078 | 50 |
Put `checker.ini` into `~/.hedgewars` with such content: |
1507 | 51 |
{{{ |
52 |
[engine] |
|
2077
514babfbad9e
Remove outdated legacy hints as clutter
Wuzzy <almikes@aol.com>
parents:
2051
diff
changeset
|
53 |
exe=/usr/home/hedgewars/<VERSION>/bin/hwengine |
514babfbad9e
Remove outdated legacy hints as clutter
Wuzzy <almikes@aol.com>
parents:
2051
diff
changeset
|
54 |
prefix=/usr/home/hedgewars/<VERSION>/share/hedgewars/Data |
1507 | 55 |
}}} |
56 |
||
1744 | 57 |
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 (see also [ProtocolNumbers]): |
1507 | 58 |
{{{ |
2077
514babfbad9e
Remove outdated legacy hints as clutter
Wuzzy <almikes@aol.com>
parents:
2051
diff
changeset
|
59 |
INSERT INTO gameversions (protocol, version) VALUES (59, '1.0.0'), (60, '1.0.1-dev'); |
1507 | 60 |
}}} |
1508 | 61 |
|
2078 | 62 |
(Replace the version numbers (i.e. β1.0.0β and β1.0.1-devβ) and protocol numbers (i.e. 59 and 60) with the correct ones.) |
2077
514babfbad9e
Remove outdated legacy hints as clutter
Wuzzy <almikes@aol.com>
parents:
2051
diff
changeset
|
63 |
|
2078 | 64 |
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 a live system, that's not a problem. |
1508 | 65 |
|
2078 | 66 |
It is also not a problem to stop checker at any point. If you have engine hanging for too long (shouldn't happen since 0.9.24) and `game0.log` suggests that there's nothing going on in the game being replayed, just kill the engine process to count this attempt as failed. |
1508 | 67 |
|
2077
514babfbad9e
Remove outdated legacy hints as clutter
Wuzzy <almikes@aol.com>
parents:
2051
diff
changeset
|
68 |
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. |