merijn_v1
Black Belt
EDIT:
Nevermind. I found it. (plot.getRegionID())
[(x, y) for x in range(iWorldX) for y in range(iWorldY) if gc.getMap().plot(x,y).isCore(iPlayer)]
You would need to loop over all plots on the map, for example:
Code:[(x, y) for x in range(iWorldX) for y in range(iWorldY) if gc.getMap().plot(x,y).isCore(iPlayer)]
I know the code is currently kind of schizophrenic on what method to use, currently all "give me all plots" use cases use Python (not editable) and all "check if plot is core" uses the DLL (editable).
Changing settler maps will only be persistent throughout the ongoing game. getMapValue is simply a utility method to retrieve a value from the predefined map in the SettlerMaps module. bChanged simply specifies if the changed settler map from the extra dictionary should be used (some civs change their historical areas along the way, for example HRE -> Austria).
For a permanent change, the settler map still needs to be edited. To do that programmatically, the best approach should be to edit the settler map for the ongoing map and then add an option to output the current map in Python format for convenient pasting into the corresponding file.
utils = RFCUtils()
import RFCUtils
utils = RFCUtils.RFCUtils()
from RFCUtils import utils
As for the last question, CIV4CivicOptionInfos.xml
How do modders get anything done like this?
You can find the DoC Reformation implementation in Assets\Python\Religions.py, from line 447 on. The entry point is the onTechAcquired method which checks for Printing Press and Catholic state religion, and proceeds from there. Depending on your base mod it should have a Python file that is called EventManager or something similar, where the onTechAcquired method exists as well. You can either copy DoC by creating your own Religions file (then the onTechAcquired method in the event manager has to call its counterpart in Religions) or just implement everything in the event manager itself.1. How do I use the reformation mechanic and adapt it for my own purposes?
That's in the DLL unfortunately. The current spread rules are in CvCity::doReligion().2. How do I alter religious spread rules?
By not removing/greening out stuff unless we know it won't have any negative side effects.![]()
What exactly do you want to transfer from Legends of Revolution anyway?
Why not simply paste the English text for the other languages?
There is a problem with line 1950 in victory.py
I've attached the file. I would appreciate it if someone could take a look at it for me.