-
Notifications
You must be signed in to change notification settings - Fork 7
Protocol
In server files, the protocol code is located in the project Chronos.Protocol and separated by 3 categories :
- Messages : where is located the structures of the packets must be sended to the client and inside messages there is also the snapshots, a sub-packet inside another packet.
- Types : it's the grouping of type data inside a packet like it can group the Characters Data or Items Data
- Enums : it's hardcoded data collected from the client from some response like Character creation result or some data that i need in server-side i have added by myself, to be obvious.
in the gameres folder, there is all datas that you need for developing except some packets/snapshots are hardcoded in the game exe file, but what you really need for developing the server is stored in the config.wdf.
Once decompressed, it will appear that there is 2 folders addons and project, the first one, is all lua files that you need for developing the other one, I still have not found that it would be useful.
All i can say, is that in the file FFServerFuncMap.lua contains all data for each packet sended from the server mapped to his function where the data sended from the server is handled.
If you need to know the Id of the packet, there is a file named msgHdr.lua, it contains all Packets/Snapshots/Errors ids.
About the packets sended by the client, there is no file like FFServerFuncMap.lua, you must search in all lua files, to find where is the structure to implement it in the server.