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

Basic game state information #3

Open
dertseha opened this issue Apr 23, 2015 · 2 comments
Open

Basic game state information #3

dertseha opened this issue Apr 23, 2015 · 2 comments

Comments

@dertseha
Copy link
Member

The game state is stored in chunk 0x0FA1 (4001) - get some first information about it documented.

dertseha added a commit that referenced this issue Apr 23, 2015
@dertseha dertseha changed the title First game state information Basic game state information May 14, 2015
dertseha added a commit that referenced this issue May 15, 2015
dertseha added a commit that referenced this issue May 22, 2015
dertseha added a commit that referenced this issue May 27, 2015
dertseha added a commit that referenced this issue Oct 9, 2015
dertseha added a commit that referenced this issue Mar 7, 2016
dertseha added a commit that referenced this issue Jul 15, 2016
dertseha added a commit that referenced this issue Jul 15, 2016
clarified Wing 0 and non-working extra game
@dertseha
Copy link
Member Author

I am starting to suspect the int16 (or int32) values at 001C, 0020, 0024, 0028 and 002C to be the game time values. They are close together (though, why should there be 5 game time variables).
Assuming the game has a tick interval of 36 msec, then the game time can be calculated as X * 36 / 15.

Why 15 I don't know, it just seemed to be a good factor that fit. I haven't tested this with larger game times yet.

dertseha added a commit that referenced this issue Jul 22, 2017
- fixed some errorneous index values
dertseha added a commit that referenced this issue Jul 22, 2017
@dertseha
Copy link
Member Author

dertseha commented Aug 8, 2020

I just realized that the offsets of the remaining half of the Player structure fields were off. As a result, savegame information was off.

Incidentally, the Source Port version still was able to read and parse it. Apparently there was some extra hack that would read the smaller sized game state resources? Because it would still consider any overrides from in there with the wrong offsets.

Need a better update.

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

No branches or pull requests

1 participant