playMaker

Author Topic: Error when building my project [SOLVED]  (Read 178 times)

MarkD

  • Junior Playmaker
  • **
  • Posts: 76
    • View Profile
Error when building my project [SOLVED]
« on: September 10, 2017, 06:48:33 PM »
Hey guys,

I'm getting compiler errors whenever I try to build my project.  My project is fairly simple right now, it contains the latest version of Playmaker and Unity (both updated today to be 100% sure), PlaymakerArraymaker, Playmaker PUN, and Playmaker uGui.

Here are the errors I'm getting:

error CS1704: An assembly with the same name `PlayMaker' has already been imported. Consider removing one of the references or sign the assembly
Assets/Plugins/PlayMaker/PlayMaker.dll (Location of the symbol related to previous error)
Assets/Plugins/PlayMaker/Metro/PlayMaker.dll (Location of the symbol related to previous error)
error CS1704: An assembly with the same name `Photon3Unity3D' has already been imported. Consider removing one of the references or sign the assembly
Assets/Plugins/Photon3Unity3D.dll (Location of the symbol related to previous error)
Assets/Plugins/WP8/Photon3Unity3D.dll (Location of the symbol related to previous error)



Mono.CompilerServices.SymbolWriter.MonoSymbolFileException: Symbol file `C:\Users\markd\Documents\Unity - Without a Trace\Assets\Plugins\PlayMaker\Metro\PlayMaker.dll.mdb' does not match assembly
  at Mono.CompilerServices.SymbolWriter.MonoSymbolFile.ReadSymbolFile (System.String mdbFilename, System.Guid assemblyGuid) [0x00029] in <39c76d15c45949149ea6d2822fe0d4f5>:0
  at Mono.Cecil.Mdb.MdbReaderProvider.GetSymbolReader (Mono.Cecil.ModuleDefinition module, System.String fileName) [0x00012] in <39c76d15c45949149ea6d2822fe0d4f5>:0
  at Mono.Cecil.ModuleReader.ReadSymbols (Mono.Cecil.ModuleDefinition module, Mono.Cecil.ReaderParameters parameters) [0x00032] in <aa9db9129f9d4243a99d025330e76d74>:0
  at Mono.Cecil.ModuleReader.CreateModuleFrom (Mono.Cecil.PE.Image image, Mono.Cecil.ReaderParameters parameters) [0x0007b] in <aa9db9129f9d4243a99d025330e76d74>:0
  at Mono.Cecil.ModuleDefinition.ReadModule (System.IO.Stream stream, Mono.Cecil.ReaderParameters parameters) [0x00028] in <aa9db9129f9d4243a99d025330e76d74>:0
  at Mono.Cecil.AssemblyDefinition.ReadAssembly (System.IO.Stream stream, Mono.Cecil.ReaderParameters parameters) [0x00000] in <aa9db9129f9d4243a99d025330e76d74>:0
  at AssemblyUpdater.Core.AssemblyUpdaterContext.ReadAssembly (System.String assemblyPath, APIUpdater.Framework.Log.IAPIUpdaterListener listener, System.IO.FileAccess mode, System.String[] searchPaths) [0x0007c] in <2e2e6e53129e4ba1874d2ad0eec22c59>:0
  at AssemblyUpdater.Core.AssemblyUpdaterContext.From (System.String assemblyPath, APIUpdater.Framework.Configuration.IConfigurationProvider configuration, System.String[] assemblySearchPaths, AssemblyUpdater.Core.UpdaterMode mode, APIUpdater.Framework.Log.IAPIUpdaterListener listener) [0x0002b] in <2e2e6e53129e4ba1874d2ad0eec22c59>:0
  at AssemblyUpdater.Core.AssemblyUpdaterContext.From (System.String assemblyPath, System.String[] assemblySearchPaths, AssemblyUpdater.Core.UpdaterMode mode, APIUpdater.Framework.Log.IAPIUpdaterListener listener) [0x00001] in <2e2e6e53129e4ba1874d2ad0eec22c59>:0
  at AssemblyUpdater.Application.Program.CheckForObsoleteAPIUsage (AssemblyUpdater.Application.CommandLineSpec config) [0x00013] in <2e2e6e53129e4ba1874d2ad0eec22c59>:0
  at AssemblyUpdater.Application.Program.Main (System.String[] args) [0x00057] in <2e2e6e53129e4ba1874d2ad0eec22c59>:0
UnityEditor.Scripting.APIUpdaterHelper:DoesAssemblyRequireUpgrade(String)

There are a couple of more, but there isn't much information on those.  I can include them if that would be helpful.

I suspect this is somehow related to Playmaker Photo package I added, but
 haven't confirmed that yet.

Anyone have any ideas?


« Last Edit: September 12, 2017, 08:33:54 AM by MarkD »

MarkD

  • Junior Playmaker
  • **
  • Posts: 76
    • View Profile
Re: Error when building my project
« Reply #1 on: September 10, 2017, 07:55:45 PM »
So I just removed everything and rebuilt the project in this order:

Playmaker
Arraymaker
uGui

Then I tried building and it works perfectly.

When I add PhotonPUN I get the errors above.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 2305
    • View Profile
    • jinxtergames
Re: Error when building my project
« Reply #2 on: September 10, 2017, 08:01:07 PM »
Hi,So with a clean project?
i will try on my end.

MarkD

  • Junior Playmaker
  • **
  • Posts: 76
    • View Profile
Re: Error when building my project
« Reply #3 on: September 10, 2017, 10:28:50 PM »
Hey djay,

So your reply made me realize I hadn't actually tried it with a totally clean install so I did just that.  Similar results, but not exactly the same errors.  The end result is the same, I can't build my project.

So here are my steps:
Made a new project using latest version of Unity (2017.1.1f1)
Downloaded and installed latest Playmaker version (1.8.5.f8)
Downloaded and installed Arraymaker
Tested build in an empty test scene, no problems
Downloaded and installed uGui for Playmaker
Tested build in an empty test scene, had to correct one obsolete error in a uGui script, no problems after that
Downloaded and installed PlayMakerPUN.unitypackage
Errors found.

This time, I got these two errors:


Mono.CompilerServices.SymbolWriter.MonoSymbolFileException: Symbol file `C:\Users\markd\Documents\New Unity Project - Testtest\Assets\Plugins\PlayMaker\Metro\PlayMaker.dll.mdb' does not match assembly
  at Mono.CompilerServices.SymbolWriter.MonoSymbolFile.ReadSymbolFile (System.String mdbFilename, System.Guid assemblyGuid) [0x00029] in <39c76d15c45949149ea6d2822fe0d4f5>:0
  at Mono.Cecil.Mdb.MdbReaderProvider.GetSymbolReader (Mono.Cecil.ModuleDefinition module, System.String fileName) [0x00012] in <39c76d15c45949149ea6d2822fe0d4f5>:0
  at Mono.Cecil.ModuleReader.ReadSymbols (Mono.Cecil.ModuleDefinition module, Mono.Cecil.ReaderParameters parameters) [0x00032] in <aa9db9129f9d4243a99d025330e76d74>:0
  at Mono.Cecil.ModuleReader.CreateModuleFrom (Mono.Cecil.PE.Image image, Mono.Cecil.ReaderParameters parameters) [0x0007b] in <aa9db9129f9d4243a99d025330e76d74>:0
  at Mono.Cecil.ModuleDefinition.ReadModule (System.IO.Stream stream, Mono.Cecil.ReaderParameters parameters) [0x00028] in <aa9db9129f9d4243a99d025330e76d74>:0
  at Mono.Cecil.AssemblyDefinition.ReadAssembly (System.IO.Stream stream, Mono.Cecil.ReaderParameters parameters) [0x00000] in <aa9db9129f9d4243a99d025330e76d74>:0
  at AssemblyUpdater.Core.AssemblyUpdaterContext.ReadAssembly (System.String assemblyPath, APIUpdater.Framework.Log.IAPIUpdaterListener listener, System.IO.FileAccess mode, System.String[] searchPaths) [0x0007c] in <2e2e6e53129e4ba1874d2ad0eec22c59>:0
  at AssemblyUpdater.Core.AssemblyUpdaterContext.From (System.String assemblyPath, APIUpdater.Framework.Configuration.IConfigurationProvider configuration, System.String[] assemblySearchPaths, AssemblyUpdater.Core.UpdaterMode mode, APIUpdater.Framework.Log.IAPIUpdaterListener listener) [0x0002b] in <2e2e6e53129e4ba1874d2ad0eec22c59>:0
  at AssemblyUpdater.Core.AssemblyUpdaterContext.From (System.String assemblyPath, System.String[] assemblySearchPaths, AssemblyUpdater.Core.UpdaterMode mode, APIUpdater.Framework.Log.IAPIUpdaterListener listener) [0x00001] in <2e2e6e53129e4ba1874d2ad0eec22c59>:0
  at AssemblyUpdater.Application.Program.CheckForObsoleteAPIUsage (AssemblyUpdater.Application.CommandLineSpec config) [0x00013] in <2e2e6e53129e4ba1874d2ad0eec22c59>:0
  at AssemblyUpdater.Application.Program.Main (System.String[] args) [0x00057] in <2e2e6e53129e4ba1874d2ad0eec22c59>:0
