Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ext4e opened this issue Mar 29, 2023 · 27 comments
Open

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

ext4e opened this issue Mar 29, 2023 · 27 comments
Labels
bug Something isn't working

Comments

@ext4e
Copy link

ext4e commented Mar 29, 2023

  • Windows 10 & 11
  • Valheim Patch 0.214.300
  • Valheim plus 0.9.9.11

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.

@ext4e ext4e added the bug Something isn't working label Mar 29, 2023
@Hakker
Copy link

Hakker commented Mar 29, 2023

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
Copy link

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
Copy link
Author

ext4e commented Mar 29, 2023

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
Copy link

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
Copy link

valdt commented Mar 29, 2023

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

@SSimp258
Copy link

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
Copy link

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

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

@Grantapher
Copy link

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

@Gadgetwhir
Copy link

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

@DrLecteur
Copy link

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
Copy link

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
Copy link

KayHude commented Mar 31, 2023

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
Copy link

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
Copy link

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
Copy link

Here is my BepInEx log
LogOutput - REDACTED.log

@JF10R
Copy link

JF10R commented Mar 31, 2023

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
Copy link

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
Copy link

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

image

@DrLecteur
Copy link

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

@Grantapher
Copy link

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

@Grantapher
Copy link

And seems to be due to

/// <summary>
/// Alters max player count
/// </summary>
[HarmonyPatch(typeof(SteamGameServer), "SetMaxPlayerCount")]
public static class ChangeSteamServerVariables
{
private static void Prefix(ref int cPlayersMax)
{
if (Configuration.Current.Server.IsEnabled)
{
int maxPlayers = Configuration.Current.Server.maxPlayers;
if (maxPlayers >= 1)
{
cPlayersMax = maxPlayers;
}
}
}
}

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

@AzumattDev
Copy link

AzumattDev commented Mar 31, 2023

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
Copy link

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

@Lexigal1984
Copy link

Lexigal1984 commented Apr 1, 2023

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
Copy link

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
Copy link

paohira commented Apr 12, 2023

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
Copy link

SSimp258 commented May 5, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests