FirstGearGames / FishNet

FishNet: Unity Networking Evolved.
Other
1.29k stars 136 forks source link

Fish Net Pro Asset Fails to Build Due to Missing Generator Namespace #727

Closed guitar80ep closed 1 month ago

guitar80ep commented 1 month ago

General Unity version: 2022.3.34f1 Fish-Networking version: 4.3.5R (Pro) Discord link: https://discord.com/channels/424284635074134018/1034477094731784302/1264724318659678329

Description I recently download Fish Net Pro from the Unity Asset Store to set up networking in my project. I imported the assets and immediately was met with compiler errors. The FishNet.CodeGen.Cecil build works just fine, but there are multiple compiler errors in the FishNet.Runtime:

Build started at 4:21 PM...
------ Build started: Project: GameKit.Dependencies, Configuration: Debug Any CPU ------
------ Build started: Project: FishNet.Runtime, Configuration: Debug Any CPU ------
C:\GameDev\Unity\GameDemo\Assets\FishNet\Runtime\Managing\NetworkManager.cs(225,17): error CS0234: The type or namespace name 'IgnorePostProcess' does not exist in the namespace 'Generator' (are you missing an assembly reference?)
C:\GameDev\Unity\GameDemo\Assets\FishNet\Runtime\Managing\NetworkManager.cs(227,17): error CS0234: The type or namespace name 'GenerateFull' does not exist in the namespace 'Generator' (are you missing an assembly reference?)
C:\GameDev\Unity\GameDemo\Assets\FishNet\Runtime\Managing\NetworkManager.cs(228,17): error CS0234: The type or namespace name 'IgnorePostProcess' does not exist in the namespace 'Generator' (are you missing an assembly reference?)
C:\GameDev\Unity\GameDemo\Assets\FishNet\Runtime\Managing\NetworkManager.cs(406,40): error CS0234: The type or namespace name 'GetDefaultPrefabObjects' does not exist in the namespace 'Generator' (are you missing an assembly reference?)
C:\GameDev\Unity\GameDemo\Assets\FishNet\Runtime\Editor\Configuring\ConfigurationEditor.cs(170,13): error CS0234: The type or namespace name 'GenerateFull' does not exist in the namespace 'Generator' (are you missing an assembly reference?)
C:\GameDev\Unity\GameDemo\Assets\FishNet\Runtime\Editor\Configuring\ConfigurationEditor.cs(194,37): error CS0234: The type or namespace name 'GetPrefabFiles' does not exist in the namespace 'Generator' (are you missing an assembly reference?)
C:\GameDev\Unity\GameDemo\Assets\FishNet\Runtime\Editor\Configuring\ConfigurationData.cs(32,62): error CS0234: The type or namespace name 'GetPlatformPath' does not exist in the namespace 'Generator' (are you missing an assembly reference?)
C:\GameDev\Unity\GameDemo\Assets\FishNet\Runtime\Editor\CodeStripping.cs(73,13): error CS0234: The type or namespace name 'IgnorePostProcess' does not exist in the namespace 'Generator' (are you missing an assembly reference?)
C:\GameDev\Unity\GameDemo\Assets\FishNet\Runtime\Editor\CodeStripping.cs(74,13): error CS0234: The type or namespace name 'GenerateFull' does not exist in the namespace 'Generator' (are you missing an assembly reference?)
C:\GameDev\Unity\GameDemo\Assets\FishNet\Runtime\Editor\CodeStripping.cs(105,13): error CS0234: The type or namespace name 'IgnorePostProcess' does not exist in the namespace 'Generator' (are you missing an assembly reference?)
C:\GameDev\Unity\GameDemo\Assets\FishNet\Runtime\Utility\ChildTransformTickSmoother.cs(150,22): warning CS0649: Field 'ChildTransformTickSmoother._ownerOnPretick' is never assigned to, and will always have its default value false
C:\GameDev\Unity\GameDemo\Assets\FishNet\Runtime\Managing\Scened\SceneManager.cs(176,23): warning CS0649: Field 'SceneManager._movedObjectsScene' is never assigned to, and will always have its default value 
C:\GameDev\Unity\GameDemo\Assets\FishNet\Runtime\Plugins\Yak\Core\ServerSocket.cs(37,30): warning CS0649: Field 'ServerSocket._client' is never assigned to, and will always have its default value null
C:\GameDev\Unity\GameDemo\Assets\FishNet\Runtime\Plugins\Yak\Yak.cs(19,37): warning CS0649: Field 'Yak._server' is never assigned to, and will always have its default value null
------ Build started: Project: FishNet.Demos, Configuration: Debug Any CPU ------
========== Build: 2 succeeded or up-to-date, 1 failed, 0 skipped ==========
========== Build completed at 4:21 PM and took 00.246 seconds ==========

I have tried to entirely reload my project, reload libraries and even start from a blank game scene - but the problem still persists. I've heard a lot of good things about Fish Net... so I'm excited to get it working to demo.

I also get a second error just in the Unity console (not in Visual Studio):

Failed to find entry-points:
Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: 'Unity.FishNet.Codegen, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' ---> System.Exception: Failed to resolve assembly 'Unity.FishNet.Codegen, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' in directories: C:\Program Files\Unity\Hub\Editor\2022.3.34f1\Editor\Data\MonoBleedingEdge\lib\mono\unityjit-win32
...

Replication

  1. New Game Scene in Unity Project on Windows 10 w/ Unity 2022.3 LTE.
  2. Go to Asset Store in Unity
  3. Download and Import (All) for Fish Net Pro 4.3.5R.
  4. See Unity Console for compiler errors.
  5. Load Visual Studio and build. (FishNet.CodeGen compiles successfully, but Runtime and Demo fail.)
  6. Clean Library / Packages and try again (same error).
  7. Reboot computer (same error).
  8. Redownload from Unity Asset Store (same error).
  9. Load the Demo Scene from Fish Net (same error).

(Note: I originally had Netcode for Gameobjects installed, but I have thoroughly cleaned it out and completely reloaded the project from my Git repo to make sure it's gone).

Expected behavior Load from Unity Asset Store and no compiler errors. Load the Demo scene provided with Fish Net to try out the behavior.

Screenshots Happy to add, but don't think it will add more value than the error above :)

FirstGearGames commented 1 month ago

This error is usually seen when previously having netcode for game objects installed. It doesn't just install to your assets folder, I believe it adds something to packages as well. Please double check to make sure it's gone. I'll double check the asset store package, especially being the first Pro release up there, but first thoughts are NGO.

On Sun, Jul 21, 2024, 7:57 PM John Jackson @.***> wrote:

General Unity version: 2022.3.34f1 Fish-Networking version: 4.3.5R (Pro) Discord link: https://discord.com/channels/424284635074134018/1034477094731784302/1264724318659678329

Description I recently download Fish Net Pro from the Unity Asset Store to set up networking in my project. I imported the assets and immediately was met with compiler errors. The FishNet.CodeGen.Cecil build works just fine, but there are multiple compiler errors in the FishNet.Runtime:

Build started at 4:21 PM... ------ Build started: Project: GameKit.Dependencies, Configuration: Debug Any CPU ------ ------ Build started: Project: FishNet.Runtime, Configuration: Debug Any CPU ------ C:\GameDev\Unity\GameDemo\Assets\FishNet\Runtime\Managing\NetworkManager.cs(225,17): error CS0234: The type or namespace name 'IgnorePostProcess' does not exist in the namespace 'Generator' (are you missing an assembly reference?) C:\GameDev\Unity\GameDemo\Assets\FishNet\Runtime\Managing\NetworkManager.cs(227,17): error CS0234: The type or namespace name 'GenerateFull' does not exist in the namespace 'Generator' (are you missing an assembly reference?) C:\GameDev\Unity\GameDemo\Assets\FishNet\Runtime\Managing\NetworkManager.cs(228,17): error CS0234: The type or namespace name 'IgnorePostProcess' does not exist in the namespace 'Generator' (are you missing an assembly reference?) C:\GameDev\Unity\GameDemo\Assets\FishNet\Runtime\Managing\NetworkManager.cs(406,40): error CS0234: The type or namespace name 'GetDefaultPrefabObjects' does not exist in the namespace 'Generator' (are you missing an assembly reference?) C:\GameDev\Unity\GameDemo\Assets\FishNet\Runtime\Editor\Configuring\ConfigurationEditor.cs(170,13): error CS0234: The type or namespace name 'GenerateFull' does not exist in the namespace 'Generator' (are you missing an assembly reference?) C:\GameDev\Unity\GameDemo\Assets\FishNet\Runtime\Editor\Configuring\ConfigurationEditor.cs(194,37): error CS0234: The type or namespace name 'GetPrefabFiles' does not exist in the namespace 'Generator' (are you missing an assembly reference?) C:\GameDev\Unity\GameDemo\Assets\FishNet\Runtime\Editor\Configuring\ConfigurationData.cs(32,62): error CS0234: The type or namespace name 'GetPlatformPath' does not exist in the namespace 'Generator' (are you missing an assembly reference?) C:\GameDev\Unity\GameDemo\Assets\FishNet\Runtime\Editor\CodeStripping.cs(73,13): error CS0234: The type or namespace name 'IgnorePostProcess' does not exist in the namespace 'Generator' (are you missing an assembly reference?) C:\GameDev\Unity\GameDemo\Assets\FishNet\Runtime\Editor\CodeStripping.cs(74,13): error CS0234: The type or namespace name 'GenerateFull' does not exist in the namespace 'Generator' (are you missing an assembly reference?) C:\GameDev\Unity\GameDemo\Assets\FishNet\Runtime\Editor\CodeStripping.cs(105,13): error CS0234: The type or namespace name 'IgnorePostProcess' does not exist in the namespace 'Generator' (are you missing an assembly reference?) C:\GameDev\Unity\GameDemo\Assets\FishNet\Runtime\Utility\ChildTransformTickSmoother.cs(150,22): warning CS0649: Field 'ChildTransformTickSmoother._ownerOnPretick' is never assigned to, and will always have its default value false C:\GameDev\Unity\GameDemo\Assets\FishNet\Runtime\Managing\Scened\SceneManager.cs(176,23): warning CS0649: Field 'SceneManager._movedObjectsScene' is never assigned to, and will always have its default value C:\GameDev\Unity\GameDemo\Assets\FishNet\Runtime\Plugins\Yak\Core\ServerSocket.cs(37,30): warning CS0649: Field 'ServerSocket._client' is never assigned to, and will always have its default value null C:\GameDev\Unity\GameDemo\Assets\FishNet\Runtime\Plugins\Yak\Yak.cs(19,37): warning CS0649: Field 'Yak._server' is never assigned to, and will always have its default value null ------ Build started: Project: FishNet.Demos, Configuration: Debug Any CPU ------ ========== Build: 2 succeeded or up-to-date, 1 failed, 0 skipped ========== ========== Build completed at 4:21 PM and took 00.246 seconds ==========

I have tried to entirely reload my project, reload libraries and even start from a blank game scene - but the problem still persists. I've heard a lot of good things about Fish Net... so I'm excited to get it working to demo.

I also get a second error just in the Unity console (not in Visual Studio):

Failed to find entry-points: Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: 'Unity.FishNet.Codegen, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' ---> System.Exception: Failed to resolve assembly 'Unity.FishNet.Codegen, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' in directories: C:\Program Files\Unity\Hub\Editor\2022.3.34f1\Editor\Data\MonoBleedingEdge\lib\mono\unityjit-win32 ...

Replication

  1. New Game Scene in Unity Project on Windows 10 w/ Unity 2022.3 LTE.
  2. Go to Asset Store in Unity
  3. Download and Import (All) for Fish Net Pro 4.3.5R.
  4. See Unity Console for compiler errors.
  5. Load Visual Studio and build. (FishNet.CodeGen compiles successfully, but Runtime and Demo fail.)
  6. Clean Library / Packages and try again (same error).
  7. Reboot computer (same error).
  8. Redownload from Unity Asset Store (same error).
  9. Load the Demo Scene from Fish Net (same error).

(Note: I originally had Netcode for Gameobjects installed, but I have thoroughly cleaned it out and completely reloaded the project from my Git repo to make sure it's gone).

Expected behavior Load from Unity Asset Store and no compiler errors. Load the Demo scene provided with Fish Net to try out the behavior.

Screenshots Happy to add, but don't think it will add more value than the error above :)

— Reply to this email directly, view it on GitHub https://github.com/FirstGearGames/FishNet/issues/727, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGPJC3RBUCZOUNLHSGSWPPLZNRDHDAVCNFSM6AAAAABLHITJ46VHI2DSMVQWIX3LMV43ASLTON2WKOZSGQZDCNRVHAYTSMI . You are receiving this because you are subscribed to this thread.Message ID: @.***>