-
-
Notifications
You must be signed in to change notification settings - Fork 259
Image packs
Image packs contain images used to display creatures with set region colors.
To use image packs, they need to be defined in a file in the json folder in ASB. There is one official image pack file named imagePacks.json which will be overwritten on updates. To define custom image packs, the file needs to match the pattern imagePacks*.json, where * are any valid characters, e.g. imagePacks_custom.json.
For packs with a remote source only the "url" parameter is needed. For local packs, the url should be ommitted and the "name" property needs to be set (this will also be used as folder name), the other parameters are optional.
[
{
"url": "url to folder of image pack, ending with a slash",
"name": "image pack name",
"description": "",
"creator": ""
},
{
"name": "localImagePackFolder"
}
]If an image pack is only local, this is not needed. Each image pack with remote update capability needs a manifest file directly in the images folder named _manifest.json that contains all the images in that pack. It contains one object "files" that has key values for each available file and a value with the file hash values. For reference see the official images pack.
{
"files": {
"!info.json": {
"version": "1",
"metadata": {
"name": "image pack name",
"description": "",
"creator": ""
}
},
"Argentavis_ASA.png": { "hash": "md5:278dae53344253b5552c695b93daec9a:98245" },
"Argentavis_ASA_m.png": { "hash": "md5:278dae21b53633be572cc9cb9cdaec9a:68744" }
}
}The preference order of the image packs can be set in the app via Settings - Image Packs…. If some species should prefer images of other image packs, a custom preference file can be created in the json folder named preferImagePacks.json that contains key value pairs of a species name (or blueprint path) and the name of the image pack. E.g.
{
"Argentavis": "my image pack"
}