Skip to content

wowsinfo/WoWs-LiveBattle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WoWs LiveBattle

Read and parse live packets from World of Warships. This is based on wows-replays (Rust), WoWS-ReplaysUnpack (C#) and replays_unpack (Python). I have also done my own research here by analysing raw data. The parser project is modified based on wows-replays.

Usage

You need to provide the latest scripts folder from the game. It can be downloaded from here. Place the scripts like this version/12.9.0/scripts (12.9.0 is the game version), the version folder needs to be in the same folder as the executable. This can be done automatically when the Unpacker is ready.

Writing a client

Currently, the websocket sends packets in a specific format. It always sends a JSON string which contains an array of objects. The length can change in the future, but I will ensure it will be always an array. Loop through the array and parse all packets. Please see clients for a simple Python demo. There will be some delays, but it shouldn't be that far apart. However, it is also not instant.

The reason why packets are sending in a bundle was to improve the performance. While packets can be sent one by one, it introduces a lot of overheads. By sending multiple packets in a bundle, the delay is greatly reduced, and it doesn't use up lots of resources at the same time.

Notice

This project is still in its early development. All packets you can see are sent from the game server. That means everything you get is legit. You cannot get what you cannot see. With this project, you can know more about the current battle. This is similar to a MOD, but without the need of installing anything, and it works alongside the game.