Removing City Defenders?


Good Morning

Question for the modders out there. Is it possible to remove existing city defenders via modding ...ie without deleting them in the core files? Is it possible to control the number and type being removed?

 

Is it perhaps possible to add a negative number of units in a mod to cancel out the ones in CoreImprovements.xml ??                              EDIT -- tested this theory out to the crashing of the game every time I built my first city...this doesn't work.

 

2,669 views 3 replies
Reply #1 Top

Removing city defenders will alow human player to take ai cities very easily just using scouts! 

Who conquers most cities and thus mostly fights their defenders? It's humanplayer.  So, i think ai has more benefits from city defenders.

Reply #2 Top

I think he wants to place custom defenders for each town type (using your mod stuff as a basis) as he mentioned in another thread.  So town, fortress, conclave would have the custom troops but not the original default ones, so they would be customised without making the town incredibly difficult to capture.

Reply #3 Top

Quoting StevenAus, reply 2

I think he wants to place custom defenders for each town type (using your mod stuff as a basis) as he mentioned in another thread.  So town, fortress, conclave would have the custom troops but not the original default ones, so they would be customised without making the town incredibly difficult to capture.

That is correct. I plan to replace them. I really do like the concept of unique defenders as webusver laid out in his patchwork mod. I just was not very satisfied with the details of those unique defenders in terms of base game balance. They were too strong and there were too many units defending.

As such, I've remade the units so that they are better balanced with the units offered in the base game. This takes care of the first half.

Now, for the second half, I'm trying to figure a way to remove existing city defenders from the CoreImprovements.xml file WITHOUT having to modify the file directly.....so that it's easy for users to just copy the mod into the mod directory and have it work properly.

I'm appealing to the community in case there is someone who already has experience in how the CoreImprovements.xml file can be overwritten from the mods directory.....so that I can get the code done promptly and upload the mod.

Comments? Thoughts?

 

 

I'm going to try duplicate the CityHub portion of the CoreImprovements.xml file and see if the details can be overwritten that way. (I have the feeling though that the results will just be duplicated.)                                 EDIT -- well, that didn't work.

 

It looks like I'm done to one of two options. Either I rebuild the ENTIRE city hub tree with the updated city defenders and rewrite all the links connected to the hubs (that's extensive) OR I modify the file directly.

Does anyone have a third option?