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

Nullref spam in sandbox mode #8

Open
Capkirk123 opened this issue Apr 29, 2024 · 0 comments · May be fixed by #31
Open

Nullref spam in sandbox mode #8

Capkirk123 opened this issue Apr 29, 2024 · 0 comments · May be fixed by #31

Comments

@Capkirk123
Copy link
Collaborator

Capkirk123 commented Apr 29, 2024

If an install with Skopos has a sandbox save created, Skopos will spam nullrefs in the log, presumably because sandbox games don't load career features that Skopos expects. I have not checked if science mode does the same thing.

NullReferenceException: Object reference not set to an instance of an object σκοπός.Network.UpdateConnections () (at <023e265174644549ae9d24cb58b281e2>:0) σκοπός.Network.Refresh () (at <023e265174644549ae9d24cb58b281e2>:0) σκοπός.Telecom.FixedUpdate () (at <023e265174644549ae9d24cb58b281e2>:0) UnityEngine.DebugLogHandler:LogException(Exception, Object) ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object) UnityEngine.Debug:CallOverridenDebugHandler(Exception, Object)

Nazfib added a commit to Nazfib/Skopos that referenced this issue Jan 28, 2025
In sandbox saves, there's no instance of `ContractSystem`. This causes a
NRE to be thrown from `Network.UpdateConnections()` in every
FixedUpdate.

With this change, Skopos doesn't get loaded in Sandbox or Science mode
save files: they don't have contracts, so Skopos wouldn't do anything
anyways.

Fixes mockingbirdnest#8
@Nazfib Nazfib linked a pull request Jan 28, 2025 that will close this issue
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 a pull request may close this issue.

1 participant