Lua Libraries for Civ5: Difference between revisions

From Civilization Modding Wiki
Jump to navigationJump to search
No edit summary
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:




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

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