Allow Quit to Main Menu#2659
Open
MistaOmega wants to merge 67 commits into
Open
Conversation
added some event cleanups for PlayerCinematics.cs and StoryGoalInitialSyncProcessor.cs removed application.quit from IngameMenu_QuitGame_Patch.cs
- Properly unhook events for multiplayer session lifecycle. - Add `OnSessionEnd` handling to session-scoped behaviours for automatic cleanup. - Clear registries and caches on session end. - Fix issues w/ stale references in service lifetimes.
Test Results251 tests +11 250 ✅ +11 8s ⏱️ ±0s Results for commit 8882e18. ± Comparison against base commit b98858a. This pull request removes 2 and adds 13 tests. Note that renamed tests count towards both.♻️ This comment has been updated with latest results. |
Contributor
Author
|
Cleanups are as follows at the moment: Non-destroyed Monoscomponents added in
Static Collections
Lambda Event Subs
Couple Singletons with State
Random Stuff I've Tested
Bug TrackingCyclops Rejoin Handling
|
…trox#2644) Co-authored-by: dartasen <10561268+dartasen@users.noreply.github.com>
This caused proton to be launched without a proper Steam exe.
Co-authored-by: Coding-Hen <8798074+Coding-Hen@users.noreply.github.com>
Previously this caused user to require deleting the cache file in order to start the server successfully.
Co-authored-by: misterbubb <106004257+misterbubb@users.noreply.github.com>
Model -> Nitrox.Model
…auticaNitrox#2693) Co-authored-by: dartasen <10561268+dartasen@users.noreply.github.com>
Co-authored-by: Meas <1107063+Measurity@users.noreply.github.com>
…bnauticaNitrox#2701) Co-authored-by: Meas <1107063+Measurity@users.noreply.github.com>
Jannify
requested changes
Apr 5, 2026
| namespace NitroxClient.MonoBehaviours; | ||
|
|
||
| public class PlayerMovementBroadcaster : MonoBehaviour | ||
| public class PlayerMovementBroadcaster : NitroxSessionBehaviour |
Member
There was a problem hiding this comment.
Do we need NitroxSessionBehaviour if don't implement OnSessionEnd()?
| NitroxEntity.ClearAll(); | ||
|
|
||
| // clear remote players | ||
| PlayerManager remotePlayerManager = NitroxServiceLocator.LocateService<PlayerManager>(); |
Member
There was a problem hiding this comment.
Suggested change
| PlayerManager remotePlayerManager = NitroxServiceLocator.LocateService<PlayerManager>(); | |
| PlayerManager remotePlayerManager = Resolve<PlayerManager>(); |
Contributor
Author
There was a problem hiding this comment.
I can't seem to call resolve in a static context. So I think current impl is the best currently
Contributor
Author
|
Seen these, will work through soon <3 |
This comment was marked as spam.
This comment was marked as spam.
added some event cleanups for PlayerCinematics.cs and StoryGoalInitialSyncProcessor.cs removed application.quit from IngameMenu_QuitGame_Patch.cs
- Properly unhook events for multiplayer session lifecycle. - Add `OnSessionEnd` handling to session-scoped behaviours for automatic cleanup. - Clear registries and caches on session end. - Fix issues w/ stale references in service lifetimes.
# Conflicts: # NitroxClient/GameLogic/PlayerManager.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Draft whilst I keep looking for bugs and broken stuff that has come from this