Topic: Compiler errors after installation

Hello,
I installed UFE 2 (Standard Edition) on Unity v. 2022.2.9f1 and nothing else is installed - it's a new project.
I get compillation errors, and I don't know what to do with them. There are six errors:

Assets\UFE\Engine\Scripts\UI_Templates\DefaultSearchMatchScreen.cs(21,50): error CS0012: The type 'NetworkID' is defined in an assembly that is not referenced. You must add a reference to assembly 'UnityEngine.UNETModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.

Assets\UFE\Engine\Scripts\UI_Templates\DefaultSearchMatchScreen.cs(21,79): error CS0012: The type 'NetworkID' is defined in an assembly that is not referenced. You must add a reference to assembly 'UnityEngine.UNETModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.

Assets\UFE\Engine\Scripts\UI_Templates\DefaultSearchMatchScreen.cs(26,50): error CS0012: The type 'NetworkID' is defined in an assembly that is not referenced. You must add a reference to assembly 'UnityEngine.UNETModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.

Assets\UFE\Engine\Scripts\UI_Templates\DefaultSearchMatchScreen.cs(26,79): error CS0012: The type 'NetworkID' is defined in an assembly that is not referenced. You must add a reference to assembly 'UnityEngine.UNETModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.

Assets\UFE\Engine\Scripts\UI_Templates\DefaultSearchMatchScreen.cs(40,115): error CS0012: The type 'NetworkID' is defined in an assembly that is not referenced. You must add a reference to assembly 'UnityEngine.UNETModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.

Assets\UFE\Engine\Scripts\UI_Templates\DefaultSearchMatchScreen.cs(51,115): error CS0012: The type 'NetworkID' is defined in an assembly that is not referenced. You must add a reference to assembly 'UnityEngine.UNETModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.

Please advise. I am fine even with starting a new project, as I haven't done anything yet other than install UFE 2, as I just bought it during the Unity Flash Sale. I've been struggling with these errors for 2 days and tried creating a new project, but same result. I appreciate some advice so I can play with the engine!

Many thanks.

Share

Thumbs up +1 Thumbs down

2 (edited by yeyekopi 2023-06-02 09:25:48)

Re: Compiler errors after installation

I also get similar compilation errors on Unity v. 2022.3.0f1

Share

Thumbs up Thumbs down

Re: Compiler errors after installation

It seems the 2022 version never got an official release, thus it seems the auto-updater was never implemented. You can fix this manually by following this quick guide:
http://www.ufe3d.com/forum/viewtopic.ph … 737#p13737

Like UFE? Please rate and review us on the Asset Store!
Questions about the Forum? Check out our Karma FAQ.
Don't forget to check our discord channel.

4 (edited by 3Dlunatic 2023-06-07 03:21:28)

Re: Compiler errors after installation

I got the same errors on Unity 2022.3.0 which is the latest LTS version. Tried to fix it manually by adding:

using UnityEngine.UNETModule;

to DefaultSearchMatchScreen.cs and that got rid of the six errors, but yielded this one error:

Assets\UFE\Engine\Scripts\UI_Templates\DefaultSearchMatchScreen.cs(4,19): error CS0234: The type or namespace name 'UNETModule' does not exist in the namespace 'UnityEngine' (are you missing an assembly reference?)

Any ideas what I should do now? Would it be better to simply use an old Unity version or is there an easy fix for this error? Thank you.

Share

Thumbs up Thumbs down

Re: Compiler errors after installation

I just tested the latest version of UFE Standard (2.5.1) and this error was not present. You might be using an outdated version of UFE.
You can check what version you have by opening the "ReadMe" file under the main UFE folder. To update your UFE version, go to Window -> Package Manager, locate UFE and click "Update" then "Reimport".

Like UFE? Please rate and review us on the Asset Store!
Questions about the Forum? Check out our Karma FAQ.
Don't forget to check our discord channel.

Re: Compiler errors after installation

Thanks for spending time on this, Mistermind. Actually, I am using UFE Standard 2.5.1 and I did not get the errors when I installed it on Unity 2021.3.0f1 but the errors did exist when I tried newer versions of Unity.

Which version of Unity did you try it on? There are a couple things which raised concern to me. After I clicked Import, an additional window popped up saying that importing the project will overwrite all these different things, which had an orange box next to them. I should've made a screenshot. I clicked okay and allowed it to overwrite. I don't remember what exactly they were, but I think it included the input system.

Another thing is, I was prompted to change the settings of my project to register the project with Unity, with a unique project number. I think it has to do with ads or multiplayer, not sure. All my projects until now were single player games, local only.

Thanks for helping, if you could tell me which version you were successful to install it on, I will do likewise. I'm really excited to create some custom characters for UFE 2.

Share

Thumbs up +1 Thumbs down

Re: Compiler errors after installation

Still getting this error, even in a fresh install, with LTS 2022. Can't really move on with my project due to this unfortunately. (version 2.5.1)

Share

Thumbs up Thumbs down

Re: Compiler errors after installation

I use unity 2021.3.6f1.

The newer unity version removed the Unet libraries I think that is the cause of those errors.

Share

Thumbs up Thumbs down