mirror of
https://github.com/brmlab/brmlife.git
synced 2025-08-02 18:03:37 +02:00
Incomp. Proto. Change: Maintain sync by prefixing client commands by tick id
This commit is contained in:
parent
091708f577
commit
9baf771807
5 changed files with 29 additions and 15 deletions
15
README
15
README
|
@ -6,7 +6,7 @@ In each tick, the server sends sensor input to the agent.
|
|||
Until the next tick, the client may supply actions to take
|
||||
to the server.
|
||||
|
||||
Both server input and client output follow the same format:
|
||||
Server input follows the format:
|
||||
|
||||
cmd1 <par1> <par2>...
|
||||
cmd2 <par1> <par2>...
|
||||
|
@ -53,6 +53,16 @@ The following inputs (in no particular order) are supported:
|
|||
<id>: pheromone id 0..65535
|
||||
<intensity>: floating-point number
|
||||
|
||||
Client output follows a slightly different format:
|
||||
|
||||
<tickid> cmd1 <par1> <par2>...
|
||||
<tickid> cmd2 <par1> <par2>...
|
||||
...
|
||||
|
||||
Only commands with a matching tickid are processed; in case a command
|
||||
is delayed, causing late relaying to the server and processing in the
|
||||
future, it is silently dropped and ignored.
|
||||
|
||||
The following outputs are supported:
|
||||
|
||||
move_dir <x> <y>
|
||||
|
@ -106,6 +116,3 @@ If the id corresponds to a disconnected agent, the connection
|
|||
is immediately attached to that agent. Combining this with other
|
||||
negotiation commands is undefined, except for newborns - in that case,
|
||||
negotiation commands must follow after agent_id.
|
||||
|
||||
TODO proto. change:
|
||||
tickid for input
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue