Valheim stuff.
The stuff in question will be compatible with Valheim 1.0, not older, possibly later.
Script for finding all your portals in a world, also highlighting unlinked/inactive portals.
TL;DR:
bash <(wget -qO- https://valheim.nikoboi.dev/portal-finder/script.sh)
[!NOTE] Your world will need to be a local save, Valheim defaults to Cloud save. Fix it in “Manage saves” in the main menu.
Run script.py in the world save folder. They’re located here (on Linux):
~/.config/unity3d/IronGate/Valheim/worlds_local/
Just put the script in a world folder located there and cd to it and run it like this:
python3 script.py
If you’re lazy like me you can use open a terminal and paste this and it’ll do everything for you.
bash <(wget -qO- https://valheim.nikoboi.dev/portal-finder/script.sh)
[!NOTE]
valheim.nikoboi.devresolves to this repository.
This script will find all your worlds and then prompt you if you have multiple, and then run the Python script remotely. It will leave no files behind and won’t modify anything.
Script can be “installed” as an “app”. Basically put into /usr/local/bin/ to be runnable as a command. Install it using this:
bash <(wget -qO- https://valheim.nikoboi.dev/portal-finder/install.sh)
This will install script.sh and script.py as /usr/local/bin/valheim_portal_finder and /usr/local/bin/valheim_portal_finder.py, respectively.
Then use by just running:
valheim_portal_finder
user@pc:~/.config/unity3d/IronGate/Valheim/worlds_local/World_Name$ python3 script.py
Portal Tags Found in World_Name:
Tag: 'Coast' (Found in 2 file/chunk[s])
Tag: 'NW Outpost' (Found in 2 file/chunk[s])
Tag: 'Peninsula' (Found in 1 file/chunk[s])
Tag: 'SW Outpost' (Found in 2 file/chunk[s])
Warning[s]:
Tag: 'Peninsula' only found once, missing linked portal.
user@pc:~/.config/unity3d/IronGate/Valheim/worlds_local/World_Name$
user@pc:~$ bash <(wget -qO- https://valheim.nikoboi.dev/portal-finder/script.sh)
Select a Valheim world:
1) World_Name
2) World2
Enter number: 1
Using world: World_Name
Directory: /home/user/.config/unity3d/IronGate/Valheim/worlds_local/World_Name
Portal Tags Found in World_Name:
Tag: 'Coast' (Found in 2 file/chunk[s])
Tag: 'NW Outpost' (Found in 2 file/chunk[s])
Tag: 'Peninsula' (Found in 1 file/chunk[s])
Tag: 'SW Outpost' (Found in 2 file/chunk[s])
Warning[s]:
Tag: 'Peninsula' only found once, missing linked portal.
user@pc:~$
Ever had a Graydwarf slowly chip away or a Troll destroy your portal? Don’t remember its tag? Then just save your world and run the script. It’ll find out which one it was instantly.
Feel free to fork this repository and submit issues or pull requests if you have any suggestions or improvements. If you encounter any bugs or have feature requests, please open an issue.
Created by Nikoboi
This project is licensed under the GNU General Public License V3. See LICENSE for details.