uMod release for Valheim?Solved

ok, so im assuming it uses some kind of version control like git? Updates files it only needs, I can understand that. I'm pretty new to uMod, I didn't realize how different they really are. Valhiem is my first attempt at using it. I will have to write an implementation for TCAdmin then.

Thanks for your time, hopefully this convo helps others.

markmozza

ok, so im assuming it uses some kind of version control like git? Updates files it only needs, I can understand that. I'm pretty new to uMod, I didn't realize how different they really are. Valhiem is my first attempt at using it. I will have to write an implementation for TCAdmin then.

Thanks for your time, hopefully this convo helps others.

Main steps would involve installing the required .NET version, if not already installed. Installing the uMod Agent that handles everything, and then simply running the command to install what is necessary for the game server. The uMod Agent can install uMod to an existing game install or install it for you. If apps have an issue, it'll update those for you on startup. Apps would be our modern webclient, compiler for plugins, and the standalone database client; all of which provide drastic upgrades over what is included with each game to enable modern technologies.

You can read more about what the changes provided by uMod are here: https://umod.org/guides/foreword/release-notes

Mono path[0] = 'E:/TCAFiles/Users/admin/112/valheim_server_Data/Managed'
Mono config path = 'E:/TCAFiles/Users/admin/112/MonoBleedingEdge/etc'
Initialize engine version: 2019.4.16f1 (e05b6e02d63e)
[Subsystems] Discovering subsystems at path E:/TCAFiles/Users/admin/112/valheim_server_Data/UnitySubsystems
Forcing GfxDevice: Null
GfxDevice: creating device client; threaded=0
NullGfxDevice:
    Version:  NULL 1.0 [1.0]
    Renderer: Null Device
    Vendor:   Unity Technologies
FMOD initialized on nosound output
Begin MonoManager ReloadAssembly
- Completed reload, in  0.273 seconds
Microsoft Media Foundation video decoding to texture disabled: graphics device is Null, only Direct3D 11 and Direct3D 12 (only on desktop) are supported.
UnloadTime: 2.747400 ms
02/15/2021 00:23:12: Starting to load scene:start
 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

Couldn't create a Convex Mesh from source mesh "RearBig" within the maximum polygons limit (256). The partial hull will be used. Consider simplifying your mesh. 
(Filename:  Line: 91)

WARNING: Shader Unsupported: 'Autodesk Interactive' - All passes removed
WARNING: Shader Did you use #pragma only_renderers and omit this platform?
HDR Render Texture not supported, disabling HDR on reflection probe. 
(Filename:  Line: 277)

HDR Render Texture not supported, disabling HDR on reflection probe. 
(Filename:  Line: 277)

Unloading 6 Unused Serialized files (Serialized files now loaded: 0)
UnloadTime: 14.542200 ms
Only custom filters can be played. Please add a custom filter or an audioclip to the audiosource (Amb_MainMenu). 
(Filename:  Line: 509)

HDR Render Texture not supported, disabling HDR on reflection probe. 
(Filename:  Line: 277)

Initializing Google Analytics 0.2. 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/15/2021 00:23:40: Initializing world generator seed: ( 0 )   menu:True  worldgen version:1
 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/15/2021 00:23:40: Using mountain distance: 1000
 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/15/2021 00:23:40: Render threading mode:SingleThreaded
 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/15/2021 00:23:40: Get create world Dedicated
 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/15/2021 00:23:40:   failed to load Dedicated
 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/15/2021 00:23:40:  creating
 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/15/2021 00:23:40: Using steam APPID:892970
 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/15/2021 00:23:41: Server ID 90071992547409920
 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/15/2021 00:23:41: Steam game server initialized
 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/15/2021 00:23:41: Missing audio clip in music respawn
 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/15/2021 00:23:41: Builder started
 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/15/2021 00:23:43: Loaded localization English
 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/15/2021 00:23:43: Game server connected
 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)


Unloading 16 unused Assets to reduce memory usage. Loaded Objects now: 85931.
Total: 203.172800 ms (FindLiveObjects: 14.788800 ms CreateObjectMapping: 24.594100 ms MarkObjects: 162.261000 ms  DeleteObjects: 1.527700 ms)

Unloading 6 Unused Serialized files (Serialized files now loaded: 0)
UnloadTime: 35.399100 ms
HDR Render Texture not supported, disabling HDR on reflection probe. 
(Filename:  Line: 277)

HDR Render Texture not supported, disabling HDR on reflection probe. 
(Filename:  Line: 277)

02/15/2021 00:23:44: Zonesystem Awake 531
 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/15/2021 00:23:44: DungeonDB Awake 531
 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/15/2021 00:23:44: ZSteamSocket  Registering global callbacks
 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

TypeLoadException: Could not load type of field 'uMod.Module:Version' (3) due to: Could not load file or assembly 'System.Runtime, Version=*.*.*.*, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. assembly:System.Runtime, Version=*.*.*.*, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a type:<unknown type> member:(null) signature:<none>
  at ZNet.Awake () [0x000f9] in <73e37eb2c8ba414fb5dfe241a316933d>:0 
 
(Filename: <73e37eb2c8ba414fb5dfe241a316933d> Line: 0)

02/15/2021 00:23:44: Build settings:10
 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/15/2021 00:23:44: Removing -1233507428
 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/15/2021 00:23:44: Removing 1883198027
 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/15/2021 00:23:44: Removing 868418350
 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/15/2021 00:23:44: Removing -535269195
 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/15/2021 00:23:44: Removing 1547815568
 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/15/2021 00:23:44: Removing -359949137
 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/15/2021 00:23:44: Removing 319464002
 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/15/2021 00:23:44: Removing 1225882809
 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/15/2021 00:23:44: Removing 404029124
 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/15/2021 00:23:44: Audioman already exist, destroying self
 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)


Unloading 490 unused Assets to reduce memory usage. Loaded Objects now: 86244.
Total: 232.507400 ms (FindLiveObjects: 17.986900 ms CreateObjectMapping: 23.818900 ms MarkObjects: 174.561600 ms  DeleteObjects: 16.138400 ms)

02/15/2021 00:23:55: Zonesystem Start 531
 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/15/2021 00:23:56: Generating locations
 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/15/2021 00:23:56: Checking for location duplicates
 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

NullReferenceException: Object reference not set to an instance of an object
  at ZoneSystem.GenerateLocations (ZoneSystem+ZoneLocation location) [0x0000b] in <73e37eb2c8ba414fb5dfe241a316933d>:0 
  at ZoneSystem.GenerateLocations () [0x00089] in <73e37eb2c8ba414fb5dfe241a316933d>:0 
  at ZoneSystem.Start () [0x00039] in <73e37eb2c8ba414fb5dfe241a316933d>:0 
 
(Filename: <73e37eb2c8ba414fb5dfe241a316933d> Line: 0)

02/15/2021 00:23:56: DungeonDB Start 531
 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

NullReferenceException: Object reference not set to an instance of an object
  at HeightmapBuilder.Build (HeightmapBuilder+HMBuildData data) [0x0005e] in <73e37eb2c8ba414fb5dfe241a316933d>:0 
  at HeightmapBuilder.BuildThread () [0x00067] in <73e37eb2c8ba414fb5dfe241a316933d>:0 
  at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00014] in <fb001e01371b4adca20013e0ac763896>:0 
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00071] in <fb001e01371b4adca20013e0ac763896>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <fb001e01371b4adca20013e0ac763896>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x0002b] in <fb001e01371b4adca20013e0ac763896>:0 
  at System.Threading.ThreadHelper.ThreadStart () [0x00008] in <fb001e01371b4adca20013e0ac763896>:0 
UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception)
UnityEngine.<>c:<RegisterUECatcher>b__0_0(Object, UnhandledExceptionEventArgs)
 
(Filename: <73e37eb2c8ba414fb5dfe241a316933d> Line: 0)

This is my log output after a successful uMod install.

markmozza

This is my log output after a successful uMod install.

The uMod-related error there is this:
TypeLoadException: Could not load type of field 'uMod.Module:Version' (3) due to: Could not load file or assembly 'System.Runtime, Version=*.*.*.*, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. assembly:System.Runtime, Version=*.*.*.*, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a type:<unknown type> member:(null) signature:<none>
  at ZNet.Awake () [0x000f9] in <73e37eb2c8ba414fb5dfe241a316933d>:0​
