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

Opening a ritual dialog causes the wrong one to open (with multiple ideologies in colony) #506

Open
SokyranTheDragon opened this issue Sep 18, 2024 · 1 comment
Labels
bug Something isn't working. ideology Fix or bugs relating to Ideology (Not 1.3)

Comments

@SokyranTheDragon
Copy link
Member

Reproduction steps:

There's 2 synced calls to Precept_Ritual.ShowRitualBeginWindow. After some digging I've learned that what happens is that inside of GizmoGridDrawer.DrawGizmoGrid, when a gizmo is clicked then all the other gizmos in the same group (GizmoGridDrawer.gizmoGroups) will have their ProcessInput method called as well (as long as they aren't disabled and Gizmo.InheritInteractionsFrom returns true).

In SP, it looks like it'll open the dialog for every single ideology, and only the last (the relevant one) will be displayed (since WindowStack.Add removes previous windows of the same type). However, it looks like in MP it tries to sync the method for every single one, but only opens the dialog and creates the session for the first one (an irrelevant one), and the following dialogs will be rejected (since we already have an active session).

Save/replay where the issue is present (drop into MpReplays, don't unpack): RitualIssues.zip

@SokyranTheDragon SokyranTheDragon added bug Something isn't working. ideology Fix or bugs relating to Ideology (Not 1.3) labels Sep 18, 2024
@SokyranTheDragon
Copy link
Member Author

Accidentally discovered this while working on other stuff. Currently working on a couple of other things, so not working on this at the moment. Not really sure how to approach it either yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working. ideology Fix or bugs relating to Ideology (Not 1.3)
Projects
None yet
Development

No branches or pull requests

1 participant