Switch from normcore 2.9.5 to 3.0.0-webgl-alpha.1
I switched from 2.9.5 to 3.0.0-webgl-alpha.1 and all of my scripts that use RealtimeComponent broke.
I am getting this error: The type 'scoreDicModel' cannot be used as type parameter 'TModel' in the generic type or method 'RealtimeComponent<TModel>'. There is no implicit reference conversion from 'scoreDicModel' to 'Normal.Realtime.RealtimeModel'. CS0311
11 Replies
Hi @iountzul. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
You should switch back to 2.9.5
Same happened to me
----------------------
It seems like you're having trouble with the
RealtimeComponent<TModel>
after switching to a new version of Normcore. The error message suggests that your scoreDicModel
is not compatible with RealtimeModel
, which is the expected type parameter for RealtimeComponent<TModel>
.
Unfortunately, the provided knowledge sources do not contain specific information about scoreDicModel
or how to resolve this particular error. However, they do provide some general advice on upgrading from Normcore 1 to Normcore 2, which might be helpful.
Here are some general steps you can follow when upgrading:
1. Make sure your project is compiling without any errors before you begin the upgrade. If there are any errors, the upgrade will not work.
2. Download the latest Normcore unitypackage and import it into Unity. Do not delete any Normcore 1 files before doing this step.
3. Once Normcore 2 successfully imports, it will add itself as a package in the Unity Package Manager. This might result in some conflict errors and duplicate symbol errors, which is normal.
4. Delete Normcore 1 from your project by opening up the Normal folder and deleting the Realtime folder.
5. Restart Unity to reset any files that Unity altered in the Normcore 2 package. Once Unity reopens, you'll see the Normcore Migration window. Click the Migrate button to update any references to components that were moved around in Normcore 2.
If you're still having trouble after following these steps, I recommend checking the official Normcore documentation or reaching out to the Normcore support team for more specific guidance.
Sources:
- Upgrading from Normcore 1 to Normcore 2 (https://normcore.io/documentation/guides/upgrading-from-normcore-1-to-normcore-2)
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------<@640961805765705729> kapa.ai is still learning and improving, please let us know how it did by reacting below
Because I'm not in the beta
do you need beta access in order to use the alpha?
Yes otherwise the 3.0.0-webgl version doesn't work
is there a way to get it? Do I need to apply?
I think you can give your email to @Max
ok, thanks!
The webgl alpha is closed right now unfortunately. Keep an eye out for it shipping in Normcore over the next few months.