UnityEditor.Scripting.APIUpdaterHelper:DoesAssemblyRequireUpgrade(String)

and


System.InvalidOperationException: Operation is not valid due to the current state of the object.
  at Mono.Cecil.ModuleDefinition.ProcessDebugHeader () [0x00021] in <aa9db9129f9d4243a99d025330e76d74>:0
  at Mono.Cecil.ModuleDefinition.ReadSymbols (Mono.Cecil.Cil.ISymbolReader reader) [0x00015] in <aa9db9129f9d4243a99d025330e76d74>:0
  at Mono.Cecil.ModuleReader.ReadSymbols (Mono.Cecil.ModuleDefinition module, Mono.Cecil.ReaderParameters parameters) [0x00047] in <aa9db9129f9d4243a99d025330e76d74>:0
  at Mono.Cecil.ModuleReader.CreateModuleFrom (Mono.Cecil.PE.Image image, Mono.Cecil.ReaderParameters parameters) [0x0007b] in <aa9db9129f9d4243a99d025330e76d74>:0
  at Mono.Cecil.ModuleDefinition.ReadModule (System.IO.Stream stream, Mono.Cecil.ReaderParameters parameters) [0x00028] in <aa9db9129f9d4243a99d025330e76d74>:0
  at Mono.Cecil.AssemblyDefinition.ReadAssembly (System.IO.Stream stream, Mono.Cecil.ReaderParameters parameters) [0x00000] in <aa9db9129f9d4243a99d025330e76d74>:0
  at AssemblyUpdater.Core.AssemblyUpdaterContext.ReadAssembly (System.String assemblyPath, APIUpdater.Framework.Log.IAPIUpdaterListener listener, System.IO.FileAccess mode, System.String[] searchPaths) [0x0007c] in <2e2e6e53129e4ba1874d2ad0eec22c59>:0
  at AssemblyUpdater.Core.AssemblyUpdaterContext.From (System.String assemblyPath, APIUpdater.Framework.Configuration.IConfigurationProvider configuration, System.String[] assemblySearchPaths, AssemblyUpdater.Core.UpdaterMode mode, APIUpdater.Framework.Log.IAPIUpdaterListener listener) [0x0002b] in <2e2e6e53129e4ba1874d2ad0eec22c59>:0
  at AssemblyUpdater.Core.AssemblyUpdaterContext.From (System.String assemblyPath, System.String[] assemblySearchPaths, AssemblyUpdater.Core.UpdaterMode mode, APIUpdater.Framework.Log.IAPIUpdaterListener listener) [0x00001] in <2e2e6e53129e4ba1874d2ad0eec22c59>:0
  at AssemblyUpdater.Application.Program.CheckForObsoleteAPIUsage (AssemblyUpdater.Application.CommandLineSpec config) [0x00013] in <2e2e6e53129e4ba1874d2ad0eec22c59>:0
  at AssemblyUpdater.Application.Program.Main (System.String[] args) [0x00057] in <2e2e6e53129e4ba1874d2ad0eec22c59>:0
