Messages
msgsrvcli.H
Hello
First message send from server to any connecting clients or servers.
TYPE | Name | Description |
BYTE | Id | 1 |
WORD | Version | |
Login
First message send from client to server.
TYPE | Name | Description |
BYTE | Id | 0 |
CHAR[LOGINNAMELENGTH] | Name | User name |
CHAR[LOGINPASSWDLENGTH] | Passwd | Password |
BYTE | newUser | True if user try to create a new user |
ServerInfo
Message send from server to client after a successful login.
TYPE | Name | Description |
BYTE | Id | ? |
DWORD | WorldServerAddress | IP address |
WORD | WorldServerPort | Port number |
DWORD | GOSAddress | IP address |
WORD | GOSPort | Port number |
GOSInfo
Message send from server to worldsrv to inform where to find a gos.
TYPE | Name | Description |
BYTE | Id | ? |
DWORD | GOSAddress | IP address |
WORD | GOSPort | Port number |
Bye
TYPE | Name | Description |
BYTE | Id | 1 |
WORD | reason | Se table of reasons. |
Table of reasons
MSGBYE_QUIT |
MSGBYE_BADPROTOCOL |
MSGBYE_UNKNOWN |
GetWorld
TODO: Move this message to command message
Client request to get world sceen.
TYPE | Name | Description |
BYTE | Id | 3 |
Command
Used to send commands that don't need any data.
TYPE | Name | Description |
BYTE | Id | 7 |
WORD | command | Se table of commands. |
Table of commands to client
MSGCOMMAND_CLIENTCLEARWORLD |
Table of commands to server
PLAYERLOOK_DEFAULT | |
PLAYERLOOK_UP | |
PLAYERLOOK_DOWN | |
PLAYERLOOK_RIGHT | |
PLAYERLOOK_LEFT | |
PLAYERLOOK_FORWARD | |
PLAYERLOOK_BACKWARD | |
PLAYERMOVE_STEPFORWARD | |
PLAYERMOVE_STEPBACKWARD | |
PLAYERMOVE_STEPLEFT | |
PLAYERMOVE_STEPRIGHT | |
PLAYERMOVE_MOVEFORWARD | |
PLAYERMOVE_MOVEBACKWARD | |
PLAYERMOVE_MOVELEFT | |
PLAYERMOVE_MOVERIGHT | |
PLAYERMOVE_RUNFORWARD | |
PLAYERMOVE_RUNBACKWARD | |
PLAYERMOVE_RUNLEFT | |
PLAYERMOVE_RUNRIGHT | |
USERCOMMAND_0 | |
USERCOMMAND_1 | |
USERCOMMAND_2 | |
USERCOMMAND_3 | |
USERCOMMAND_4 | |
USERCOMMAND_5 | |
USERCOMMAND_6 | |
USERCOMMAND_7 | |
USERCOMMAND_8 | |
USERCOMMAND_9 | |
Viewpoint
Send from server to client, to update the viewpoint.
TYPE | Name | Description |
BYTE | Id | 8 |
6*DWORD | position + direction | |
DWORD | targetId | Where viewpoint is connected. |
Selection
TODO: Implement use of subobjects
Send from client to server, to get action list for selected object.
TYPE | Name | Description |
BYTE | Id | 9 |
WORD | objectId | Uniq identifyer for selected object |
Action
TODO: Implement use of subobjects
Send from client to server, to execute a action on a object.
TYPE | Name | Description |
BYTE | Id | 10 |
WORD | objectId | Uniq identifyer for object |
WORD | actionId | Uniq identifyer for action |
PlayerInfo
Send from server to client, to change master cell. Client then
ask the world server to send world info for new cells.
TYPE | Name | Description |
BYTE | Id | ? |
DWORD | masterCellId | Uniq identifyer for master cell. |
msgactionlist.H
ActionList
Send from server to client, to inform client about leagal actions
for a object.
TYPE | Name | Description |
BYTE | Id | 11 |
WORD | objectId | Uniq identifyer for object |
WORD | numActions | Number of actions |
*numActions
WORD | actionId | |
STRING | actionName | |
msgworld.H
Section
Cell
RemoveCell
Object
RemoveObject
ChangeMasterCell
PVCell
UpdatePosition
Send from server to client, to update the position to a geometry object in
the client world.
TYPE | Name | Description |
BYTE | Id | 5 |
WORD | worldObjectId | Uniq identifyer for this object |
3*DWORD | position | |
UpdateDirection
Send from server to client, to update the direction to a geometry object in
the client world.
TYPE | Name | Description |
BYTE | Id | 6 |
WORD | worldObjectId | Uniq identifyer for this object |
3*DWORD | direction | |
UpdateHierarchy
msgmsg.h
Msg
Text message
TYPE | Name | Description |
BYTE | Id | 12 |
BUF[BodyLength] | msg | Message |
msgserver.H
ServerLogin
Send from a server to tell inet address to use when connecting
to that server.
TYPE | Name | Description |
BYTE | Id | 50 |
DWORD | ServerAddress | IP address |
WORD | ServerPort | Port number |
msggos.H
GOSError
Errors from GOS to client.
TYPE | Name | Description |
BYTE | Id | 101 |
BYTE | error | Error number se table of errors |
Table of errors
GOSRequest
Request from client to GOS to get a object.
TYPE | Name | Description |
BYTE | Id | 100 |
BYTE | requestType | Se table of request types |
WORD | objectId | Requested object |
Table of request types
GOSREQUEST_GEOMETRY |
GOSREQUEST_MATERIAL |
GOSREQUEST_TEXTURE |
Geometry
Material
Texture
msgsrvgos.H
Empty file