https://metaplay.io logo
Unity Initialization Error (SDK 33.1.0)
# questions-and-feedback
b
Hello! I downloaded the CLI tools and integrated v33.1.0 in our project. However, it fails to initialize, seems like a problem with serializing the default environment configs. The exception log is attached. We're using Unity 6000.0.51f, with v3.2.1 of the Newtonsoft Json package, if that helps. Edit: Seems like I'm not allowed to attach files?
j
Hmm, try posting to http://paste.mod.gg/ instead?
Not sure why attaching files is not allowed 😅
I think you should be able to attach files now
can now, thanks 🙂
j
Can you tell me the project id of the unity configs that you imported?
b
slick-owls-punch
j
Hmm, I can't seem to reproduce that error, can you tell me what steps you've done to set up your project?
You should have a file named
GlobalOptions.cs
in your project, can you verify that projectName in that file is set to a non empty string? When trying to set up a new unity project with your metaplay project, for some reason this was an empty string for me, which I can't repro with our test projects.
b
can confirm project name is not empty
i'll try with a new unity project
it works with a new Unity project
here's console log from my machine
ok i've found the issue, we have a package which seems to be causing it: "jillejr.newtonsoft.json-for-unity.converters": "1.6.3". we need it to serialize some unity classes. if i add it to the new project i get the same errors
j
Ah interesting, I'll see if we can fix that.
Right, so that plugin does a hacky thing by finding all json converters and globally registering them, this does not work since some of our analyzers rely on hacky behaviour in json.net and if globally registered will throw. You can disable the globally registration by going to Edit > Json.Net converter settings > disable "Use all outside converters" > Disable all metaplay converters
b
aha cool. thanks for the fix!