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

Defence Tutorial halts after Rock Monster leaves #48

Closed
trigger-segfault opened this issue Aug 20, 2022 · 0 comments
Closed

Defence Tutorial halts after Rock Monster leaves #48

trigger-segfault opened this issue Aug 20, 2022 · 0 comments
Labels
bug Something went wrong. game logic Relates to how things work and happen in game.

Comments

@trigger-segfault
Copy link
Owner

Describe the issue
Playing the tutorial Defending Rock Raider H.Q. halts once the first Rock Monster has departed into the wall. After tracing the NERP script, it was found that NERPFunc__GetMonstersOnLevel was returning 1 when the value should have been 0.

Expected behaviour
The tutorial should be able to continue once bullying the Rock Monster enough (with the Pusher Beam) for them to leave. Instead, the script stays on this state and never enables the continue arrow.

NERPFunc__GetMonstersOnLevel is expected to return the current amount of Rock/Lava/Ice monsters in the level, but instead returns a higher count.

Steps to reproduce

  1. Start Defending Rock Raider H.Q..
  2. Play through the tutorial like normal.

Additional information

  • Time played this session: 3-4 minutes.
  • Level: Defending Rock Raider H.Q.
  • Game speed: 0% or 100% (handled by tutorial)
  • Graphics fix: dgVoodoo 2.55.4
  • Using mods: None

Solution

The issue was discovered to be the objectGlobs.objectPrevLevels array, which had a value of -1 for Rock Monster (Lv0) counts. This was because LegoObject_Remove incorrectly decrements objectGlobs.objectPrevLevels instead of incrementing the value.

@trigger-segfault trigger-segfault added bug Something went wrong. game logic Relates to how things work and happen in game. labels Aug 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something went wrong. game logic Relates to how things work and happen in game.
Projects
None yet
Development

No branches or pull requests

1 participant