TranslationsHelper

v1.2.8·Updated 2024-11-18

Mod made for modders to simplify generating translation files for their prefabs.

About this mod Author’s original text

Translations Helper

Mod for helping modders that maintain huge amounts of prefabs and want to provide translations files for those.

This mod will help you pre-generate all translations files that you need to provide with your.dll in English language.

Any prefabs that have a missing m_name or m_description will be printed with a String ("[token name]") that shows

missing translation.

At Krumpac's Reforge mod pack we are using this mod to keep track of the 1600 added prefabs and all their translations,

which would be a lot of work without automation.

Features

Load this together with your other.dlls and in-game use F5 (using -console) and type print_translations_to_file,

this will generate all available (non-vanilla) prefabs into 1 file per BepInExPlugin that adds this prefab.

Valheim Types supported

Output available for in-game Valheim types:

  • ItemDrop
  • Piece
  • Character
  • Smelter
  • Fermenter
  • CookingStation
  • Incinerator
  • OfferingBowl
  • SapCollector
  • Beehive
  • HoverText

For the simpler types the mod will use the m_name and m_description fields located inside those types, the

pre-generated translation String is taken from any available text that comes with the prefab or the mod that introduced

it. More complex types that have additional texts or switches will also have those printed.

Filter output

You can also specify 1 argument to the console command to apply prefix filtering for the outputs:

print_translations_to_file my_mod_prefix_

This will then just output prefabs that have their internal name starting with "my_mod_prefix_" and will also just

generate files for.dlls where this prefix is available.

Examples

Example file output (taken from mod Rune Magic):

File name:

BepInEx/config/TranslationsPrinterOutput/RuneMagic.English.yaml

Example content (excerpt):

RuneFocus: "Rune Focus"

RuneFocus_Description: "Use this on Runestones you discover to absorb their power and shape it to your own ends."

runemagic_BlastingRune: "Rune of Blasting"

runemagic_BlastingRune_Description: "Who needs a pickaxe when you can blast stone apart with magic? Though, do remember to stand clear..."

runemagic_CalmWatersRune: "Rune of Calm Waters"

runemagic_CalmWatersRune_Description: "A smooth sea doesn't make a skilled sailor, but it does help keep your ship in one piece."

runemagic_CanopyRune: "Canopy Rune"

runemagic_CanopyRune_Description: "It's no warm inn with a roaring fire, but it'll keep the damp off."

runemagic_DryLandRune: "Rune of Dry Land"

runemagic_DryLandRune_Description: "Rising sea levels are no longer a concern."

Miscellaneous

Attributions

*

  • icon ->

Contact

*

  • Discord: fluuxxx (you can find me around some of the Valheim modding discords, too)

Install & use Install: BepInEx plugin

  1. The archive from playbuff is the mod itself — usually a BepInEx plugin (a .dll or a plugin folder once unzipped).
  2. Recommended: use a community mod manager (such as r2modman) — pick this game, import the mod, and the manager sets up BepInEx and its dependencies for you.
  3. Manual route: install the BepInEx loader in the game folder, then drop the unzipped .dll or plugin folder into BepInEx/plugins/.
  4. Launch the game — the BepInEx console logs every plugin it loads; seeing this mod in the log means it is installed.

Mods with listed dependencies need those installed too, or they will not load. Options are usually changed in-game or in the plugin's config file. In multiplayer, the host and every client need the same mods installed.

Dependencies

Install these first, or the mod will not work:

denikson-BepInExPack_ValheimValheimModding-Jotunn

File & checksum

Filename
TranslationsHelper-1.2.8.zip
File size
16.3 KiB