Modmodding Q&A Thread

Then I will have to try the Tokyo and Kyoto names.... probably won't work either.
That's exactly where I failed ... I also don't like the romaji form with ou, even though it best reflects how it works in kana.
 
there was some discussion of this issue in the RFCE forum, quite a while ago.

It was actually about the Russian characters used in the gamefont, which ruined the special characters of the Latin script. So the Russian characters were removed and the Latin characters installed back again.



But I did see this change in the RFCE changelog:
Code:
- Added compatibility for the Latin-1 set for provinces, so we can have all Latin-1 characters in the province names

Maybe this can help. I will look which lines are changed that made this possible.


EDIT: Never mind. It only applies for texts that are in the XML text folder, which python only directs to with the LocalText.getText. I will probably not work with the CNM. Anyway, here below is the link to the change that will make it possible (IIRC). Maybe it can still be used.
http://sourceforge.net/p/rfceurope/...MapUtil.py?diff=519c8dde5fcbc90828f8b020:1051
 
The 1.11 history file in the main mod folder should mention which SVN revision it corresponds to, simply update your SVN repository to that revision and use its source files.

Oh. it's svn 540. You already made more than 100 updates since 1.11v release :lol:
 
Well, I'd like to belate a unit production. In my case, I'd like to make Machine Gun available only with Artillery tech.
I've tried to change this line in CIV4UnitInfos.xml file:

<PrereqTech>TECH_RAILROAD</PrereqTech>

by the substitution of "RAILROAD" with "ARTILLERY", but it doesn't work.
 
Have you checked if the Artillery tech tag is actually TECH_ARTILLERY?

How does it not work? Does the mod crash? Does everything work but the change doesn't take effect?
 
Have you checked if the Artillery tech tag is actually TECH_ARTILLERY?

How does it not work? Does the mod crash? Does everything work but the change doesn't take effect?

Yes, it's "TECH_ARTILLERY"

The mod crash while is loading. The first XML Load Error is that on the picture, then it compares this error:
"LoadXML call failed for Units/CIV4UnitInfos.xml"
and several other errors about every unit.

EDIT
Italian words after "Reason:" in the image mean "Invalid at first level of the file"
 

Attachments

  • Immagine.png
    Immagine.png
    13 KB · Views: 63
It says Line 1, 1 which means that the file is not accepted in the first place. Are you on a Mac?

Otherwise, try with Notepad++, it's free and it's good.

Edit: I suppose you can't be on a Mac since this Mod has its own dll. Anyway, it means File not understood, for whatever reason.
 
It says Line 1, 1 which means that the file is not accepted in the first place. Are you on a Mac?

Otherwise, try with Notepad++, it's free and it's good.

Edit: I suppose you can't be on a Mac since this Mod has its own dll. Anyway, it means File not understood, for whatever reason.

I'm not on a Mac. I'll try Notepad++.

EDIT
Same result :(
 
In the error message there are some unusual characters at the beginning of that line, do they show up when you open the file in Notepad++? They're not supposed to be there and are likely what's screwing up the XML parsing.
 
In the error message there are some unusual characters at the beginning of that line, do they show up when you open the file in Notepad++? They're not supposed to be there and are likely what's screwing up the XML parsing.

This is what I can see when I open the file in Notepad++. It works fine until I try to edit this file just like I described before with Artillery instead of Railroad.
 

Attachments

  • Immagine.png
    Immagine.png
    156.7 KB · Views: 94
Maybe it's a language specific thing? Not sure.
 
I got this Python Exception... is it related to the CNM?
I'm adding around 35 (or maybe more) names for Jerusalem, and this Pythex happen when I'm testing whether the names work using WB.
Spoiler :
Civ4_Screen_Shot0057.jpg
 
Haha no idea what's going on there.
 
@ Borhap

I had the same problem some time ago, when I still edited XML files with just plain notepad. That convinced me to switching to Notepad++, which solved the issue.

You should delete the file you edited (also if you have reverted the changes) and download the file again. Then, make the changes with Notepad++. (This worked for me)

I guess the problem is connected to the saving of the file with the text editor you (and I when I had the problem) used.
 
@borhap again: as merijn said.

I finally found the technical explanation given some time ago by God-Emperor and it is here.
 
Back
Top Bottom