UnityEditor.Scripting.APIUpdaterHelper:DoesAssemblyRequireUpgrade(String)



djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 2305
    • View Profile
    • jinxtergames
Re: Error when building my project
« Reply #4 on: September 10, 2017, 11:12:33 PM »
Hi,
can you check this :
in the project tab goto :
Plugins/Playmaker/Metro.
on one of the 3 playmaker files you will get "playmaker Import Settings" in the inspector.

uncheck all and if WSAPlayer exists check that one. (for pc/mac/linux build)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12351
  • Official Playmaker Support
    • View Profile
Re: Error when building my project
« Reply #5 on: September 10, 2017, 11:31:31 PM »
Hi,

 I think you are getting mixed up with which version of PhotonPUN you get on the Ecosystem, there is one for Unity 4 and one for Unity 5.

 Make sure you get the right one. Unity 5 version will require you to also import Photon from the asset store as the version for Unity 4 includes it.

 Bye,

 Jean

MarkD

  • Junior Playmaker
  • **
  • Posts: 76
    • View Profile
Re: Error when building my project
« Reply #6 on: September 11, 2017, 07:33:58 PM »
Thanks guys.

Djaydino - I found the file you mentioned, all of mine were unchecked and WSAPlayer wasn't an option.

Jean - I haven't been using the Ecosystem.  Rather, I've tried the links found on this page: https://hutonggames.fogbugz.com/default.asp?W928

The first link PlayMakerPUN.unitypackage is the one that I've had the most success with and the one that I've used in the steps above.  But I also tried the one marked for Unity 5 and I get a bunch of errors right off the bat.

Maybe that's the problem?  I SHOULD be getting the one labled 5 but I'm missing some other step to get it working?  If that's the case, what am supposed to do exactly?

Thanks again!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12351
  • Official Playmaker Support
    • View Profile
Re: Error when building my project
« Reply #7 on: September 12, 2017, 12:55:14 AM »
Hi,

 you need to install photon first, maybe that will help, then you get the punPlaymaker from the ecosystem for Unity 5.

 Bye,

 Jean

MarkD

  • Junior Playmaker
  • **
  • Posts: 76
    • View Profile
Re: Error when building my project [SOLVED]
« Reply #8 on: September 12, 2017, 08:34:27 AM »
Gah - that's what it was.  Thanks guys!