Lua Libraries for Civ5: Difference between revisions

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




== Libraries that improve 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.
{| cellpadding="4"
{| cellpadding="4"
|-
|-
Line 8: Line 10:
!Description
!Description
|-
|-
|[http://forums.civfanatics.com/showthread.php?t=474634 Border and Area Plot Iterators]
|valign="top" |[http://forums.civfanatics.com/showthread.php?t=411186 Fully Modifyable Custom Notifications]
|''Whoward69''
|valign="top" |''Sneaks''
|Provides iterators to enumerate plots in a given range and in different orders.
|Provides a non-conflicting way for mods to add custom notifications.
|-
|-
|valign="top" |[http://forums.civfanatics.com/showthread.php?p=11394279 Modular Diplo Corner]
|valign="top" |[http://forums.civfanatics.com/showthread.php?p=11394279 Modular Diplo Corner]
|valign="top" |''Whoward69''
|valign="top" |''Whoward69''
|Provides a non-conflicting way for mods to add entries to the diplo corner menu. While G&K now offers a similar functionality this mod prevents compatibility issues with both updated and outdated mods.
|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.
|-
|-
|valign="top" |[http://forums.civfanatics.com/showthread.php?t=458740 Modular Minimap Overlays]
|valign="top" |[http://forums.civfanatics.com/showthread.php?t=458740 Modular Minimap Overlays]
Line 23: Line 25:
|valign="top" |''Whoward69''
|valign="top" |''Whoward69''
|Provides a non-conflicting way for mods to add entries to the topmost bar, near the turn number.
|Provides a non-conflicting way for mods to add entries to the topmost bar, near the turn number.
|}
== Other libraries ==
{| cellpadding="4"
|-
!Name
!Author
!Description
|-
|[http://forums.civfanatics.com/showthread.php?t=474634 Border and Area Plot Iterators]
|''Whoward69''
|Provides iterators to enumerate plots in a given range and in different orders.
|-
|-
|[http://forums.civfanatics.com/showthread.php?t=392958 SaveUtils]  
|[http://forums.civfanatics.com/showthread.php?t=392958 SaveUtils]  

Revision as of 15:23, 22 September 2012

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


Libraries that improve 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).