Barathor
Emperor
- Joined
- May 7, 2011
- Messages
- 1,202
First, this is basically what I want to do.
I want to change MemberCount for Galleys (not Barbarian Galleys) from 2 to 1.
That's it.
But I'm having a lot of trouble with it, and my modification isn't being reflected in the game when I plop down the galley via Firetuner. I have everything else setup correctly besides the art defines. My unit is assigned ART_DEF_UNIT_GALLEY and I created a new entry for barbarian galleys which uses ART_DEF_UNIT_BARBARIAN_GALLEY. UNIT_GALLEY is set as the default unit for UNITCLASS_GALLEY and UNIT_BARBARIAN_GALLEY is added to the UnitClassOverrides for the Barb Civlization under UNITCLASS_GALLEY.
It all works out well... it's just that my normal galley graphics are still showing 2 boats! Why was this ever set to 2, all other naval units are 1... if this was just 1 like everything else I wouldn't have to worry about any of this ArtDefines stuff.
Am I missing anything?
I also set "Import into VFS" to True for the file. I also even added Civ5ArtDefines_UnitMembers.xml to the project (even though I'm not changing anything within it) and also set its VFS setting to True. Still no luck.
I want to change MemberCount for Galleys (not Barbarian Galleys) from 2 to 1.
That's it.

But I'm having a lot of trouble with it, and my modification isn't being reflected in the game when I plop down the galley via Firetuner. I have everything else setup correctly besides the art defines. My unit is assigned ART_DEF_UNIT_GALLEY and I created a new entry for barbarian galleys which uses ART_DEF_UNIT_BARBARIAN_GALLEY. UNIT_GALLEY is set as the default unit for UNITCLASS_GALLEY and UNIT_BARBARIAN_GALLEY is added to the UnitClassOverrides for the Barb Civlization under UNITCLASS_GALLEY.
It all works out well... it's just that my normal galley graphics are still showing 2 boats! Why was this ever set to 2, all other naval units are 1... if this was just 1 like everything else I wouldn't have to worry about any of this ArtDefines stuff.

- I copied the contents of the entire Civ5ArtDefines_Units.xml file and pasted it into a new XML file within my mod. I also copied the name over too so it's an exact replica. I did this because I read that it isn't fully integrated into the database since it isn't using the <GameData> field.
- I made my modifications to the <MemberCount> element under certain units and saved it (simply changing the number). Also, for units with a MemberCount of 1, I deleted the line which specified a Formation.
- I added Civ5ArtDefines.xml to my project's Actions using OnModActivated>UpdateDatabase. Also, if it even matters, I made it first on the list.
- I checked "Reload Unit System" under the project's "Mod Info".
Am I missing anything?
I also set "Import into VFS" to True for the file. I also even added Civ5ArtDefines_UnitMembers.xml to the project (even though I'm not changing anything within it) and also set its VFS setting to True. Still no luck.