How can I find the World Seed of an online multiplayer Valheim Server?
I discovered http://valheim-map.world/ yesterday and it’s really neat! However, the seed extraction tool provided only works for games saved on my own, local computer. I do most of my Viking-ing on a multiplayer dedicated server with a few friends.
Is there any way that I can see the world seed for the dedicated server I play on, so that I can plug it in to this website, or, for example, to spin up a duplicate world on my home machine?
Best Answer
This information can be gained from the Player Log file!
To retrieve your multiplayer games world seed:
- Start up Valheim
- From the main menu, click the button labelled
Show Player.log
hidden away at the bottom left corner of the screen. This will open a folder in Windows Explorer; minimize that and come back to Valheim for now, we'll double back to this in a minute. - Join your multiplayer server as normal. (Start Game -> Start->Join Game, yadda yadda. You know this.)
- Once you've loaded into the game world that you want the world seed for, it's time to Alt+Tab back to the Valheim AppData folder that was opened up by that player.log button.
- We want to open the text file named
Player.log
, or, depending on your windows settings, it may show up as simplyPlayer
. - In that document, you'll want to Ctrl + F or scroll down and look for the string
Initializing world generator seed:
. Your seed will appear right after that*. Remember, world seeds are case sensitive!
*Initializing World Generator Seed:
may show up in the log file more than once, however, the first time it will appear without a string of characters following it. This is the world generator seed for the menu. Scroll down to where you see it a second time for the game world you've just loaded into.
Pictures about "How can I find the World Seed of an online multiplayer Valheim Server?"
Tutorial: Get Seed of a Multiplayer Valheim Server using Cheat Engine
More answers regarding how can I find the World Seed of an online multiplayer Valheim Server?
Answer 2
The seed is available in the .fwl
file with the same name as your world. This answer will be Linux specific, but it should be very similar for Windows and/or visible in text editors like Notepad++ or worst case a hex editor.
Given your_world
you should have a your_world.db
, your_world.db.old
(backup), and your_world.fwl
. The .fwl
file is very small and only contains your world name and the seed of that world.
Looking at it simply with cat
like pure plaintext will give you some garbage as well, but the seed (in this example u6jEVeytUb
) is visible:
# cat foo.fwl
foo
u6jEVeytUb????K?????
It's easier to see it with something like xxd
if you follow the data on the right, it will be right after your world name:
# xxd foo.fwl
(...)
00000010: 450a 7536 6a45 5665 7974 5562 19d2 96a6 E.u6jEVeytUb....
^^^^^^^^^^- here!
Answer 3
Use Cheat Engine. This is taken from a comment by Reddit user ‘madpata’:
Sadly, the Valheim developers removed that log entry. Probably to stop people from using this tool to get trader/loot positions.
However, there is another, but way more complicated way to get the seed: Using Cheat Engine. Be warned that you probably need a bit of experience with Cheat Engine to get this to work.
(There's a video of this process available)
Open the valheim process
Mono -> Activate Mono features
Mono -> Dissect Mono
Search for class "World"
Right click on the "World" class and use "Find instances"
You'll get multiple results and only one is the one you want. Use the current values of an instance to judge if it's valid or not.
m_worldGenVersion
should be 1m_menu
,m_loadError
andm_versionError
were all 0 for my instance.Double click on the entry containing
m_seedName
. The "Memory Viewer" will open.Right click on the bottom half of the memory viewer and click on "Goto address"
Enter the address that is pointed to by
m_seedName
and hit enter.Your seed starts at that address + offset of 0x14 (<- hexadecimal) and is 20 bytes long. Ignore every other character (the '.' dots).
Profit
Video using Cheat Engine to access the seed of a multiplayer server if you are not the host:
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Monstera, Atypeek Dgn, Monstera, Kamaji Ogino