Eimaen / JustAsPlannedMelon

Muse Dash DLC unlocking meme for Melon Loader. Maybe you shouldn't pay for pixel Reimu?
GNU General Public License v3.0
7 stars 1 forks source link

Steamwork.net issue #2

Open AsrieltheGoat opened 3 months ago

AsrieltheGoat commented 3 months ago

The mod doesn't work on MelonLoader 0.6.1 (Come from MDMC)

...
[13:58:13.615] Registered mono type AccuracyIndicator.Indicator.VictoryIndicator in il2cpp domain
[13:58:13.663] Failed to load all types in assembly Steamworks.NET, Version=2024.8.0.0, Culture=neutral, PublicKeyToken=null due to: Unable to load one or more of the requested types.
Could not load type 'OptionValue' from assembly 'Steamworks.NET, Version=2024.8.0.0, Culture=neutral, PublicKeyToken=null' because it contains an object field at offset 0 that is incorrectly aligned or overlapped by a non-object field.
Could not load type 'OptionValue' from assembly 'Steamworks.NET, Version=2024.8.0.0, Culture=neutral, PublicKeyToken=null' because it contains an object field at offset 0 that is incorrectly aligned or overlapped by a non-object field.
System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types.
Could not load type 'OptionValue' from assembly 'Steamworks.NET, Version=2024.8.0.0, Culture=neutral, PublicKeyToken=null' because it contains an object field at offset 0 that is incorrectly aligned or overlapped by a non-object field.
Could not load type 'OptionValue' from assembly 'Steamworks.NET, Version=2024.8.0.0, Culture=neutral, PublicKeyToken=null' because it contains an object field at offset 0 that is incorrectly aligned or overlapped by a non-object field.
   at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
   at System.Reflection.Assembly.GetTypes()
   at MelonLoader.MelonUtils.GetValidTypes(Assembly asm, LemonFunc`2 predicate) in D:\a\MelonLoader\MelonLoader\MelonLoader\MelonUtils.cs:line 257
System.TypeLoadException: Could not load type 'OptionValue' from assembly 'Steamworks.NET, Version=2024.8.0.0, Culture=neutral, PublicKeyToken=null' because it contains an object field at offset 0 that is incorrectly aligned or overlapped by a non-object field.
System.TypeLoadException: Could not load type 'OptionValue' from assembly 'Steamworks.NET, Version=2024.8.0.0, Culture=neutral, PublicKeyToken=null' because it contains an object field at offset 0 that is incorrectly aligned or overlapped by a non-object field.
[13:58:15.219] [JustAsPlannedMelon] System.IO.FileNotFoundException: Could not load file or assembly 'com.rlabrecque.steamworks.net, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
File name: 'com.rlabrecque.steamworks.net, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'
   at System.Reflection.CustomAttribute._CreateCaObject(RuntimeModule pModule, RuntimeType type, IRuntimeMethodInfo pCtor, Byte** ppBlob, Byte* pEndBlob, Int32* pcNamedArgs)
   at System.Reflection.CustomAttribute.CreateCaObject(RuntimeModule module, RuntimeType type, IRuntimeMethodInfo ctor, IntPtr& blob, IntPtr blobEnd, Int32& namedArgs)
   at System.Reflection.CustomAttribute.AddCustomAttributes(ListBuilder`1& attributes, RuntimeModule decoratedModule, Int32 decoratedMetadataToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, ListBuilder`1 derivedAttributes)
   at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeType type, RuntimeType caType, Boolean inherit)
   at System.RuntimeType.GetCustomAttributes(Boolean inherit)
   at HarmonyLib.HarmonyMethodExtensions.GetFromType(Type type)
   at HarmonyLib.PatchClassProcessor..ctor(Harmony instance, Type type, Boolean allowUnannotatedType)
   at HarmonyLib.PatchClassProcessor..ctor(Harmony instance, Type type)
   at HarmonyLib.Harmony.CreateClassProcessor(Type type)
   at HarmonyLib.Harmony.<PatchAll>b__11_0(Type type)
   at HarmonyLib.CollectionExtensions.Do[T](IEnumerable`1 sequence, Action`1 action)
   at HarmonyLib.Harmony.PatchAll(Assembly assembly)
   at MelonLoader.MelonMod.HarmonyInit() in D:\a\MelonLoader\MelonLoader\MelonLoader\Melons\MelonMod.cs:line 40
   at MelonLoader.MelonEvent.<>c.<Invoke>b__1_0(LemonAction x) in D:\a\MelonLoader\MelonLoader\MelonLoader\Melons\Events\MelonEvent.cs:line 174
   at MelonLoader.MelonEventBase`1.Invoke(Action`1 delegateInvoker) in D:\a\MelonLoader\MelonLoader\MelonLoader\Melons\Events\MelonEvent.cs:line 143
....
AsrieltheGoat commented 3 months ago

I did tried to copy this over but no dice

https://github.com/rlabrecque/Steamworks.NET

Eimaen commented 3 months ago

Hi, thanks for reporting the bug. I'm on vacation right now so I don't think I'll be releasing a fix anytime soon. Can you please check the regular version and tell me if it works for you?

AsrieltheGoat commented 2 months ago

Hi, thanks for reporting the bug. I'm on vacation right now so I don't think I'll be releasing a fix anytime soon. Can you please check the regular version and tell me if it works for you?

Yea, the regular one does work on unmodified one, but not with melonloader

AsrieltheGoat commented 2 months ago

When I use the patcher one

image

Eimaen commented 2 months ago

Can you try running the patcher one with MelonLoader without any mods installed?

Glitchtest51 commented 1 month ago

Can you try running the patcher one with MelonLoader without any mods installed?

works on 0.6.1 and 0.6.5

https://github.com/user-attachments/assets/4a2a9471-d1fb-460d-818e-d2b362a49e5c

Glitchtest51 commented 1 month ago

https://github.com/Glitchtest51/JustAsPlannedMelonFixed/ somehow made a sort of fix I think, works for me

SploeCyber commented 1 month ago

https://github.com/Glitchtest51/JustAsPlannedMelonFixed/ somehow made a sort of fix I think, works for me

there are no errors, but the DLC is not unlocking. any idea? EDIT: i downgrade MelonLoader to v0.6.1 it work now

Glitchtest51 commented 1 month ago

https://github.com/Glitchtest51/JustAsPlannedMelonFixed/ somehow made a sort of fix I think, works for me

there are no errors, but the DLC is not unlocking. any idea? EDIT: i downgrade MelonLoader to v0.6.1 it work now

good to know it works for you too :3

iirc it worked for me on 0.6.5 but ill check again later, I'm on 0.6.1 right now because of the MDMC installer

Eimaen commented 1 month ago

https://github.com/Glitchtest51/JustAsPlannedMelonFixed/

somehow made a sort of fix I think, works for me

Thanks, I'll look into it. Please consider making a pull request to the JustAsPlannedMelon repo.

AsrieltheGoat commented 1 month ago

tysm, i'll try it out ❤

Vào Th 2, 30 thg 9, 2024 vào lúc 05:00 Glitchtest < @.***> đã viết:

https://github.com/Glitchtest51/JustAsPlannedMelonFixed/ somehow made a sort of fix I think, works for me

— Reply to this email directly, view it on GitHub https://github.com/Eimaen/JustAsPlannedMelon/issues/2#issuecomment-2381625792, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGFZKHSSCAHGSUGU2DWSDBDZZB2AJAVCNFSM6AAAAABNFONM3WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBRGYZDKNZZGI . You are receiving this because you authored the thread.Message ID: @.***>

Glitchtest51 commented 1 month ago

https://github.com/Glitchtest51/JustAsPlannedMelonFixed/ somehow made a sort of fix I think, works for me

Thanks, I'll look into it. Please consider making a pull request to the JustAsPlannedMelon repo.

sure, I'll edit it a tiny bit to make it more similar and then I'll make a pr :3

Glitchtest51 commented 1 month ago

https://github.com/Glitchtest51/JustAsPlannedMelonFixed/ somehow made a sort of fix I think, works for me

Thanks, I'll look into it. Please consider making a pull request to the JustAsPlannedMelon repo.

sure, I'll edit it a tiny bit to make it more similar and then I'll make a pr :3

pr #3 fixes this issue so we could set the issue to close on merge