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
invalid index used in array script #713
Comments
When filing a report like this, please follow the steps in dxx-rebirth/d2x-rebirth/main/escort.cpp Line 718 in 5b4bf16 If you tell what build you used, I can map the cited line to the corresponding code. A dump file would also be quite helpful for reporting the state of the game at the time of the crash. |
I was running build dxx-rebirth_20220929-win Here is the savegame right before it crashes: https://www.dropbox.com/s/kjlhrls978zqyse/livenuke.sg0?dl=0 |
When you try to file an issue, Github presents you with: https://github.com/dxx-rebirth/dxx-rebirth/issues/new/choose On that page, it offers you:
and a link at the bottom for using none of those templates. You appear to have used none of them, so you skipped over the instructions in
The error message as text would be nice to record, so that it can be quoted and searched. Your screenshot of the error message is not searchable. The instructions in your screenshot also state to "provide steps to reproduce, starting from the game main menu." For my future use, the error message in your screenshot reads:
Please prefer attaching critical files to the ticket, rather than hosting them on external services that may delete them unexpectedly. Using that savegame, I see a different, but bad behavior. After loading, the Guidebot seems stuck on the red door for several seconds, then I get these messages on the terminal:
Then the program aborts due to the failed assertion. This differs from your report, where the crash is an invalid |
After bypassing the crash, this save looks strange. I found a marker for the guidebot death site, even though there is a live guidebot in play. This should not happen in normal play. Additionally, the player has ~90 seconds left on invulnerability at load time, which is not possible normally. |
Oh jeez. Well looks like there's a consequence for cheating :( I...may
have used some cheat codes to revive the guidebot and give myself a little
invulnerability. Is that what is likely causing the crashes?
…On Mon, 15 May 2023 at 19:21, vLKp ***@***.***> wrote:
After bypassing the crash, this save looks strange. I found a marker for
the guidebot death site, even though there is a live guidebot in play. This
should not happen in normal play. Additionally, the player has ~90 seconds
left on invulnerability at load time, which is not possible normally.
—
Reply to this email directly, view it on GitHub
<#713 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AG2WNPJSXQMOAEMNZ2QVBB3XGLQDTANCNFSM6AAAAAAXVLFC3Y>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
The invulnerability was a tell that you were using cheats, but did not cause the problem. The resurrected guidebot, with a different internal index than the original, is the problem. After the game loads, the index of the original (now dead) guidebot is used for some operations, and the object at that index now is not a guidebot, so those operations crash. You might be able to avoid the crash by telling the guidebot to go away. I have a patch that fixes this, which I hope to push soon. |
The index of the guidebot is set by loading the level data, and this is usually sufficient. However, if the user kills the guidebot, then uses cheats to create a new one, the new guidebot will often have a different index than the original guidebot. If such a game is saved and then reloaded, then after the reload, the computed guidebot index will be reverted to the index of the original dead guidebot. This causes various problems, including potentially a crash. Recompute the guidebot index after loading the objects from the save file, so that it matches the live guidebot. Reported-by: GitInMotion <#713>
I believe the above commit will allow your game to load and not crash when the guidebot performs its next update. Please sync to |
Was playing D2 vertigo level 8 with the guide bot by the red door. Error happened a few times:
https://imgur.com/a/YYeEoC3
The text was updated successfully, but these errors were encountered: