Server Hosters may add some addons like any sounds, images, objects, textures. Here is you can know how to do this!
The tabs, which can already be seen on the whole page, should serve as an example.
To create your server addons you must use contentmaker. When you launch the app, you will be asked which packing mode you want:
Description of what each option does:
1 mode | This will scan the entire specified folder and give you an addons.jsonc. This is specifically designed for your hosting, to which you can simply upload these files. |
2 mode | This will scan the entire folder and give you the addons.jsonc and all packaged files in one .cbpak file. It will be easy to upload it to Google Drive, for example. |
3 mode | This will unpack the specified file in to the files that were packed before. |
After packing or scanning, you will be given a file that you need to edit, like this:
{
"serverfolder: Amber",
"files":
[
{
"url": "https://drive.usercontent.google.com/u/0/uc?id=1Asy8j4pdij3h_uHRqoPLPBxYP1NmynXT&export=download",
"export": "content.pak",
"hash": "b06767c62cf872341effae35c1120d10"
}
],
"roomtemplates": "addons/Amber/Data/rooms.ini"
}
After you edit addons.json
, you should upload that file to any suitable hosting, get a link and specify that link in the “contenturl”
setting. Also, addons should be in the server folder “addons”
, as well as in addons.jsonc
You can take a look at addons.jsonc
example:
What are the settings in
addons.jsonc
?
- All the settings you can see in addons.jsonc example.
How to create a new room?
- You need to create
.ini
file like inData\rooms.ini
but only with you new rooms. You can replace exist room by its name, but roomid will be taken from exist.
How would your .ini
look with new roomtemplates:
[room1_weaponary_lcz]
Descr = Weaponary storage room.
Mesh Path = ..\..\addons\Amber\Map\room1_weaponary_lcz.mesh
Shape = 1
Commonness = 0
DisableDecals = 2
Zone1 = 1
Additive = 1
AZone = 0
AChance = 0
ARoomID = 10000
You must specify this file in "roomtemplates"
in addons.jsonc
You must package files without a server folder, otherwise the folders will be duplicated, that is, specify the root folder with the files.
A file cannot exceed 256 megabytes and one .cbpak file cannot exceed 1.5 gigabytes. If the limit is exceeded, the .pak file will split into several suitable ones.
You can't pack exe, dll, etc. files.