That's one that is caused by the files being erroneously installed in the root server install location, where other dependencies aren't. We're trying to trying to track down the exact cause, but it's only happened in about 4 cases so far, 2 of those were using the -dir option with our tool that we know of. It'll be fixed soon though, if not already; some changes were pushed to address issues with using -dir.

Yeah, I see, I don't think I used the -dir option, I change the directory and ran the update on an existing server. Ive tried a few different times now, always get the same error.

markmozza

Yeah, I see, I don't think I used the -dir option, I change the directory and ran the update on an existing server. Ive tried a few different times now, always get the same error.

Thanks for the info! You can fix that error by removing all of the .dll files in the root server install location.

Merged post

@markmozza, if you could, please try updating the uMod tool to the latest. This would be the first step from the pre-release guide. https://umod.org/guides/development/umod-installation-pre-release

Yeah deleting all .dll causing server to basically crash after 5 seconds.

markmozza

Yeah deleting all .dll causing server to basically crash after 5 seconds.

All DLLs in the root location are from uMod and not supposed to be there, they are supposed to be under valheim_server_Data/Managed. Using the latest uMod tool, it shouldn't be an issue anymore, just make to run the "umod install valheim -P" after updating the uMod agent tool with what I linked previously.

I'm not sure what link you are referring to? Are you saying I have to update/reinstall the Agent? does this defeat the objective?

markmozza

I'm not sure what link you are referring to? Are you saying I have to update/reinstall the Agent? does this defeat the objective?

Never mind, I see, would be super cool though it I could just run a command to self update.

markmozza

Never mind, I see, would be super cool though it I could just run a command to self update.

Yeah, I'd like to see that too, though we haven't gotten to that point yet. It'd likely just be a wrapper to handle the commands for you.

So yeah no luck here at all, very frustrating. Spent 2 days trying to get this running. I have knowledge in a ton of Languages, I write code for a living, I have Unity assets on the store but I can't get a command-line tool working.

I get 0 errors now on server bootup, but no uMod. It doesn't even load up, there's no folders in the umod folder created.

markmozza

So yeah no luck here at all, very frustrating. Spent 2 days trying to get this running. I have knowledge in a ton of Languages, I wrote code for a living, I have Unity assets on the store. But I can't get a command-line tool working, I get 0 errors now on server bootup, but no uMod. It doesn't even load up, there's no folders in the umod folder created.

uMod would load if the patched files are there, which would be under the Managed directory for the game. As far as the command-line goes, if you are seeing different issues from what has been reported, just let us know and we'll take a look. uMod isn't released yet because we are still working out issues like this, and we aren't going to rush a release out for the sake of having one while there are still issues. I know it can be frustrating, but we're working to resolve any outstanding issues.
c8WsoyTWki4fJTn.jpg Wulf
uMod would load if the patched files are there, which would be under the Managed directory for the game. As far as the command-line goes, if you are seeing different issues from what has been reported, just let us know and we'll take a look. uMod isn't released yet because we are still working out issues like this, and we aren't going to rush a release out for the sake of having one while there are still issues. I know it can be frustrating, but we're working to resolve any outstanding issues.

Yeah, I can understand. However now I'm getting 0 errors, tried a fresh install too, 0 errors, uMod successfully installed, start server no errors, all reporting ok. Just no uMod. :D

Merged post

Okay.... Seems your fix isn't a fix.

The files are located in the wrong place.


Its create the folder inside the Managed folder.

My process each time is

```
cd "ROOT SERVER PATH WHERE THE EXE IS"
umod install valheim -P
umod update valheim -P
```

markmozza

Yeah, I can understand. However now I'm getting 0 errors, tried a fresh install too, 0 errors, uMod successfully installed, start server no errors, all reporting ok. Just no uMod. :D

When you say uMod, do you mean the uMod tool (Agent) or the uMod install for the game itself? The link I provided would purely be for updating the Agent, the other steps would still need to be followed to install the actual core and mod for the game. https://umod.org/games/valheim/guide

Right now the game is pre-patched, but we'll be moving to self-patching on the server directly when our new patching method is finalized.
Locked automatically