Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Decompress Replay without Header information #8

Open
koin612 opened this issue Aug 19, 2019 · 3 comments
Open

[Question] Decompress Replay without Header information #8

koin612 opened this issue Aug 19, 2019 · 3 comments

Comments

@koin612
Copy link

koin612 commented Aug 19, 2019

Hey scopatz,

if the first 0x44 bytes are all 0 and so no header information is avaiable, do you think it's possible to decompress the replay? if so how?

thanks!

@scopatz
Copy link
Owner

scopatz commented Aug 25, 2019

Hi @koin612 - that seems like the files is not well formed. Is this for a specific file or all files you are seeing?

@koin612
Copy link
Author

koin612 commented Aug 25, 2019

It is for all files. Specially for the TempReplay file the game creates while playing. The goal is to read the hero spells like grubby has in his Overlay. I found a way doing this via memory reading, but I'd like to avoid memory reading :) so what I've found is that wc3 has a buffer for the data and writes it to TempReplay but missing the header. I'd like to parse this file to visualize the hero spells the player has choosen.

@scopatz
Copy link
Owner

scopatz commented Aug 25, 2019

That is interesting. There is probably a way to skip reading the header information if it is not important. You would want to change this function to skip reading in the header: https://github.com/scopatz/w3g/blob/master/w3g.py#L2219

PRs very welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants