com.unity.netcode.gameobjects icon indicating copy to clipboard operation
com.unity.netcode.gameobjects copied to clipboard

Upgrading Multiplayer PlayMode to 1.3.0 - Assembly Loading Failure

Open jglassacc opened this issue 1 year ago • 1 comments

Description

After upgrading Multiplayer PlayMode 1.3.0, an assembly conflict exists causing non-compilation.

Assembly with name 'Unity.Multiplayer.Playmode.Common.Editor' already exists (Packages/com.unity.multiplayer.playmode/Common/Editor/Unity.Multiplayer.Playmode.Common.Editor.asmdef)

Assembly with name 'Unity.Multiplayer.Playmode.Common.Editor' already exists (Packages/com.unity.multiplayer.playmode/Common/Editor/Unity.Multiplayer.PlayMode.Common.Editor.asmdef)

Assembly with name 'Unity.Multiplayer.Playmode.Common.Runtime' already exists (Packages/com.unity.multiplayer.playmode/Common/Runtime/Unity.Multiplayer.Playmode.Common.Runtime.asmdef)

Assembly with name 'Unity.Multiplayer.Playmode.Common.Runtime' already exists (Packages/com.unity.multiplayer.playmode/Common/Runtime/Unity.Multiplayer.PlayMode.Common.Runtime.asmdef)

In the later part of each of the assemblies, there are duplicates: Unity.Multiplayer.Playmode.Common.Runtime.asmdef Unity.Multiplayer.PlayMode.Common.Runtime.asmdef

Reproduce Steps

  1. Open or Create a project in Unity 6 Preview
  2. Install Multiplayer Services 1.0.0 and Netcode for GameObjects 2.0.0
  3. Install the "Multiplayer Playmode" 1.2.2 package from the Package Manager
  4. Upgrade PlayMode to 1.3.0 through the Packagae Manager
  5. After installation, the error will be shown in the console

Environment

  • OS: Microsoft Windows 11 Pro (Version 10.0.22631 Build 22631)
  • Unity Version: 6000.0.22f1
  • Netcode Version: Netcode for GameObjects 2.0.0 >> Multiplayer Play Mode 1.3.0

Additional Context

Screenshot 2024-10-08 141331

jglassacc avatar Oct 08 '24 19:10 jglassacc

Some additional testing:

  • Creating an empty game project and installing NGO 2.0.0, PlayMode 1.3.0 and Services 1.0.0 DOES NOT cause this issue
  • If you however install PlayMode 1.2.2 and then upgrade it, it will happen
  • Removing the package and downgrading, fixes the issue
  • A subsequent upgrade will cause the issue again

ghost avatar Oct 08 '24 20:10 ghost

Hi @jglassacc Thank you for reporting the issue. Our team is currently working on a fix for it. Stay tuned for our next MPPM release!

fluong6 avatar Oct 21 '24 14:10 fluong6

Following up on this, it should be fine when downloading newer version (for example 1.4.0). I will close this issue but feel free to reopen if it somehow still persist

michalChrobot avatar Mar 17 '25 11:03 michalChrobot