-
Couldn't load subscription status.
- Fork 51
Adding a campaign record and reworking scenario from header #126
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
base: master
Are you sure you want to change the base?
Conversation
…but check needed for the version
… from test it's a weird version cause map version is valorised to 4.
… save_version < 61.5
| .tox/ | ||
| *.pyc | ||
| *.sqlite | ||
| /.vs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using Visual Studio to work
| If(lambda ctx: find_save_version(ctx) >= 50, Bytes(8)), | ||
| If(lambda ctx: find_save_version(ctx) >= 61.5, Flag), | ||
| If(lambda ctx: find_save_version(ctx) >= 63, Bytes(5)), | ||
| If(lambda ctx: find_save_version(ctx) >= 64.3 and ctx.game_type == 5, Bytes(4)), # Campaign ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Crashed on the campaign replay parsing here, could use a check with previous version of the game
mgz/header/lobby.py
Outdated
| #If(lambda ctx: find_save_version(ctx) >= 26.16, Bytes(5)), | ||
| #If(lambda ctx: find_save_version(ctx) >= 37, Bytes(8)), | ||
| #If(lambda ctx: find_save_version(ctx) >= 64.3, Bytes(16)), | ||
| # We ignore those previous data for now they were making the GoToLobbyStart more complex without being meaningfull |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I choose to ignore those bytes to make GoToLobbyStart easier to write but we are loosing some version knowledge, happy to hear feedback.
|
@happyleavesaoc I'm open to feedback |
Using Saladin 3 (new record 64.3-campaign), I'm trying to fix the scenario part, what bother me is that those fixes are from the most recent version and might not be compatible with a previous one.