Code Monkey home page Code Monkey logo

zloadings's Introduction

zLoadings

Plugin made in Union 1.0l for Gothic 1 and 2.

Usage

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 config

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"
    }
  ]
}

Language for text

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"
  }
}

zloadings's People

Contributors

franisz avatar

Watchers

 avatar  avatar

Forkers

oliwierox8

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.