Plugin made in Union 1.0l for Gothic 1 and 2.
This plugin allows creating random loading screens in a very convenient way. All required files can be packed into one .mod
/.vdf
file.
- Plugin file:
zLoadings.dll
has to be put in\System\Autorun\
. - Config file:
zLoadings.json
has to be put in\System\
. - Text background texture:
ZLOADING_BACKGROUND-C.tex
. - Textures for loading screens.
Json file contains an array of loadings with defined texture name and completely optional text
object with text that can appear on load.
-
Single loading object with text
{ "splash": "ZLOADING_ORCTEMPEL", "text": { "eng": "Sleeper Temple", "pol": "Świątynia Śniącego", "rus": "Храм Спящего", "ger": "Tempel des Schläfers" } }
-
Optionally, different font can be set for text on loadings.
{ "font": "FONT_SCREEN", "loadings": [] }
Example config file
{
"font": "FONT_SCREEN",
"loadings": [
{
"splash": "ZLOADING_MOE"
},
{
"splash": "ZLOADING_FOREST"
},
{
"splash": "ZLOADING_ORCTEMPEL",
"text": {
"eng": "Sleeper Temple",
"pol": "Świątynia Śniącego",
"rus": "Храм Спящего",
"ger": "Tempel des Schläfers"
}
},
{
"splash": "ZLOADING_RIVER_1"
},
{
"splash": "ZLOADING_RIVER_2"
}
]
}
Json is using UTF-8 encoding and Union is using ANSI, so it will be converted based on Language
symbol in [CORE]
section from SystemPack.ini
.
- The default symbol is based on system language, but it can be changed as desired.
- In order for the text to appear, text matching the symbol has to be defined in the config file.
- At the same time this allows to create multilanguage plugin and easily add translations for other languages.
- If there is no match, that loading screen will be simply displayed without any text.
{
"splash": "ZLOADING_ORCTEMPEL",
"text": {
"eng": "Sleeper Temple",
"pol": "Świątynia Śniącego",
"rus": "Храм Спящего",
"ger": "Tempel des Schläfers"
}
}