spacechase0 / StardewValleyMP

Temporary solution for multiplayer until official multiplayer is released.
MIT License
38 stars 18 forks source link

Support OSX #41

Closed davisben85 closed 7 years ago

davisben85 commented 7 years ago

It would be great if this mod worked with OS X, in addition to the Windows support. If it is supported, can you point to instructions on how to get it to function? I've tried using the current mod, with SMAPI, and it fails to load.

Here's the stack: [11:21:06.845 PM] Found Manifest: /Users/localuser/Library/Application Support/Steam/steamapps/common/Stardew Valley/Contents/MacOS/Mods/StardewValleyMP/manifest.json [11:21:07.024 PM] Created psconfigs directory @/Users/localuser/Library/Application Support/Steam/steamapps/common/Stardew Valley/Contents/MacOS/Mods/StardewValleyMP/psconfigs [11:21:07.030 PM] Failed to load mod '/Users/localuser/Library/Application Support/Steam/steamapps/common/Stardew Valley/Contents/MacOS/Mods/StardewValleyMP/StardewValleyMP.dll'. Exception details: System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded. at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (System.Reflection.Assembly,bool) at System.Reflection.Assembly.GetTypes () <0x117a52f20 + 0x00015> in <filename unknown>:0 at System.Reflection.Assembly+<>c__Iterator0.MoveNext () <0x117a52bd0 + 0x00051> in <filename unknown>:0 at System.Linq.Enumerable.Count[TSource] (IEnumerable1 source, System.Func2 predicate) <0x117a52450 + 0x000d3> in <filename unknown>:0 at StardewModdingAPI.Program.LoadMods () <0x116adfca0 + 0x00787> in <filename unknown>:0

davisben85 commented 7 years ago

Here's more from the stack:

System.TypeLoadException: Could not load type 'StardewValleyMP.Packets.ObjectUpdatePacket`1[TYPE]' from assembly 'StardewValleyMP, Version=0.2.10.21676, Culture=neutral, PublicKeyToken=null'.

System.IO.FileNotFoundException: Could not load file or assembly or one of its dependencies. File name: 'Stardew Valley, Version=1.0.6124.25603, Culture=neutral, PublicKeyToken=null'

System.IO.FileNotFoundException: Could not load file or assembly or one of its dependencies. File name: 'Stardew Valley, Version=1.0.6124.25603, Culture=neutral, PublicKeyToken=null'

System.IO.FileNotFoundException: Could not load file or assembly or one of its dependencies. File name: 'Stardew Valley, Version=1.0.6124.25603, Culture=neutral, PublicKeyToken=null'

System.IO.FileNotFoundException: Could not load file or assembly or one of its dependencies. File name: 'Stardew Valley, Version=1.0.6124.25603, Culture=neutral, PublicKeyToken=null'

System.IO.FileNotFoundException: Could not load file or assembly or one of its dependencies. File name: 'Stardew Valley, Version=1.0.6124.25603, Culture=neutral, PublicKeyToken=null'

System.IO.FileNotFoundException: Could not load file or assembly or one of its dependencies. File name: 'Stardew Valley, Version=1.0.6124.25603, Culture=neutral, PublicKeyToken=null'

System.IO.FileNotFoundException: Could not load file or assembly or one of its dependencies. File name: 'Stardew Valley, Version=1.0.6124.25603, Culture=neutral, PublicKeyToken=null'

davisben85 commented 7 years ago

This looks promising: https://github.com/Pathoschild/Stardew.ModBuildConfig

Is it possible that someone with better Nuget experience implement these changes? If not, I am setting up an environment to work on it, but may not be able to get it working myself.

spacechase0 commented 7 years ago

This won't be necessary in the near future. See here.