Open drcrimzon opened 3 years ago
@drcrimzon Working on troubleshooting this, what is the command to "get a heading to 0,0" that is causing the crash?
nav 0 0
nav 0 0
Thank you @drcrimzon -- If I first enter game and type "nav 0 0" it does not crash, but entering "imp 99" first which seems to throw us out of the galaxy (which obviously is a big issue) then doing "nav 0 0" crashes
Thank you this is very helpful, will continue debugging.
This might have been fixed by #575, since MBMGEMP
relies a TON on floating point math to calculate sectors and distances. If those floating point variables were local (stack vs. saved to a data segment), they were being written to the data segment at the offset of the stack address, which could not only corrupt memory but result in an invalid/uninitialized value on the stack for the floating point value.
Needs to be checked.
On a fresh 050321 build, MBMGEMP load successfully, and you can enter the game. When you enter, a new user is placed incorrectly, and the game crashes when trying to navigate, and does not allow movement.
The system log at load:
Starting position, note the galactic position should be X:0 Y:0
The game will not let the player move around, at all, and the heading should be 0-360, but reports 14,592
If you try to get a heading / direction to sector 0 0, the game crashes with the following: