Profile image

Is SimplePlanes Mod Tools still compatible with Unity 2017.1.0f3?

27.4k JovianPat  7.4 years ago

When saving a Mod, I get this error on the Unity console :

UnityException: get_dataPath is not allowed to be called from a ScriptableObject constructor (or instance field initializer), call it in OnEnable instead. Called from ScriptableObject 'ModBuilderWindow'.
See "Script Serialization" page in the Unity Manual for further details.
Jundroo.ModTools.Editor.ModBuilderWindow..cctor ()
Rethrow as TypeInitializationException: An exception was thrown by the type initializer for Jundroo.ModTools.Editor.ModBuilderWindow
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115)
UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:272)
UnityEditor.HostView.Invoke (System.String methodName) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:265)
UnityEditor.HostView.OnInspectorUpdate () (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:164)

Is this an issue from the package or my Unity version? The errors appear when saving a mod. I'm on Windows 10 Home 64-bit.

  • Log in to leave a comment
  • Profile image
    1,250 mishSE

    @JovianPat What installer? Never heard about it. Btw, I'm also using 5.3.6f1 Unity and it returns a error "...target is not supported in this Unity build". What's wrong with it?

    6.2 years ago
  • Profile image
    27.4k JovianPat

    @NathanMikeska Thanks, but I've already fixed it. The Win 5 error occurs apparently because I downloaded the editor only, not the proper installer. After installing it properly, the mod works fine. Also, thanks for the custom map tutorial video, it definitely helped me with the steps.

    7.4 years ago
  • Profile image

    @JovianPat Sorry for my late arrival... If you haven't solved it already, I suspect the 'Win' (5) error you are getting is because the build target is set to the web player. Switching your current platform to Windows should fix that.

    7.4 years ago
  • Profile image
    27.4k JovianPat

    @Mod Ok. Thanks for the help!

    7.4 years ago
  • Profile image
    14.5k Mod

    @JovianPat Ok, make sure you get all the compatibility modes, and if you want to be able to make android mods too, make sure to get Android Compatibility, as is Windows too.

    7.4 years ago
  • Profile image
    27.4k JovianPat

    @Mod I use Steam, however my account is still limited, so I can't invite. My username is JovianPat. But not sure if I can stream, though. Besides, my internet is kinda slow :P I'm also redownloading Unity 5.3.6f1 using the download assistant, so hopefully I get everything correct this time.

    7.4 years ago
  • Profile image
    14.5k Mod

    Ctracerx2 is steam name, if you use steam.

    7.4 years ago
  • Profile image
    14.5k Mod

    @JovianPat Uh, I don't know to be honest. - I think so. Is there a way I could add you on steam and get you to open a game up so it would stream? And let me watch? I can try to help from there. But there'd be a 15sec delay.

    7.4 years ago
  • Profile image
    27.4k JovianPat

    @Mod Edit : I tried saving the mod without any terrain or any other assets in it, just the Simple Planes Map game object. It gave me the same error. I'll try redownloading. I downloaded the Unity Editor 64-Bit, maybe I should have chosen the whole installer?

    7.4 years ago
  • Profile image
    14.5k Mod

    @JovianPat Actually, what type of assets? Because I'm being told by Mushr0om that if you are using stuff from the 2017 version that aren't just textures and materials, that may be why.

    7.4 years ago
  • Profile image
    14.5k Mod

    @JovianPat Probably? I think I've had that error before, I forget why, but it has to do with something during the download. What compatibilities did you download Unity 5.3.6f1 with?

    7.4 years ago
  • Profile image
    27.4k JovianPat

    @Mod This time, I got this :
    An error occurred building the mod: (11:55:15 PM): Building a player for 'Win' (5) target is not supported in this Unity build.
    UnityEngine.Debug:LogErrorFormat(String, Object[])
    Jundroo.ModTools.Editor.ModBuilderWindow:CompleteAndSaveMod(ModTargetPlatform)
    Jundroo.ModTools.Editor.ModBuilderWindow:OnGUI()
    UnityEditor.DockArea:OnGUI()

    I'm using Unity 5.3.6f1 64-Bit. Any suggestions? Is this because I used some assets from the 2017 version?

    7.4 years ago
  • Profile image
    18.8k mushr0om

    @JovianPat Probably because it uses some apis from unity that is obsolete in the new versions, and when exporting it tries to export stuff that it doesnt support

    7.4 years ago
  • Profile image
    27.4k JovianPat

    @Mod Oh well, I'm downloading it now. That's pretty strange considering that all of my other Unity projects work fine in the old and new versions. I guess this Mod Tools are handled differently.

    7.4 years ago
  • Profile image
    14.5k Mod

    @JovianPat 5.3.6f1 is the version you need. Any others will not work properly.

    7.4 years ago
  • Profile image
    27.4k JovianPat

    @Tully2001 Hmm, I'll try. What version do you use when creating a mod?

    7.4 years ago
  • Profile image
    27.4k JovianPat

    @Tully2001 Unity 2017.1.0f3 Personal 64-bit.

    7.4 years ago