Replies: 3 comments 17 replies
-
There are some issues here because I while it doesn't have to be the same on the server, it can't conflict. Lobby refers to the period prior to a game starting and is separate from a game (battle). I've been calling Chobby a client application or lobby client. Client is the connected representation of a user, you can't have a client without user data (but you can have a user without client data if they're not connected). Bot vs AI is a good distinction to make, I agree with it completely. For Host I'd rather swap to founder as host can refer to the machine/instance hosting the game itself and that might be an important distinction to make at a later stage. |
Beta Was this translation helpful? Give feedback.
-
All the properties that I posted in the first snippet would be relevant in all states though no? A battle in the postgame state would still have the same password? My intention with the sub-objects (like {
cmd: "battleUpdated",
data: {
battleId: 123,
state: "pregame"
}
} {
cmd: "battleUpdated",
data: {
battleId: 123,
state: "ingame",
start_time: 1682898825
}
} {
cmd: "battleUpdated",
data: {
battleId: 123,
state: "postgame",
winning_team_id: 1
}
} If we wanted to do this, it would be easy to define these additional properties in the schema based on the literal |
Beta Was this translation helpful? Give feedback.
-
@Jazcash am I right in thinking these are the terms and meanings we agreed upon?
|
Beta Was this translation helpful? Give feedback.
-
Going forward I think it'd be a good idea to standardise the terminology used in the protocol. Words like
client
,lobby
,host
or evengame
can be confusing depending on the context, so I'd like to clear up that ambiguity in regards to this protocol at least.My proposals:
Beyond All Reason test-22425-e6c0e37
105.1.1-1544-g058c8ea BAR105
Just to be clear, I don't think these terms necessarily need to be strictly adhered to in either the server or the lobby codebases. For example, in BAR Lobby the term
bot
actually means an instance of an AI, and I believe currently in the server battles are known aslobbies
. I think that's fine. The terminology in this protocol should be distinct from that and shouldn't be concerned with terms that are irrelevant to it.Beta Was this translation helpful? Give feedback.
All reactions