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

ChoiceAttribute does not work as intended #316

Closed
LeeTwentyThree opened this issue May 13, 2023 · 2 comments · Fixed by #366
Closed

ChoiceAttribute does not work as intended #316

LeeTwentyThree opened this issue May 13, 2023 · 2 comments · Fixed by #366

Comments

@LeeTwentyThree
Copy link
Member

SubnauticaModding/Nautilus-Proto#30

Issue mirrored @MrJumpscare

@MrJumpscare
Copy link

MrJumpscare commented May 13, 2023

This error gets sent in the log on startup, very likely it has something to do with the issue in my opinion:

Stack trace:
(wrapper castclass) System.Object.__castclass_with_cache(object,intptr,intptr)
Nautilus.Options.Attributes.ConfigFileMetadata`1[T].InvokeOnChangeEvents (Nautilus.Options.Attributes.ModOptionAttributeMetadata`1[T] modOptionMetadata, System.Object sender) (at <f917663135eb49aabfcc1c84f0eb2f71>:0)
Nautilus.Options.Attributes.ConfigFileMetadata`1+<DeferredInvokeOnChangeEventsRoutine>d__38[T].MoveNext () (at <f917663135eb49aabfcc1c84f0eb2f71>:0)
UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at <bd0d47c27bd84106afaaecc2c74cdb94>:0)

@LeeTwentyThree
Copy link
Member Author

Neither do they save properly. Let's try to fix the saving issue first and see where it goes.

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

Successfully merging a pull request may close this issue.

3 participants