# remove floodplains in Transoxania
for tuple in [(82, 47), (83, 46), (85, 49)]:
x, y = tuple
gc.getMap().plot(x, y).setFeatureType(-1, 0)
Traceback (most recent call last):
File "BugEventManager", line 400, in _handleDefaultEvent
File "CvRFCEventHandler", line 619, in onBeginGameTurn
File "Resources", line 220, in checkTurn
Not exactly my question but I think I figured it out anyway. I'm taking this step-by-step so I'm not that far yet.Editing the XML files alone won't do anything, the actual logic for assigning dynamic names is in Assets/Python/DynamicCivs.py. DynamicNames.xml is not a template but the source for generic text keys that do not belong to any particular civ (as you can see).
Yes, and I very much appreciate the support. That said, I think my and others' prior knowledge is sometimes overestimated when asking questions. For example, I'm not even sure how the infrastructure of this forum works tbh. Am I to take this to mean there is a way to quickly search the thread for a Notepad++ script, or are you just implying that I am equally capable to trudge through page by page until I stumble upon this particular post? If the former is true, I'd say that some (those who posted/read the post) are more qualified to search for it because they might have a better idea of what keywords were involved. If the latter is true, I would say some (those who posted/read the post) are more qualified to search for it as they might have a better idea of the general date of the post. Whereas me, who has never seen it could start from one of two places the first or last page... or perhaps the middle if I'm feeling whimsical.The point of this thread is to share expertise with people who don't have it, and I think we're all equally capable of searching this thread for a Notepad++ script![]()
Well, that really wasn't my intention, but not knowing how the search function worked, I thought it searched FOR threads not WITHIN threads it seemed to me that plugging away at the code (which I know how to search) was the logical way forward rather than blindly scanning the thread for something I could easily miss. Anyway, thanks again for the tips.Your post above really sounded like "if no one gives me what I need on a silver platter, I guess there is nothing I could do", which is not true.
from Npp import *
import re
start = int(notepad.prompt(notepad, 'Number of the new civ', "")) - 1
end = 54
editor.beginUndoAction()
for i in range(start, end):
ii = end + start - i
editor.rereplace(r"(Owner=|Reveal=|Player|,|Team=|TeamID=)" + "(" + str(ii) + ")([^1234567890])", r"($1)" + str(ii+1) + "($3)")
editor.endUndoAction()
This? I downloaded this. npppythonscript.sourceforge.net/You have to install python plugins for Notepad++.
That's only half true.It is easier to google if for yourself then me to explain it.
I understand that. My difficulty is not "not knowing what to do" but "not knowing what to look for". If this is a recipe, I'm still looking for the ingredients list and every resource I've found so far has clearly assumed I have this list and has launched into the steps.Believe me, acquiring the skill to locate readily available information on the internet will pay for itself quickly.