Lua Libraries for Civ5

From Civilization Modding Wiki
Jump to: navigation, search

This page is a part of the Lua and UI Reference.


Improving modularity and mods compatibility

Sometimes mods needs to modify the standard game files in order to achieve some features. Since only one mod can modify a given file a a time, this creates conflicts. Those libraries address those issues: all mods use the same file replacement and this one exposes a way to register new entries and such.

Name Author Description
Fully Modifyable Custom Notifications Sneaks Provides a non-conflicting way for mods to add custom notifications.
Modular Diplo Corner Whoward69 Provides a non-conflicting way for mods to add entries to the diplo corner menu. While Civ5 now offers a similar functionality in standard, this mod still offers the benefit to prevent compatibility issues between updated and outdated mods.
Modular Minimap Overlays Whoward69 Provides a non-conflicting way for mods to add entries to the minimap overlays menu.
Modular Summary Bar Whoward69 Provides a non-conflicting way for mods to add entries to the topmost bar, near the turn number.


Other libraries

Name Author Description
Border and Area Plot Iterators Whoward69 Provides iterators to enumerate plots in a given range and in different orders.
SaveUtils Whys Wrappers around the SetScriptData methods (partially deprecated) for conveniency purpose and mods conflicts prevention. See also Persisting data (Civ5).
TableSaverLoader Pazyryk Saves a Lua table into a custom data table. See also Persisting data (Civ5).