s1sw / boneworks-mp

Apache License 2.0
24 stars 12 forks source link

Boneworks MP does not work on Windows 11. #13

Open embedvr opened 3 years ago

embedvr commented 3 years ago

Hello,

With the release of the Windows 11 insider builds, I had installed Windows 11 and it seems that Boneworks MP cannot run at all. I do hope this is somehow fixable.

Latest.log:

[15:54:19.708] ------------------------------
[15:54:19.710] MelonLoader v0.3.0 ALPHA Pre-Release
[15:54:19.714] Hash Code: 26022
[15:54:19.716] OS: Windows 10
[15:54:19.717] ------------------------------
[15:54:19.720] Name: BONEWORKS
[15:54:19.721] Developer: Stress Level Zero
[15:54:19.724] Unity Version: 2018.4.10
[15:54:19.726] Type: Il2Cpp
[15:54:19.727] Arch: x64
[15:54:19.729] ------------------------------

[15:54:20.093] Contacting RemoteAPI...
[15:54:20.299] ForceDumperVersion = null
[15:54:20.301] ForceUnhollowerVersion = null
[15:54:20.302] ObfuscationRegex = null
[15:54:20.303] MappingURL = null
[15:54:20.304] MappingFileSHA512 = null
[15:54:20.347] Unity Dependencies are up to date. No Download Needed.
[15:54:20.349] Il2CppDumper is up to date. No Download Needed.
[15:54:20.349] Il2CppAssemblyUnhollower is up to date. No Download Needed.
[15:54:20.350] Checking GameAssembly...
[15:54:20.351] Old: 0fd6c439b2973253b1784c99f8784e99
[15:54:20.352] Current: 0fd6c439b2973253b1784c99f8784e99
[15:54:20.352] Assembly is up to date. No Generation Needed.

[15:54:20.710] Preferences Loaded!
[15:54:20.717] Loading Plugins...

[15:54:20.724] ------------------------------
[15:54:20.726] No Plugins Loaded!
[15:54:20.728] ------------------------------

[15:54:23.535] Loading Support Module...

[15:54:23.768] Loading Mods...

[15:54:23.865] ------------------------------
[15:54:23.884] 2 Mods Loaded
[15:54:23.898] ------------------------------
[15:54:23.901] Boneworks Modding Toolkit v0.6.6
[15:54:23.903] by YeOldWarChap / Chromium / SomeoneSomewhere (BoneHook)
[15:54:23.906] SHA256 Hash: 0620e1e37c58044d253c2553f6edb6048cb5f4b9add8f9bea38e4036f6b4b4bf
[15:54:23.907] ------------------------------
[15:54:23.908] Multiplayer Mod - PVP v0.12.0
[15:54:23.911] by Someone Somewhere, zCubed, Maranara
[15:54:23.915] SHA256 Hash: 4c7d10014f1f41db98dd0b0863dcc00635bbf372413dbcb0da769517d0677344
[15:54:23.917] ------------------------------
[15:54:24.033] [Boneworks_Modding_Toolkit] BoneHook successfully initialized.
[15:54:26.484] [Multiplayer_Mod_-_PVP] [ERROR] System.TypeLoadException: Could not resolve type with token 01000037 (from typeref, class/assembly Facepunch.Steamworks.SteamId, Facepunch.Steamworks.Win64, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null)

  at MelonLoader.MelonHandler.OnApplicationStart_Mods () [0x00023] in <61bd2bb7fbe24a28bc977e05ef482f41>:0 
[15:59:11.795] Preferences Saved!
s1sw commented 3 years ago

Thanks for testing this on Windows 11, but this appears to be an installation issue rather than an incompatibility. It should work if you manually copy the Facepunch.Steamworks.dll file from MelonLoader/Managed in the original zip to your Mods folder.

embedvr commented 3 years ago

I am not quite sure what you mean by that, but I tried my best to understand it.

I attempted copying the Facepunch.Steamworks.Win64.dll from the MelonLoader/Managed folder to the Mods folder in my Boneworks directory, but it doesn't do anything except tell me that it isn't a valid MelonLoader mod.

[10:57:25.809] [ERROR] No MelonInfoAttribute Found in D:\SteamGames\steamapps\common\BONEWORKS\BONEWORKS\Mods\Facepunch.Steamworks.Win64.dll!

Now, last night I got farther by building from source. It seemed to be working except when I pressed S to create a server I got a different issue.

[19:28:58.529] [Multiplayer_Mod_-_PVP] [ERROR] System.NullReferenceException: Object reference not set to an instance of an object
  at MultiplayerMod.Core.MultiplayerUI.SetState (MultiplayerMod.Core.MultiplayerUIState uiState) [0x00008] in <58cc35e4c35e48fd85f582bc7ca98610>:0
  at MultiplayerMod.Core.Server.StartServer () [0x00001] in <58cc35e4c35e48fd85f582bc7ca98610>:0
  at MultiplayerMod.MultiplayerMod.OnUpdate () [0x0004e] in <58cc35e4c35e48fd85f582bc7ca98610>:0
  at MelonLoader.MelonHandler.OnUpdate () [0x00070] in <61bd2bb7fbe24a28bc977e05ef482f41>:0

I have put the latest.log into paste.gg, https://paste.gg/p/anonymous/86b1101265084a17be9f0fe7077e0740

s1sw commented 3 years ago

Yeah, if you put the Facepunch DLL into mods MelonLoader complains on load, but it also correctly loads the DLL when the mod needs it. The default location doesn't work because MelonLoader now clears the MelonLoader directory whenever it regenerates the assemblies, whereas in the mod directory it complains because it's not a mod but loads it correctly anyway.

The error you get when building from source is due to using the old UI AssetBundle with the GitHub build. I'll upload it shortly and you can try again, but the old version should still work fine when moving the DLL.

embedvr commented 3 years ago

When putting the Facepunch DLL into the mods folder I got the same error as I did with it in the default location, just with the extra MelonLoader input saying its not a mod. I've only been able to get somewhat close using the Github Build. I'll be sure to test it out when the updates are pushed. ^-^