I wonder what I am doing

Moderator: Moderators
ive implemented 2 of thoes so farTronic wrote:The protocol itself really sucks and should be redone. Is there an on-going project for this already, or should one be started?
What comes to the new protocol:
- A binary format (big endian) should be considered, even though text format will probably be used anyway.
- All commands should be tokenizable. This is not the case with the current protocol, as tokens may be separated by spaces or tabs and only the lexer knows which (the parser does not know about the commands).
- No escaping whatsoever. Just don't do it.
- Colors should be passed either as 6-digit hex numbers (as in HTML), as three separate floating point values (0.0-1.0 for R, G and B, as in OpenGL) or in binary (uint32 ARGB).
- Changing the player limit and other settings should be possible without rehosting a battle.
- Clients should not be required to generate unique identifiers (other than nicks). The server can do this and guarantee that the IDs really are unique.
- All commands should be asynchronous and have IDs assigned to them and the corresponding replies (similar to IMAP).
- The commands should be categorized (reducing the number of "global" commands).
EDIT: one very important addition: make all strings UTF-8.
Taking a shot in the dark, but I'm guessing its a permanent ID linked to your account and usernames that is static, unlike your dynamic username. Again guessing, its for things like friends lists, so even if you change your username you remain on them due to the static ID.iamacup wrote:
i dont see the benefit of a 2nd ID though?
Talking shit or not, +1 to this idea. But thats slightly off topic for this thread.Relative wrote:Taking a shot in the dark, but I'm guessing its a permanent ID linked to your account and usernames that is static, unlike your dynamic username. Again guessing, its for things like friends lists, so even if you change your username you remain on them due to the static ID.iamacup wrote:
i dont see the benefit of a 2nd ID though?
I'm likely talking bullshit