Description
===========
This game officially supports modifying the game assets. The game has a simple modding system to not get in conflict with the patching mechanism. If something with modding is unclear or not explained well enough, let the developers know about.


What can be modded?
===================
Basically you can modify all fonts, graphics, music, shaders and sounds.
We also allow more than one file format, where the most used are shown below:
- Fonts: OTF and TTF.
- Graphics: PNG and BMP.
- Music: FLAC, MP3 (experimental), OGG and WAV.
- Shaders: FRAG, GEOM and VERT.
- Sounds: OGG and WAV.

The ordering of file extensions also decide the loading priority.
That means, if you have a PNG and BMP file with the same name, it will always load the PNG.

What is the purpose?
====================
You have your own ship skin, and you don't want to lose it after every new patch.
The idea is:
- to no longer have to change the original files from client.
- to have a better oversight of modified files.
- to allow per user modifications.
It also helps us developers to work more independent on server and client,
because the client could already have graphics that server still not uses.

When modding is enabled, the client will always try to find and use a modded file before using the original file. This also works independent of the file extensions.

Where and how do i add my mods?
===============================
As first, you start the game and type the chat command "/modding on", followed by "/modding open" to enable the modding system and open the folder in your Windows Explorer. There is a folder called "Mods" and the location of that folder is depending on how you have the game installed. The "Mods" folder should have been created automatically on game startup.

Installed the game using the installer:
"C:\Users\<USERNAME>\AppData\Local\InterAdventure Inc\HostileSpace Revived\Mods"
Where <USERNAME> = Your Windows user directory name.

Game got put into any folder a.k.a. "Portable":
"<PATH_TO_CLIENT>\Mods"
Where <PATH_TO_CLIENT> = The folder where "HSRClient.exe" lives.

To add a modded file, simply place it into the right folder inside "Mods" with the same name used by the client, then the game would try to load this one first. This simply means, you imitate the folder structure inside the "Mods" folder, f.e. to modify "hull5.png", you have to place it into "Mods\Graphics\Hulls". It also does not matter when the original were a file with PNG extension, the game always tries to find and load the modded file first, as long it has one of the allowed extensions.

Keep in mind, that adding/editing/removing mods require a client restart.

Why are my mods not in use by client?
=====================================
Either the modding system is not turned on, or your modded file is not at the right location. You can check the status of the modding system by typing "/modding" into the chat. This will tell you if the modding system is on and where the "Mods" folder is.

Why do i see magenta colored areas in the game?
===============================================
In this case, one of the graphics files failed to load. The client then just tries as best it can to use magenta placeholder images instead. This also helps us to much faster figure out what graphics are missed. If that happens without any mods, please report this!

Why does my client crash when using a mod?
==========================================
This can, f.e. happen, when the width and or the height of a graphic file has changed through a patch and your modded file still uses old sizes. When this happens, all you can do is to remove or update your modded file.


---
Author: 'Cisco'
Last change: {nodeFileChanged}
Source: Client development and old forum FAQ page
