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

Can't read aoe2record nor mgz #59

Open
LBreda opened this issue Jun 29, 2018 · 4 comments
Open

Can't read aoe2record nor mgz #59

LBreda opened this issue Jun 29, 2018 · 4 comments
Labels

Comments

@LBreda
Copy link

LBreda commented Jun 29, 2018

Hi,

I tried a fresh install of the project into Laravel. It doesn't work at all.

All the aoe2record files I tried die with a "Can't read 4 bytes" exception while trying to set $initCameraY (PlayerInfoBlockAnalyzer.php, line 140), and all the mgz files I tried die with a "Got invalid map size" exception.

Are there problems with the current php version (7.2)?

@goto-bus-stop
Copy link
Owner

Thanks for the report! I've added PHP 7.2 to the automated test suite and it seems to work for the few recorded games that I have in there. Perhaps could you upload a game here so I can check it out? Also try uploading it to http://idlebeaver.ninja/recanalyst/, to check if it works there.

@LBreda
Copy link
Author

LBreda commented Aug 4, 2018

It doesn't work on the online version, I tried it (it replies with a blank page, the html contains the head section and the body open tag).

I enclosed a game.

rec.zip

@goto-bus-stop
Copy link
Owner

OK, it's definitely reading something incorrectly in the aoe2record metadata already:

image

All of those should be 4 bytes earlier. If I had to guess it's not reading the "datasets" list correctly, IIRC I never quite figured out how that was structured and just did something that seemed to work for the games I had.

@yvan-burrie
Copy link

I'm trying to figure out how the function is read (as shown by my latest commit), but the pseudocode is very complicated because the decompiler uses goto-labels.

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

No branches or pull requests

3 participants