-
Notifications
You must be signed in to change notification settings - Fork 25
/
map-release
83 lines (71 loc) · 3.11 KB
/
map-release
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
This is out of data, nowadays we use Django to automate this. Old process documented for posteriority:
Map release process on DDNet
============================
Example for Kobra 4
Regular release time is 18-20 if we have 1 release for the day. If we have 2 releases, the first at 12-14, the second 18-20.
Planned map releases: http://forum.ddnet.tw/viewtopic.php?f=9&t=1474
Pre-requirements:
- SSH to all DDNet servers via public key, mod account in forum
- You need imagemagick, pngnq, optipng, clusterssh installed locally
- libtw2 for ddnet_properties
- SSH config (~/.ssh/config):
Host chn.ddnet.tw
ProxyCommand ssh -q usa.ddnet.tw nc -q0 chn.ddnet.tw 22
User deen
Port 22
Host ddnet.tw *.ddnet.tw
User teeworlds
Port 6546
1. map properties
$ cd git/libtw2
$ cargo build --release
$ target/release/ddnet_properties Kobra\ 4.map Kobra\ 4.msgpack
$ scp Kobra\ 4.msgpack ddnet.tw:servers/maps
2. screenshot
- Make a screenshot of the map on test server at 1440x900, HD on, no chat, no HUD, logo or start area or spawn, whatever looks best
config (run with ./DDNet -f foo.cfg):
gfx_fullscreen 0
gfx_screen_width 1440
gfx_screen_height 900
gfx_high_detail 1
gfx_texture_quality 1
cl_showhud 0
cl_showchat 0
cl_showkillmessages 0
- Screenshot file name: Everything that's not a-z,A-Z,0-9 gets converted to an underline
$ mv [email protected] Kobra_4.png
$ mkdir -p conv; for i in *png; do convert $i -resize 25% conv/$i; zopflipng -m --prefix conv/$i; mv conv/zopfli_$i conv/$i; done; scp conv/* ddnet:/var/www/ranks/maps/; rm conv/*png; mv *png ~/git/ddnet/screenshots
- I store full size screenshots in git/ddnet/screenshots in case we ever need them (unused so far)
3. release the map
$ ssh ddnet
$ cd servers
$ mv test/maps/Kobra\ 4.cfg maps
- Check if the config is actually ok
$ git add maps/Kobra\ 4.cfg
$ mv test/maps/Kobra\ 4.map maps
- iMTG maps are in secret2/maps, race maps are in secret/maps
$ git add maps/Kobra\ 4.map
$ vim types/novice/maps
- Add a line like 4|Kobra 4|Zerodin
First field is the number of stars, check the map topic for that
Last field is the names of the mappers: First, Second, Third & Last
$ ./git-update.sh
- Wait until FRA has been finished (main server)
4. check if it's released ok
- Check on server whether the map is votable
- Check /mapinfo and/or /map
- Check http://ddnet.tw/releases/ (/ranks and /mappers get updated every 20 min)
5. announce release with clusterssh
$ cat ~/.clusterssh/clusters
ddnet ddnet.tw ger.ddnet.tw ger2.ddnet.tw rus.ddnet.tw usa.ddnet.tw chn.ddnet.tw chl.ddnet.tw zaf.ddnet.tw can.ddnet.tw bra.ddnet.tw irn.ddnet.tw
$ cssh ddnet
- 10 terminal windows open
$ abc
bc>
- Wait until it shows "bc>" on all servers, otherwise text will be cut off
bc> New map "Kobra 4" by Zerodin just released on Novice! <ENTER>
6. Clean up forum
- Go to http://forum.ddnet.tw/viewtopic.php?f=9&t=1474
- Move the topic of the map to archive
- Write in the topic of the map that the map has been released
- Remove the map from Planned Releases