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

#2 NPC use doors properly #72

Merged
merged 2 commits into from Jan 21, 2021
Merged

#2 NPC use doors properly #72

merged 2 commits into from Jan 21, 2021

Conversation

szapp
Copy link
Collaborator

@szapp szapp commented Jan 19, 2021

NPCs now use doors properly.

This PR should be ready to merge. An interesting thing to check would be, whether it also works when using with mods that already have fixed the issue.

The test involves manual confirmation with test 2.

@AmProsius
Copy link
Owner

AmProsius commented Jan 19, 2021

An interesting thing to check would be, whether it also works when using with mods that already have fixed the issue.

Good point. I will test the fixes with the UnPatch, because that's the mod with almost all fixes we did.

@AmProsius
Copy link
Owner

AmProsius commented Jan 20, 2021

@szapp I've tested this fix with the main game and the UnPatch mod under the same conditions (Ninja + Union + 4 GB Patch).

Main game: The guard opens the door but then stops and doesn't move any further. If I start the test again (and the door is open), he walks through the open door.

UnPatch mod: The guard opens the door and walks through it. I guess this is the intended behavior.

When comparing the code, AI_ContinueRoutine (self); seems to be missing.

@szapp
Copy link
Collaborator Author

szapp commented Jan 20, 2021

Thanks for testing?

When comparing the code, AI_ContinueRoutine (self); seems to be missing.

That could be it. I wanted to provide the most minimal fix possible so I left it out (because it seemed to work without). We should add it and try again.

@AmProsius AmProsius merged commit b289909 into master Jan 21, 2021
@AmProsius AmProsius deleted the bug002 branch January 21, 2021 19:08
@AmProsius AmProsius linked an issue Jan 21, 2021 that may be closed by this pull request
@szapp
Copy link
Collaborator Author

szapp commented Jan 21, 2021

I looked into it, and AI_ContinueRoutine is actually just treating the symptoms. I will push a change that replaces the call to AI_ContinueRoutine with removing the underlying issue instead. Would you mind testing with it again? I will do my best to test, too.

@AmProsius
Copy link
Owner

Would you mind testing with it again? I will do my best to test, too.

Of course, no problem. Thank you for looking into this again!

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

Successfully merging this pull request may close these issues.

NPCs don't use doors properly
2 participants