Lua Libraries for Civ5: Difference between revisions

From Civilization Modding Wiki
Jump to navigationJump to search
No edit summary
mNo edit summary
 
Line 2: Line 2:




== Libraries that improve mods compatibility ==
= 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.
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.
{| cellpadding="4"
{| cellpadding="4"
Line 28: Line 28:




== Other libraries ==
= Other libraries =
{| cellpadding="4"
{| cellpadding="4"
|-
|-

Latest revision as of 12:11, 25 September 2012

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).