Modding General Info
Kubifaktorium
Adding new objects
In order to create a new object it is best to start with and copy an existing thing. E.g. if you want to make an ogre, you could copy the ObjectType/actors/Slime folder and rename everything to Ogre.
When restarting the game, the ogre should show up in the game.
Editing the VOX files
You can edit the voxel model by using a program like MagicaVoxel.
- Important: When making an animation, all frames need to have the same size setting, otherwise the game cannot import them correctly.
- Building models: The first frames of your voxel animation are the build frames, i.e. the different stages during construction. The frames after are the frames used for the animation when it is built or producing.
Editing the XML files
You can edit the object’s properties by editing the xml-file in a text editor. The documentation for what each field does can be found here.
In general, adding Info-blocks adds a new kind of behaviour or property to an object. For example, adding a MiningInfo allows your colonists to harvest it.
Some general remarks:
- Boolean values can be specified as 0 (false) or 1 (true)
- String[] values can be given as a comma separated list
- Colors can be given via hex code, e.g. #8EE45C
- Factions can be Player, Neutral or Enemy
- NumRange is a range of ints, e.g. 5:8
- Recipies have the format Input=Output=Time, e.g. 2*Log=WoodenBoard=16
This is a first draft so things are likely unclear or incomplete. If some information is missing, please contact me (info@bossconstructor.de) and I’ll add it for the next version!
Creating localizations (translations)
In order to create a new localization, do the following:
- Locate and go to your unity3d/Unity Technologies/Unity Labs/Kubifaktorium/.
- There you will find a file named LocalizationTemplate.txt.
- Create a folder StreamingAssets/Localization/[Your Language]
- Copy the template to that folder and name it [Your Language].txt
- Afterwards, you should be able to select your language in the settings menu. Note that changing it requires you to restart the game.
- Edit [Your Language].txt to fit your language. (the hard part…)
- Use _ to denote hyphenation-spots.
- Strings that are not translated will be taken from the fallback language you specify at the top of your language file.