doc/protocol.txt
author unc0rr
Thu, 01 Nov 2012 14:31:53 +0400
branch0.9.18
changeset 7916 be11c26a3a0b
parent 2497 29678306d4fb
child 8240 ee39403a1d27
permissions -rw-r--r--
Fix 0.9.18 desync: CreateNetGame() slot creates signal-slot connections from hwnet to hwgame. The problem is that this slot is called asynchronously using queued connection, and hwnet could send some signals to hwgame before hwgame object is created and connected. Changed this to direct connection. Also changed connections to hwgame object to queued, but this is unrelated. Sorry, it is frontend patch. Maybe a little delay on server side could help, but not much, as tcp packets could get glued on client's side, and that greately depends on pc and internet connection performance. Frontend should be reworked to be safe for queued connections, as it is extemely dangerous to have a mix of queued/direct connections.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2497
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
     1
	'?'             ping?
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
     2
	'!'             pong!
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
     3
	'l','L'         срабатывание команд     -left, +left
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
     4
	'r','R'                                 -right, +right
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
     5
	'u','U'                                 -up, +up
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
     6
	'd','D'                                 -down, +down
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
     7
	'z', 'Z'                                -precise, +precise
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
     8
	'N'             срабатывание команды /nextturn
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
     9
	'S'                                  /switch
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
    10
	's' + <текст>   /say
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
    11
	'+'             пустой пакет для постоянности лага
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
    12
	'1'..'5'        /timer 1..5
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
    13
	chr(128+№)     /slot №
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
    14
	'w'             /setweap
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
    15
	'p'             /put
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
    16
	'j'             /ljump
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
    17
	'J'             /hjump
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
    18
	'E' + <текст>   сообщение об ошибке
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
    19
	','             /skip
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
    20
	'K'             вывести сообщение из KB
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
    21
	'Q'             выход через команду /quit
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
    22
	'q'             выход по причине окончания игры
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
    23
	't' + №        /taunt №
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
    24
	'F' + <team>    команда team вылетела в сетевой игре
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
    25
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
    26
фронтенд клиенту:
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
    27
	'e' + <команда> выполнить "/<команда>"
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
    28
	'T' + {L,N,D}   тип игры (локальная, сетевая, просмотр демо)
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
    29
	'W' + <текст>   сообщение о нефатальной ошибке
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
    30
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
    31
Клиент фронтенду:
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
    32
	'C'             запрос текущего конфига игры
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
    33
	'q'             выход по причине окончания демки
29678306d4fb set svn:eol-style to native
unc0rr
parents: 1639
diff changeset
    34
	'i'             статистика