valheimPlus / ValheimPlus

A HarmonyX Mod aimed at improving the gameplay and quality of life of the game Valheim.
http://valheim.plus
GNU Affero General Public License v3.0
967 stars 236 forks source link

[BUG] Valheim plus not starting on valheim 0.214.300 #803

Open ext4e opened 1 year ago

ext4e commented 1 year ago

Since the new update came out this night we can't start the mod on default_old version. With before mistland version or none the game crash when starting.

Hakker commented 1 year ago

The crash however looks more to do with BepIndex than ValheimPlus though.

From what I remember it requires a Getpixel value between 0 and 6

SSimp258 commented 1 year ago

You need to update your V+ to at least .12 or .13 if Grantapher put out a new version for the community fix. Also, bepinex is required to be updated to 5.4.2101 now. This should fix your issues.

ext4e commented 1 year ago

Hi, Sorry I just tryed to update Valheim + but it appear that I alreadry have the last version.

I can start the game on old_stable version with bepinex but V+ doesn't show once game launched.

Here is the log :

https://pastebin.com/smtmbC8f

Thanks for your help

SSimp258 commented 1 year ago

In your log, there's no V+ dll file being loaded. You have 1 plugin being loaded and it's not V+. That's why it's not launching.

valdt commented 1 year ago

Same issue as ext4e Latest V+ breaks the game. Latest BepInEx breaks V+ but restores game.

SSimp258 commented 1 year ago

Same issue as ext4e Latest V+ breaks the game. Latest BepInEx breaks V+ but restores game.

Make sure you're using the community fix version 9.9.13.

Short and skinny update:

Valheim version 214.30x requires: Bepinex version 5.4.2101 V+ community fix version 9.9.13

Update your guy's files and try again and let me know.

Gadgetwhir commented 1 year ago

Make sure you're using the community fix version 9.9.13.

where can I find the V+ community fix version at?

Grantapher commented 1 year ago

https://github.com/Grantapher/ValheimPlus/releases/latest

Gadgetwhir commented 1 year ago

Thanks and confirmed this worked for me on the windows client standalone as well as with the dedicated server.

DrLecteur commented 1 year ago

I have issue making it work. I'm a gamepass player (game version is 0.214.305 displayed as 0.214.300) Bepix 5.4.21.0 V+ 0.9.9.13

V+ is crashing :

[Info   :Valheim Plus] Configuration file loaded succesfully.
[Error  : Unity Log] TypeLoadException: Could not load type Steamworks.SteamGameServer, assembly_steamworks, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null while decoding custom attribute: (null)
Stack trace:
System.MonoCustomAttrs.GetCustomAttributesBase (System.Reflection.ICustomAttributeProvider obj, System.Type attributeType, System.Boolean inheritedOnly) (at <695d1cc93cca45069c528c15c9fdd749>:0)
System.MonoCustomAttrs.GetCustomAttributes (System.Reflection.ICustomAttributeProvider obj, System.Type attributeType, System.Boolean inherit) (at <695d1cc93cca45069c528c15c9fdd749>:0)
System.RuntimeType.GetCustomAttributes (System.Boolean inherit) (at <695d1cc93cca45069c528c15c9fdd749>:0)
HarmonyLib.HarmonyMethodExtensions.GetFromType (System.Type type) (at <474744d65d8e460fa08cd5fd82b5d65f>:0)
HarmonyLib.PatchClassProcessor..ctor (HarmonyLib.Harmony instance, System.Type type, System.Boolean allowUnannotatedType) (at <474744d65d8e460fa08cd5fd82b5d65f>:0)
HarmonyLib.PatchClassProcessor..ctor (HarmonyLib.Harmony instance, System.Type type) (at <474744d65d8e460fa08cd5fd82b5d65f>:0)
HarmonyLib.Harmony.CreateClassProcessor (System.Type type) (at <474744d65d8e460fa08cd5fd82b5d65f>:0)
HarmonyLib.Harmony.<PatchAll>b__11_0 (System.Type type) (at <474744d65d8e460fa08cd5fd82b5d65f>:0)
HarmonyLib.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable`1[T] sequence, System.Action`1[T] action) (at <474744d65d8e460fa08cd5fd82b5d65f>:0)
HarmonyLib.Harmony.PatchAll (System.Reflection.Assembly assembly) (at <474744d65d8e460fa08cd5fd82b5d65f>:0)
HarmonyLib.Harmony.PatchAll () (at <474744d65d8e460fa08cd5fd82b5d65f>:0)
ValheimPlus.ValheimPlusPlugin.Awake () (at <c57ae90247c4442f8e530d257f7432e4>:0)
UnityEngine.GameObject:AddComponent(Type)
BepInEx.Bootstrap.Chainloader:Start()
UnityEngine.UI.Image:OnCanvasHierarchyChanged()
SSimp258 commented 1 year ago

i would reinstall bepinex 5.4.2101 or it could be an issue with steam because of the steamworks part of the error but it's hard saying. try bepinex and let us know if it persists.

KayHude commented 1 year ago

