Civ 5 Tutorials & Notes
Words wot I have wrote!
Give someone a fish, and tomorrow they'll be back for another.
Teach someone to fish, and tomorrow they'll leave you alone!
Using Mods
Debugging
General
- My Changes mod - add your own XML/SQL/LUA/UI
- File attributes/properties - Is that VFS, InGameUIAddin or UpdateDatabase?
- Tables with both ID and Type columns
- UTF-8 not UTF-16
- DeleteMissingReferences Correct Syntax
- Modding.OpenSaveData() for beginners
- Weirdness in the VFS
- Culture Buildings - Vanilla and G&K cross-compatibility
- Lua table.sort oddity
Standard datafiles
DDS image production
Modding Examples
- Location Based Settlement Names
- Adding an era using relative techniques
- City State Quests with XML and Lua
- How to use the Custom Mission events (post #1104)
- Durational Custom Missions
- If there was a UnitCaptured event ...
- If there was a UnitDied event ... (battle events)
- Self-aware Units (Leader/Follower or Worker/Escort)
User Interface
- User Interface Components
- Create a Custom Game from a WB Scenario
- Animating the UI
- Less well known [ICON_XYZ] tags
- How to replace a popup
- SetText() on a Radio Button
Lua
- BNW Lua API Reference
- Why to use elseif
- Data driven code technique
- Calling a function from a string variable
- Border and Area plot iterators
- ShowInPedia for (almost) all primary tables
- ShowInTechTree for all tech dependant primary tables
- ShowInCityView for Buildings, Resources and Specialists
- Bug with rivers flowing out of lakes
SQL
DLL/C++
- Replacing hard-coded constants with database values
- Extending the Lua API
- Adding GameEvents
- Adding new columns to the database
- Adding new tables to the database
- Adding new primary tables to the database
- Persisting data with a saved game
- Communicating with the player