doc/protocol.txt
author S.D.
Tue, 27 Sep 2022 14:59:03 +0300
changeset 15878 fc3cb23fd26f
parent 10342 16122539d2ea
permissions -rw-r--r--
Allow to see rooms of incompatible versions in the lobby For the new clients the room version is shown in a separate column. There is also a hack for previous versions clients: the room vesion specifier is prepended to the room names for rooms of incompatible versions, and the server shows 'incompatible version' error if the client tries to join them.

    '?'             ping?
    '!'             pong!
    'l','L'         срабатывание команд     -left, +left
    'r','R'                                 -right, +right
    'u','U'                                 -up, +up
    'd','D'                                 -down, +down
    'z', 'Z'                                -precise, +precise
    'N'             срабатывание команды /nextturn
    'S'                                  /switch
    's' + <текст>   /say
    '+'             пустой пакет для постоянности лага
    '1'..'5'        /timer 1..5
    chr(128+№)     /slot №
    'w'             /setweap
    'p'             /put
    'j'             /ljump
    'J'             /hjump
    'E' + <текст>   сообщение об ошибке
    ','             /skip
    't' + №         /taunt №
    'f' + <team>    'team' is uncontrolled
    'g' + <team>    'team' is controlled again (synced msg)

фронтенд клиенту:
    'e' + <команда> выполнить "/<команда>"
    'T' + {L,N,D}   тип игры (локальная, сетевая, просмотр демо)
    'W' + <текст>   сообщение о нефатальной ошибке
    'F' + <team>    команда team вылетела в сетевой игре
    'G' + <team>    'team' is back (unsynced msg)
    'o'             stop syncing, game over!

Клиент фронтенду:
    'C'             запрос текущего конфига игры
    'q'             выход по причине окончания демки
    'i'             статистика
    'K'             вывести сообщение из KB
    'Q'             выход через команду /quit
    'q'             выход по причине окончания игры