Making changes to G&K xml

Kernel_Corn

Chieftain
Joined
Jun 30, 2012
Messages
9
I've played a couple of games of Gods & Kings and am enjoying the expansion pack, however there are a couple of things I want to change in the game.

1) I've found where the xmls for Gods & Kings are, but I can't find where the project xml is. (I like playing with the Manhattan project disabled).

2) How do I reduce the bonus siege units get against cities? I see each unit has "<CombatClass>UNITCOMBAT_SIEGE</CombatClass>" I assume there is a UNITCOMBAT_SIEGE variable somewhere I can change?
 
Hello.

Projects may be in buildings.xml but I am not sure. Anyway, here is what I advise you: do yourself a favor and download Notepad++ from Sourceforge. Open some LUA file in it, then hit Ctrl+Shift+F, it will open a search box to search in *all* files at once. Fix the options so that it looks in all directories under "assets/XML" and search for "Manhattan" and "UNITCOMBAT_SIEGE".

Notepad++, one of your best friends when it comes to civ5 modding. ;)
 
notepad++ :love::love::love: I use it since my first steps in modding... years ago ! Notepad++ & totalcommander... two softwares for eternity !

I'm not sure but I thing you will need to use mod to change game's data. Every things I tried didn't work very well until I use mod to apply changes.
 
Thanks.
I have downloaded notepad++, I can't find the Manhattan Project as such but as the two atomic weapons both appeared in the search I modified their range to zero.

I can't find where to modify the UNITCOMBAT_SIEGE though. It is found in a few different files but none of them pertain to changing what the siege class of units do.

Is this the right place to be searching for XML files:
"C:\Program Files (x86)\Steam\SteamApps\common\sid meier's civilization v\Assets\DLC\Expansion"
 
The file you are looking for is CIV5UnitPromotions. The promotion is called PROMOTION_CITY_SIEGE
 
Cool, I've changed the cityattack value under the PROMOTION_CITY_SIEGE from 200 to 0.

However my rocket artillery is still doing the same damage (140 odd to strength 65 cities). Is this the wrong variable to change or should I go the route of using a mod instead of just changing the data, as Vrijeleeuw suggested?
 
Did the unit still have the +200% modifier? If so you may need to start a new game. Although making a mod that does this would undoubtedly be better. If the 200% modifier was removed perhaps you need to adjust the 'ignorebuildingdefense' to false on rocket artillery.
 
The unit does still have the +200% modifier displayed. I will finish off this game and then try another and see how things work out.
 
Brilliant this is working in the next game! :)
It still has the promotion icon with (200) but the +200% isn't displayed in the estimated outcome when you mouse over a city and it isn't applied to the actual combat.
 
Back
Top Bottom