ValheimPerformanceOptimizations icon indicating copy to clipboard operation
ValheimPerformanceOptimizations copied to clipboard

Latest Update Breaks the Map

Open Kydoimos97 opened this issue 2 years ago • 14 comments

The map doesn't work anymore after patch 0.209.9

Kydoimos97 avatar Jun 21 '22 00:06 Kydoimos97

The error message I'm seeing: [Error : Unity Log] MissingMethodException: string World.GetWorldSavePath() Stack trace: ValheimPerformanceOptimizations.Patches.MinimapGenerationPatch.MinimapTextureFilePath () (at <40fc3883eb9f407fbb84228c4cd9c237>:0) ValheimPerformanceOptimizations.Patches.MinimapGenerationPatch.Prefix (Minimap __instance) (at <40fc3883eb9f407fbb84228c4cd9c237>:0) (wrapper dynamic-method) Minimap.DMDMinimap::GenerateWorldMap(Minimap) Minimap.Update () (at <10b1b9e30d104f7cb009be7e57f128dc>:0)

hhliow avatar Jun 21 '22 01:06 hhliow

can confirm map is broken with the latest patch

UncleFive1 avatar Jun 22 '22 16:06 UncleFive1

If you really need VPO, here's an untested, in-dev version. Use at your own risk: vpo-dev.zip It has some small new optimizations, but don't expect a performance increase, as I had to disable some other features due to bugs

ontrigger avatar Jun 25 '22 14:06 ontrigger

Many thanks!

hhliow avatar Jun 26 '22 20:06 hhliow

anyone knows how i can fix my map, that broke due to the latest update?, if its even possible?

nivajaa avatar Jul 03 '22 05:07 nivajaa

the vpo-dev.zip as from previous post is working for me. Still some minor glitches but overall working nicely including the map

jdeneef avatar Jul 03 '22 11:07 jdeneef

anyone knows how i can fix my map, that broke due to the latest update?, if its even possible?

Struggling with the same

Hartez98 avatar Jul 12 '22 03:07 Hartez98

check the vpo-dev.zip posted above by ontrigger, you need to drop those files in the Valheim directory, info is in the file. Note that it is more than just the plugin file, also other files. I don't recall the directory, but please check the file. Worked for me.

jdeneef avatar Jul 12 '22 07:07 jdeneef

so how do we restore old map data including pins? this mod caused my map to stop working and when I disabled VPO in vortex it started working again but my entire map was 'Undiscovered' and I lost all of my previous pins too

iron-bro avatar Aug 10 '22 10:08 iron-bro

On the Linux version of the game, the dev version results in extremely slow performance (takes several minutes to load, get 1 frame every few seconds once loaded).

The only way to restore map data I found was to restore the charactername.fch file from backup (which I fortunately had).

If this mod isn't going to be updated, it should probably be unlisted from mod sites since it can result in losing map data.

N-Prime avatar Sep 03 '22 17:09 N-Prime

I'm not seeing any performance hits on Linux, could it be a mod conflict?

digital-pet avatar Sep 11 '22 06:09 digital-pet

I tried disabling all other mods (using r2modman if this makes a difference) and I'm still getting the slowdown.

The exact steps I use:

Install Valheim PerformanceOptimizations Download the dev version from: https://github.com/ontrigger/ValheimPerformanceOptimizations/files/8984879/vpo-dev.zip

Unzip in downloads folder

Copy the 3 dll files from: Downloads/vpo-dev/valheim_Data/Managed/ to /SteamLibrary/steamapps/common/Valheim/valheim_Data/Managed/

Rename the existing (old) ValheimPerformanceOptimizations.dll in ~/.config/r2modmanPlus-local/Valheim/profiles/Default/BepInEx/plugins/ontrigger-ValheimPerformanceOptimizations/ to ValheimPerformanceOptimizations.dll.orig

Copy the ValheimPerformanceOptimizations.dll file from: /vpo-dev/BepInEx/plugins/ValheimPerformanceOptimizations/ to ~/.config/r2modmanPlus-local/Valheim/profiles/Default/BepInEx/plugins/ontrigger-ValheimPerformanceOptimizations/

Run the game with mods enabled (all other mods disabled except for BepInExPack_Valheim and ValheimPerformanceOptimizations).

In case it was related to the folder name in BepInEx/plugins/ I also tried:

Creating a new folder with the path: ~/.config/r2modmanPlus-local/Valheim/profiles/Default/BepInEx/plugins/ValheimPerformanceOptimizations/

Copying all files from: ~/.config/r2modmanPlus-local/Valheim/profiles/Default/BepInEx/plugins/ontrigger-ValheimPerformanceOptimizations/ to ~/.config/r2modmanPlus-local/Valheim/profiles/Default/BepInEx/plugins/ValheimPerformanceOptimizations/

Renaming the existing (old) ValheimPerformanceOptimizations.dll in ~/.config/r2modmanPlus-local/Valheim/profiles/Default/BepInEx/plugins/ValheimPerformanceOptimizations/ to ValheimPerformanceOptimizations.dll.orig

Copy the ValheimPerformanceOptimizations.dll file from: /vpo-dev/BepInEx/plugins/ValheimPerformanceOptimizations/ to ~/.config/r2modmanPlus-local/Valheim/profiles/Default/BepInEx/plugins/ValheimPerformanceOptimizations/

Disabling ValheimPerformanceOptimizations in r2modman - this disables the version the mod manager downloaded (.old is appended to all filenames in the ontrigger-ValheimPerformanceOptimizations folder) but (I believe) leaves the version I created in the ValheimPerformanceOptimizations folder to be loaded normally. To verify this, I started the game with mods enabled and it says 2 plugins were loaded. If I move the ValheimPerformanceOptimizations folder out of the plugins folder and load the game, it says only 1 plugin is loaded (I assume BepInEx).

Ran the game with mods enabled (all mods disabled except for BepInEx).

I got the slowdown in both cases.

N-Prime avatar Sep 11 '22 22:09 N-Prime

I'm just using bepinex and this mod (no r2modman etc). This mod is still giving me a lot of performance improvements on linux (but also some issues/artefacts but not to disturbing ;-). Your setup does not show obvious flaws, sorry. Possibly start from fresh install ..

jdeneef avatar Sep 12 '22 08:09 jdeneef

ontrigger, you made the best mod. Its hugely increase performance. Good work!

vasyavasya7628 avatar Oct 08 '22 22:10 vasyavasya7628