Resizer 0.9

If you liked this item, please rate it up on Steam Workshop page.

Author: infixo

Last revision: 4 Jul, 2023 at 22:05 UTC

File size: 30.72 KB

On Steam Workshop

Description:

Description

This mod changes the size of selected building prefabs. It allows to adjust buildings to your liking if you find them too big or too small. For example – the Campus DLC buildings are somewhat "bulky" or Modern Japan CCP offices are really too big imho. With this mod you can adjust them as you please – see the screenshots.

Important note. The mod reads the settings from the user directory – you need to manually place the ResizerSettings.xml file into it. The mod contains a sample version that resizes several buildings from Modern Japan CCP and Campus DLC, making them smaller by approx. 10%.

Source code at GitHub[github.com]

How it works

1. The settings are loaded when the mod gets Enabled.
2. The actual resizing takes place when the game starts or is loaded. Please note that the changes are only applied in-memory, no game files are affected. When the mod is off, the buildings will look as usual.
3. The props attached to a building are also shifted to new positions. You can choose to shift all props or only a subset that usually is "glued" to a bulding (i.e. lights, doors, roof elements, etc.)
4. Since the prefabs reside in the memory between reloads, the mod ensures that each prefab is resized only once.

Settings

1. Section "DefaultProps". A list of props that will be shifted. A prop is shifted if part of its name is found on the list.
2. Section "PrefabsToResize". Specify:
– name – letter casing doesn’t matter, but names must fully match
– x, y, z – scale for each respective axis; please note that in CSL width is X, height is Y and depth is Z; these are float numbers with dot as decimal point
– props="all" – adding this will shift all props attached to a prefab
3. If there is an issue with .xml file, the mod will not resize any prefab. You can check in output_log.txt if the file was loaded correctly. There will be something like this:

Infixo.Resizer methods patched OK Infixo.Resizer …method InitializePrefab Resizer settings: === default props === door marker|billboard|wall|logo|roof|flood light|ac box|rotating ac|light pole|solar panel|antenna|neon|organic shop 3d sign|air source heat pump|ventilation pipe|invisible helipad marker|radio mast|maru_light Resizer settings: === prefabs === Prefab: Liberal Arts Dormitory 01 Scale: (0.95, 0.85, 1.00) Props: all Prefab: Liberal Arts Laboratories 01 Scale: (0.95, 0.90, 0.95) Props: all

Compatibility

The mod adds a postfix to BuildingInfo.InitializePrefab(), so it should be compatible with everything.
No info is written into a save file. The mod can be turned on and off at any time.

Limitations

1. Sub-buildings are not supported.
2. Only props are shifted. Paths are not shifted.
3. There is some calculated data in each prefab (generatedInfo) that stays the same. I don’t want to mess with it unless it will be absolutely necessary.

Download
Required items:

Click the title to search on this site.


Harmony 2.2.2-0 (Mod Dependency)Steam Workshop