Civ5 Modding Tutorials: Difference between revisions

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


= Tutorials =
= Tutorials =
See also the [http://forums.civfanatics.com/forumdisplay.php?f=394&order=desc&page=2 Modding tutorials section] on the forums.
See also the [http://forums.civfanatics.com/forumdisplay.php?f=394&order=desc&page=2 Modding tutorials section] on the forums.<br/>
Also note that the [[Civ5 XML Reference|XML]] and [[Lua and UI Reference|Lua]] sections each contain specific tutorials.
 


== Common tasks ==
== Common tasks ==
Line 24: Line 26:


== Background ==
== Background ==
* [http://forums.civfanatics.com/showthread.php?t=461552 UI Tutorial]
* [http://forums.civfanatics.com/showthread.php?t=463429 Deleting data rows]
* [http://forums.civfanatics.com/showthread.php?t=449431 Adding data rows to use in Lua]
* [http://forums.civfanatics.com/showthread.php?t=449431 Adding data rows to use in Lua]
* [http://forums.civfanatics.com/showthread.php?t=459392 Create and use DDS textures]
* [http://forums.civfanatics.com/showthread.php?t=459392 Create and use DDS textures]
Line 34: Line 34:
* [http://forums.civfanatics.com/showthread.php?t=394056 Import civ4 units into civ5]
* [http://forums.civfanatics.com/showthread.php?t=394056 Import civ4 units into civ5]
* [http://forums.civfanatics.com/showthread.php?t=405148 Locking techs on a civilization basis]
* [http://forums.civfanatics.com/showthread.php?t=405148 Locking techs on a civilization basis]
* [http://forums.civfanatics.com/showthread.php?p=11575962 Register a mod in the diplo corner menu]
* [http://forums.2kgames.com/showthread.php?107336-Changing-boolean-to-false-XML-gotcha Changing booleans to false in the data tables]
* [http://forums.civfanatics.com/showthread.php?t=396911 Making units that use Civ5 animations]
* [http://forums.civfanatics.com/showthread.php?t=396911 Making units that use Civ5 animations]
== Lua-specific resources ==
* [http://www.lua.org/pil/index.html Lua manual]
* [http://www.lua.org/manual/5.1/ Lua reference]

Revision as of 18:13, 2 September 2012

Getting started

Get a tour.

If you have no idea about modding and what are Lua and Xml, you should give a look at Civ5 Modding Explained.

Read the guide.

The best introduction to civ5 modding is still the Kael's Guide. However it was written a long time ago and some informations are obsolete or missing.

Import your files into VFS.

The main change since Kael wrote his guide is about the VFS (Virtual File System). Basically you should include your textures, UI and lua files into the VFS. In ModBuddy, select those files, hit F4 to open the properties window, check "import into VFS". Forgetting this is a common cause of troubles for beginners.

Get the right tools for the job.

See Civ5 Useful Programs. You should have installed the SDK of course, but it is also strongly recommended that you get a tool to search in all civ5 files at once, to compensate for the lack of documentation. You may also need additional softwares to extract and read the textures and such.

Modify your ini files.

In config.ini, set LoggingEnabled, EnableLuaDebugLibrary and DebugPanel to 1. In usersettings.ini, set DebugMode to 1. Those files are located in My Documents/My Games/Sid Meiers' Civilization V.


Tutorials

See also the Modding tutorials section on the forums.
Also note that the XML and Lua sections each contain specific tutorials.


Common tasks


Background


Specific topics