Logo Platform
logo amplifiers simplified

Help with Salting the Earth + Settlers

Reply
Copied to clipboard!
9 years ago
Feb 6, 2016, 8:01:49 PM
Hi all,



I've been working on a mod that would allow you to use a Salt the Earth city option during an ongoing ownership phase of a newly captured city using a base amount of production (rather than the city action phase like the regular salt the earth option does right now, so it doesn't happen immediately). I've got that all figured out and working well, but I'd like make this a purely "curb your power" move by the aggressor, where no settler spawns after the city is razed, since i feel that it would be easy to abuse being able to destroy a city and move your settler away from your enemy, but still be able to set up a new city closer to your others basically for free.



The problem I am running into is my inability to find where the settler being spawned from salting the earth is located in the .xml files. Does anyone have an idea of where the lines controlling the spawning of settlers from StE might be? Or if it's possible to get it to act like the Cultists' faction trait "Weapons of the Enemy"??
0Send private message
9 years ago
Feb 6, 2016, 11:30:38 PM
DepartmentOfIndustry+Constructibles[CityConstructibleAction] in the Simulation folder is the last place I've seen. I think it goes into the hard coding at that point.



Certain, specific things seem to be hard coded. I think this might be one of them.



If you do solve the problem, please do share how you did. smiley: smile
0Send private message
9 years ago
Apr 11, 2016, 12:19:41 PM
I'd be very interested in using this mod if you've managed to complete it. I was just looking into creating it myself when I saw this post!
0Send private message
9 years ago
Apr 11, 2016, 3:50:48 PM
Hello,



First, you'll nee to look at the file DepartmentOfIndustry+Constructibles[CityConstructibleAction].xml where you will find the city contructible Raze (which correspond to "Salting the Earth").



If you get rid of the line

$Property(ClassCity:Ownership) eq 1

then you won't need ownership à 100% anymore.



If you get rid of the line



then you won't have a settler created.



I hope it helps!
0Send private message
9 years ago
Apr 12, 2016, 4:21:11 PM
Pikou wrote:
Hello,



First, you'll nee to look at the file DepartmentOfIndustry+Constructibles[CityConstructibleAction].xml where you will find the city contructible Raze (which correspond to "Salting the Earth").



If you get rid of the line

$Property(ClassCity:Ownership) eq 1

then you won't need ownership à 100% anymore.



If you get rid of the line



then you won't have a settler created.



I hope it helps!




Thanks for the info! I went ahead and tried it for myself. I should preface this by saying I am a complete and utter stranger to modding.



So it didn't have the desired effect... I now have the option to Salt the Earth while a city is still in the partial ownership phase, but it doesn't actually do anything. I select it, and the next turn the city still stands, and the earth remains salt-free.
0Send private message
9 years ago
Apr 15, 2016, 7:53:49 PM
Got it working now, turns out if you get rid of the line







Then it doesn't recognize the action.
0Send private message
?

Click here to login

Reply
Comment