Modders Guide to Civilization V

Am I missing some big point about SDK?

Different sizes of the same icon are used in various areas of the game and you need to create each of these sizes depending on what your modding. There is a little text file that comes with the templates that tells you which template sizes an element (i.e. unit icon, civ icon) needs to have.

Easiest way is to use the largest 256x256 template and then resize it to the other sizes as Kael suggests. Also, always remember to set VFS to true under the properties of each image file you import into ModBuddy for any mods your creating.
 
Thanks but I think I get what to do with them.
My issue is not being able to find them.
 
yep and used it many times.
somehow I just didn't recognise the name of what I passed though ever time I went to worldbuilder or started playing with mods.
thanks found it now
Is 27 to early to go senile?
 
Hi everyone,

I've been lurking this thread for a while now and have been inspired to make my own civilization...however, I simply cannot get it to show up in-game when I load my mod. I followed all of the instructions in the guide as much as I could...I skipped some steps because all I wanted to do was add a civilization with 1 new unit and building.

Anyway, after following all the instructions and double-checking my files...I can't for the life of me figure out what is wrong that prevents it from showing up as a playable civ. Can anybody please help me with this? It's my first time modding anything and this is driving me bonkers (as I have no experience in modding previously).

I've zipped and uploaded my "build" files here. If anybody can tell me what I did wrong or at least help me figure it out, I would greatly appreciate it.
 
For reference to the above, my Database.log file says the following:

[4501.658] constraint failed
[4501.658] While executing - 'INSERT INTO ArtDefine_StrategicView(StrategicViewType, TileType, Asset) VALUES(?,?,?)'
[4503.592] Validating Foreign Key Constraints...
[4504.513] Passed Validation.
[4504.903]
-- SQLite Memory Statistics --
Memory Usage:
[Cur] [Max]
Malloc: 286312 2390720
PageCache: 2928 3636
LookAside: 45 1878
Scratch: 0 1

Static Buffer Overflows:
[TooLarge] [NoSpace]
PageCache: 0 0
Scratch: 0 0

Largest Allocations:
Malloc: 65280
PageCache: 1160
Scratch: 5128

Prepared Statements:
Current: 5
------------------------------
 
For reference to the above, my Database.log file says the following:

SNIP

You either missed a bit, or haven't fully enabled logging on your system

Code:
[5847.869] Database::XMLSerializer (XML/Civilizations/Civ_Serbia.xml): 'Row' or 'Delete' expected, got 'CivilizationType'.
[5847.884] table Buildings has no column named BuildingType
[5847.884] In Query - insert into Buildings('BuildingType', 'YieldType', 'Yield') values (?, ?, ?);
[5847.884] In XMLSerializer while updating table Buildings from file XML/Buildings/CIV5Buildings.xml.
[5847.884] Database::XMLSerializer (XML/Units/civ5artdefines_units.xml): 'Row' or 'Delete' expected, got 'Type'.

You also need to learn about the differences between "Actions, OnModActivated, UpdateDatabase" and "Import into VFS = true" (XML/Units/civ5artdefines_units.xml is the latter, not the former)

Once you've fixed those (and imported all the DDS images), your civ will show and (might) be playable by a human, but it won't be usable by the AI as you have no "flavors" defined.

6840239561_f1c4c94581.jpg
 
Thank you for your help!!

You either missed a bit, or haven't fully enabled logging on your system

What I pasted was literally everything that I saw in Database.log. I don't remember having made any changes to that...how would I go about enabling logging fully??

Other than that, I made the change to that one file you mentioned...my understanding is that the files that are adding entries (as in the civilization, buildings, units, text, etc.) are simply to be updated in the database, whereas other files (such as the civ5artdefines_units) are replacing existing files, and as such need to be imported into the virtual file system.

As for the errors in the log you provided:

Code:
[5847.869] Database::XMLSerializer (XML/Civilizations/Civ_Serbia.xml): 'Row' or 'Delete' expected, got 'CivilizationType'.
[5847.884] table Buildings has no column named BuildingType
[5847.884] In Query - insert into Buildings('BuildingType', 'YieldType', 'Yield') values (?, ?, ?);
[5847.884] In XMLSerializer while updating table Buildings from file XML/Buildings/CIV5Buildings.xml.
[5847.884] Database::XMLSerializer (XML/Units/civ5artdefines_units.xml): 'Row' or 'Delete' expected, got 'Type'.

I've located the reference to the first error message, but I can't figure out what the rest are saying. I got my civ to show up by fixing an error in the civilization's XML file (the offending entry was for a unique building...I forgot to wrap it with BuildingClassOverrides tags...). I'm getting an error from the graphics files though, which is making it nearly unplayable. I'll try re-making them (I got an error the first time around when exporting .dds files, apparently if the layers aren't all merged it causes a fuss) and hopefully that'll fix most of the problems.

I think if I can get this one civ going, the rest will all be very easy....I plan do be doing quite a bit of modding :)
 
Adding to the above, I've noticed that my unique building is not available (hence all the building error messages)..I'll have to go through them once I get my own log working correctly.

On a side note, I've lost the ability to scroll through Civilizations on the "basic" set up screen...is there a reason for that? It literally does not let me scroll down to select anything past Elizabeth.
 
I'm just posting to confirm that I've figured everything out, I've actually made 5 complete civs as of now (the only things I haven't changed are unit art and leader animations). Thanks for the help!
 
I am having problem loading the SDK because of this problem. can anyone help me out with this problem because i have really cool idea that would be a very good game to play in Civ 5
 

Attachments

  • problem.png
    problem.png
    241.4 KB · Views: 68
on win7 it would be something like that : "C:\Users\YourUserName\Documents\My Games\Sid Meier's Civilization 5"
 
Hi, I am wondering if there is any space mods for Civ 5, because i need that kind of background and design for one of my mod ideas. Thanks:confused:
 
Hi, I was wondering if it's possible to add more than 2 unique units for civilizations in Civ 5, than the 2 standard special units. Thanks.
 
Hi, I was wondering if it's possible to add more than 2 unique units for civilizations in Civ 5, than the 2 standard special units. Thanks.

of course you can.
 
And what do I have to do in order to accomplish that? I want to add more units, some unique for some civilizations, so I have added a XML text for a new unique unit as a test and I can't use it in the game.
 
Thanks, the mods are interesting. And although they don't quite exactly help me. I need to know how to add UU in vanilla.
 
Thanks, the mods are interesting. And although they don't quite exactly help me. I need to know how to add UU in vanilla.

Without making a mod ? Hacking in the original files is not recommanded... It can be done, but you wont find example on how to. The previously cited mods will give you an idea of what files to hack thus.
 
Back
Top Bottom