Open
Conversation
linuxgurugamer
commented
Apr 23, 2021
seen when in a debug version:
UnityException: get_dataPath is not allowed to be called from a
MonoBehaviour constructor (or instance field initializer), call it in
Awake or Start instead. Called from MonoBehaviour 'CraftManager' on game
object 'CraftManager'.
See "Script Serialization" page in the Unity Manual for further details.
at (wrapper managed-to-native) UnityEngine.Application.get_dataPath()
at KSPUtil.get_ApplicationRootPath () [0x0001d] in
<9d71e4043e394d78a6cf9193ad011698>:0
at CraftManager.CraftManager..cctor () [0x00049] in
<8b61a4f45bb64fb591febc58234adb97>:0
Rethrow as TypeInitializationException: The type initializer for
'CraftManager.CraftManager' threw an exception.
Fixed nullref caused by missing "description" or "ship" in the craft file Fixed stock toolbar hiding (by Quickhide) causing screen to lock up. Fixed issue Sujimichi#5, when changing from VAB to SPH or back, the default folder when opening mod now is set to the correct vessel directory Fixed following error which doesn't appear in a normal game, but can be seen when in a debug version of the game: UnityException: get_dataPath is not allowed to be called from a MonoBehaviour constructor (or instance field initializer), call it in Awake or Start instead. Called from MonoBehaviour 'CraftManager' on game object 'CraftManager'. See "Script Serialization" page in the Unity Manual for further details. at (wrapper managed-to-native) UnityEngine.Application.get_dataPath() at KSPUtil.get_ApplicationRootPath () [0x0001d] in <9d71e4043e394d78a6cf9193ad011698>:0 at CraftManager.CraftManager..cctor () [0x00049] in <8b61a4f45bb64fb591febc58234adb97>:0 Rethrow as TypeInitializationException: The type initializer for 'CraftManager.CraftManager' threw an exception.
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.