Show Building Slot Capacity [beta for 3.9]

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

Author: forbiddenlake

Last revision: 6 Oct, 2023 at 02:00 UTC

File size: 207.87 KB

On Steam Workshop

Description:
About

This mod displays your currently-built building count on the planet view, and details where the building slots are coming from on the tooltip.

Useful for example for knowing how many city districts you are wasting after you’ve researched some techs or taken some traditions.

Compatibility

Not achievement compatible.

Not compatible with any other mod that changes the planet view (planet_view.gui). I have compatibility mods, use only one:

Compatible with mods:

Save game compatible.

Load Order

Does not matter, as this is the vanilla mod and you have no other mods conflicting, right?

Localisation

Everything is localised using VANILLA strings, so it should be close, but I only speak English and it might sound weird in places.

Known Issues

Due to supporting other mods, you may find messages like the following in your error log, but, they are harmless:

[15:36:43][trigger_impl.cpp:13953]: script error, has_edict is using an invalid edict key: architectonic_base. file: script value bslot_from_edicts at file: script value bslot_capacity at file: script value bslot_free at file: common/scripted_loc/fl_bslot_scripted_loc.txt line: 65 line: 1 line: 1 line: 1 [15:36:43][trigger_impl.cpp:10587]: num_districts trigger uses inexistent district: district_storage. file: script value bslot_from_housing at file: script value bslot_capacity at file: script value bslot_free at file: common/scripted_loc/fl_bslot_scripted_loc.txt line: 71 line: 1 line: 1 line: 1

Modder Info

The mod takes planet_view.gui and makes only two additions: some variables, and an effectButtonType named fl_planet_num_buildings. As part of my automation it does re-flow the file using this[github.com].

Notes

Source code is on GitHub[github.com].

The tooltip will not display most modifiers that are zero, but to test everything out you can select a planet then paste this in the console:

effect custom_tooltip = $fl_num_building_long_static$