I have issue making it work. I'm a gamepass player (game version is 0.214.305 displayed as 0.214.300) Bepix 5.4.21.0 V+ 0.9.9.13

V+ is crashing :


[Info   :Valheim Plus] Configuration file loaded succesfully.
[Error  : Unity Log] TypeLoadException: Could not load type Steamworks.SteamGameServer, assembly_steamworks, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null while decoding custom attribute: (null)
Stack trace:

You definitely need BepInEx 5.4.2101 for Valheim 0.214.300

Yeah, that third decimal place does make a difference...

DrLecteur commented 1 year ago

I have re-installed the BepInEx 5.4.2101 and tried the BepInEx 5.4.2102. V+ doesn't work with neither.

V+ : 0.9.9.13 (grantapher fix) Valheim : 0.214.305 (displayed as 0.214.300) BepInEx : 5.4.2101 or 5.4.2102 (displayed in console as 5.4.21.0)

SSimp258 commented 1 year ago

I have re-installed the BepInEx 5.4.2101 and tried the BepInEx 5.4.2102. V+ doesn't work with neither.

V+ : 0.9.9.13 (grantapher fix) Valheim : 0.214.305 (displayed as 0.214.300) BepInEx : 5.4.2101 or 5.4.2102 (displayed in console as 5.4.21.0)

What's the log say?

DrLecteur commented 1 year ago

Here is my BepInEx log LogOutput - REDACTED.log

JF10R commented 1 year ago

Here is my BepInEx log LogOutput - REDACTED.log

Try updating your plugin Quick Stack - Store - Sort - Trash - Restock 1.3.8. According to its changelog, it has been recompiled in version 1.3.9 for the latest BepInEx version. This could be the culprit (Version 1.3.10 is out already).

DrLecteur commented 1 year ago

I tried it

Loading [Quick Stack - Store - Sort - Trash - Restock 1.3.10]

No difference. (But thx for the update notice, i would have missed it !)

SSimp258 commented 1 year ago

Your game isn't loading V+. Are you on Steam or Gamepass?

image

DrLecteur commented 1 year ago

It may be unclear, as i hijacked this topic. I'm a gamepass player, indeed, v+ is crashing at start

Grantapher commented 1 year ago

@DrLecteur can you make a new issue? Yours looks specific to "V+ not working with Xbox Gamepass Valheim".

Grantapher commented 1 year ago

And seems to be due to

https://github.com/valheimPlus/ValheimPlus/blob/799a52a225487cc52e01a3cd77b37aa0e50be048/ValheimPlus/GameClasses/SteamGameServer.cs#L7-L24

I imagine the steam assembly simply doesn't exist on the game pass version.

AzumattDev commented 1 year ago

That would be correct. They would have to patch that and check for the backend before attempting to access steam information. In short, patch that method only when the backend is steam. Don't patch it if it's not.

Grantapher commented 1 year ago

Will continue on about xbox game pass version in #806.

Lexigal1984 commented 1 year ago

i would reinstall bepinex 5.4.2101 or it could be an issue with steam because of the steamworks part of the error but it's hard saying. try bepinex and let us know if it persists.

Where do you get the new version for BepInEx? I run the steam verison. I updated V+ but can't find the BepInEx v 5.4.2101. I have 5.4.21.0 which is what is on their GitHub.

AzumattDev commented 1 year ago

i would reinstall bepinex 5.4.2101 or it could be an issue with steam because of the steamworks part of the error but it's hard saying. try bepinex and let us know if it persists.

Where do you get the new version for BepInEx? I run the steam verison. I updated V+ but can't find the BepInEx v 5.4.2101. I have 5.4.21.0 which is what is on their GitHub.

You can get it from the pack that I help maintain. https://valheim.thunderstore.io/package/denikson/BepInExPack_Valheim/

paohira commented 1 year ago

I've installed  denikson-BepInExPack_Valheim-5.4.2105 and V+ : 0.9.9.13 It load till the character choice, that is naked, and when I try to choose a world the game crash

SSimp258 commented 1 year ago

CaptainWorf,

You don’t need the V+ 9.9.11 file at all. You can delete it. Also post your logoutput.log file so someone can look through it. I don’t have access to a computer for a couple more days so I won’t be able to until I get back to my apartment.

Get Outlook for iOShttps://aka.ms/o0ukef


From: CaptainWorf @.> Sent: Friday, May 5, 2023 5:19:31 AM To: valheimPlus/ValheimPlus @.> Cc: SSimp258 @.>; Comment @.> Subject: Re: [valheimPlus/ValheimPlus] [BUG] Valheim plus not starting on valheim 0.214.300 (Issue #803)

Same here! denikson-BepInExPack_Valheim-5.4.2105, V+ : 0.9.9.11 and V+Fix 0.9.9.15 the game loads but the char is invisible and there is no V+ logo.

— Reply to this email directly, view it on GitHubhttps://github.com/valheimPlus/ValheimPlus/issues/803#issuecomment-1535973067, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AW7F2C7FL7FX6QJGS224YGDXETA2HANCNFSM6AAAAAAWLTGXB4. You are receiving this because you commented.Message ID: @.***>