Page 1 of 1

Daggerfall Unity Localization Preview

Posted: Wed Jul 15, 2020 2:10 am
by Interkarma
Introduction

Starting in Daggerfall Unity 0.10.26, Localization Preview features will be available for testing. This feature set extends core so that community can introduce translated text and other assets into the game via mod system. Internally, Daggerfall Unity will gradually shift from using classic game data and CSV tables for text completely to String Table Collection Assets.


Key Concepts
  • Daggerfall Unity's Localization Preview features are built on top of Unity's Localization Settings package (currently v0.8.1).
  • Unity's Localization Settings are in turn built on their modern Addressable Asset System (currently v1.16.1).
  • Translation mods for Daggerfall Unity are delivered as asset bundles (.dfmod) to leverage our own Mod System. This provides translation mods the most amount of power and flexibility to deploy required changes to the game.

Limitations
  • This feature is considered a preview under active development. Some steps might change in future releases. Please do not invest more time than you are willing to lose if something breaks and needs to be redone from scratch.
  • The Unity Localization Settings package is itself a preview. While this is now quite mature and probably close to a release product, something might change or break that we have no control over.
  • Not all text can be modded by String Table Collections at this time. We will start with TEXT.RSC and previously hardcoded strings, and gradually expand this until all text in the game is standardised and modable.
  • The Daggerfall Unity Launcher will not support translations for the foreseeable future, as mods are not activated until Play is started.
  • Translations require end user to run with SDF fonts enabled. Classic FNT files are too limited and will not be supported for translations. Daggerfall Unity's built-in SDF fonts have a full complement of Latin characters and custom SDF fonts will be supported for other character sets (e.g. Cryllic, Kanji).
  • Only left-to-right font rendering will be supported.
  • Textures and audio assets can be replaced by mod system, however these replacements are not locale-aware and do not support switching locales. This generally limits translation mods to supporting a single language per mod, despite the Localization system supporting switchable locales for text.

Getting Started

Posted: Wed Jul 15, 2020 2:11 am
by Interkarma
Getting Started

You will need the following tools to create any Daggerfall Unity mod delivered by a .dfmod file.
  • Unity 2019.4.10f1 (specifically this version). Please be sure to install build support for all platforms you plan to target (e.g. Windows, Linux, Mac).
  • A clone of the Daggerfall Unity source code. Recommend cloning via GitHub Desktop so that you can easily revert changes back to master if a mistake is made.
Recommend cloning/downloading a tagged release that is 0.11.2 or later.

The tutorials assume you have your development environment ready to go and that you are able to:
  1. Play Daggerfall Unity directly inside of the Unity 2019.4.10f1 editor from your clone of the source code.
  2. Create a local build of Daggerfall Unity from your clone of the source code.
  3. Edit source files with a text editor or IDE such as Visual Studio Code.
If you get stuck with setting up the basics above, please reach out to community here or on one of the Unity community hubs. There are also many excellent learning resources for Unity available freely around the web.

Re: Daggerfall Unity Localization Preview

Posted: Sat Apr 03, 2021 10:27 pm
by Interkarma
Please follow link below for Localization tutorial series.

https://www.dfworkshop.net/localizing-s ... ty-part-1/

Once Localization is out of Preview, this tutorial series will be moved to pages under the Modding System documentation on main site.