Single Player bugs and crashes v38 plus (SVN) - After the 20th of February 2018

The city I used to know as Baghdad now comes up as Mad?nat as-Sal?m. Toffer those accents you're using (for whatever reason) aren't working.
I'm also getting TXT_KEY_CITY_NAME_CHUITO for that Inca city.
 
I'm not sure HOW this could be a problem specifically in PPIO, but maybe @Toffer90 could look into if the linking issue is causing a problem there, or if somehow the call to textkeywide is the issue. There would be a lot of other examples one could look at outside of this particular tag display, such as Withdraw VS, TXT_KEY_PROMOTION_WITHDRAW_VERSUS_TEXT, which also uses the same. That's used in some places on unitcombats I think.
PPIO simply display the tooltip string it gets from the dll. Almost, PPIO does remove links, but not the text of the link...
If it indeed is an issue with PPIO, then there is something special about this new text line you introduced that separates it from any other text strings passed to python by the dll for tooltips.
 
> Baghdad now comes up as Mad?nat as-Sal?m.
sounds forme as a UTF8 issue, wrong charset setting somewhere.

@Thunderbrd - you'r working on my CTD problem?

@Toffer90 - because that I uninstalled it, thought my installaton of PPIO would be wrong.
btw: How I can change the chars back to Arial, as I had it before? In what file the definitions of the charset is stored?
 
@Thunderbrd - you'r working on my CTD problem?
Was solved already and posted to the SVN.
If it indeed is an issue with PPIO, then there is something special about this new text line you introduced that separates it from any other text strings passed to python by the dll for tooltips.
I believe Kation and you worked that out to introduce the new way to link things. I haven't messed with that text line - it's not new. And it works fine on my end so the only factor I can see here is that he's using PPIO. That said, I understand your take too so maybe it's something on his unique file system.
 
> Baghdad now comes up as Mad?nat as-Sal?m.
sounds forme as a UTF8 issue, wrong charset setting somewhere.
I see, I used some special characters for some arab cities that the game evidently don't support. e.g. ţ ā ū ī ṣ ḍ Ṭ
I thought it would be okay as the game supports the Norse letters like ð and Þ

Will fix it soon.
I believe Kation and you worked that out to introduce the new way to link things. I haven't messed with that text line - it's not new. And it works fine on my end so the only factor I can see here is that he's using PPIO. That said, I understand your take too so maybe it's something on his unique file system.
I'll look into it when I get time.
 
Last edited:
@Thunderbrd - sorry, I'm not so familar with it. Can xyou give me a short info? Is there the possiblity to continue it (later)
@Toffer90 .- If you can set the game to use UTF8 charset, all special characters are possible. If you run charset Win 1252, you are restricted. Somewhere in system files should be the setting related. (other games do have it, Civ IV should have it , too)
 
I see, I used some special characters for some arab cities that the game evidently don't support. e.g. ţ ā ū ī ṣ ḍ Ṭ
I thought it would be okay as the game supports the Norse letters like ð and Þ

Will fix it soon.
Thanks. There is also the Khmer city Isvarapura (??varapura) which I reported a while back, and TXT_KEY_CITY_NAME_CHUITO
 
@Thunderbrd - sorry, I'm not so familar with it. Can xyou give me a short info? Is there the possiblity to continue it (later)
Just update the SVN (Right click on your repository and select update) and your game should be able to play fine and not crash now.
@Toffer90 .- If you can set the game to use UTF8 charset, all special characters are possible. If you run charset Win 1252, you are restricted. Somewhere in system files should be the setting related. (other games do have it, Civ IV should have it , too)
AIAndy knows more about this than I do if it's code related in any way. I thought he was working on making all font uses UTF8 compliant but maybe it doesn't work like I would think it does. I don't know where all that is done in the least, nor even what other options exist outside of UTF8.
 
@Thunderbrd - not working. just now updated to SVN rev 10491 and it is still the same: CTD
have MiniDump_10484.dmp attached
I'll try the save again. Strange it's not working for you - I clearly found the bug. Hmm...
 
@Toffer90 .- If you can set the game to use UTF8 charset, all special characters are possible. If you run charset Win 1252, you are restricted. Somewhere in system files should be the setting related. (other games do have it, Civ IV should have it , too)
Yeah, I don't know... The city name is encoded as UTF-8 in the xml file that holds it... Normally, when a font type don't have the character, it will show up as a rectangle, but in this case it showed up as question marks. I have no idea about what kind of text encoding the game uses internally, or how to change anything like that... The game uses the font type called sylfaen.

It may be a specific issue only for the city banners, that the letters work in other contexts in the game. I think the city banners are dealt with in the dll and that there may be a possibility to encode the name differently from the dll.

Here's one of the letters that showed up as a ? when displayed in the city banner: Link
I'm pretty sure the sylfaen typeface have this letter... If the city name stuff is handled by the exe then there is no chance for us to expand the character support for city names.

Edit: I reverted back to the strange letters to check one thing, and I found that the letters that show as question marks on the city banners doesn't show at all in the domestic advisor screen, just an empty space there.
I have a feeling it will be hard to figure out how to get those few special chars to show correctly in any context.
 
Last edited:
@Thunderbrd - not working. just now updated to SVN rev 10491 and it is still the same: CTD
have MiniDump_10484.dmp attached
Did you do a Re_Calc after you updated your Mod files from the SVN files for the Mod? It should've been a pop up right after the game loads. Always do the ReCalc when it asks.
 
Did you do a Re_Calc after you updated your Mod files from the SVN files for the Mod? It should've been a pop up right after the game loads. Always do the ReCalc when it asks.
That might work but I don't recall it was something necessary to have to do to get through the round successfully on my after debug test. I'm def gonna look into this later tonight as soon as I can. He might've found an entirely different problem.
 
@Thunderbrd - not working. just now updated to SVN rev 10491 and it is still the same: CTD
have MiniDump_10484.dmp attached
I went to your original saves. The first one you posted I had found a crash bug in. I was able to pass a turn after a recalc.
The last one you posted I was able to pass the turn without a crash. There must be something differing on your end in the file system or some overall game option you have on or off that I don't.
I'm posting the round after the first save you posted. Maybe the game can pick up from there for you without a crash?

We might have to do a complete game option audit here - I'm not talking about the game setup options but the core CivIV options you have selected, like quick combat and so on.

EDIT: The mini still shows a divide by zero error but won't take me to the line where it's happening. So unfortunately that's not helping and I'm not replicating the crash with any of your saves.
 

Attachments

Last edited:
I went to your original saves. The first one you posted I had found a crash bug in. I was able to pass a turn after a recalc.
The last one you posted I was able to pass the turn without a crash. There must be something differing on your end in the file system or some overall game option you have on or off that I don't.
I'm posting the round after the first save you posted. Maybe the game can pick up from there for you without a crash?

We might have to do a complete game option audit here - I'm not talking about the game setup options but the core CivIV options you have selected, like quick combat and so on.
Thanks.
1) your Friedrich BC-6805.CivBeyondSwordSave I could continue two turns (not yet made more), so I can continue the game, probably.
2) I tested again my first save = Friedrich v. Chr.-6821 and CTD again, made recalculation first, just after it switches the research to Locks (10)
(comes no popup or message for end of research, can't remember if there should come one)
3) my game settings:
3.1 General options
3.2 Grafic options (Grafic as single unit, high details, low film quality, no films, no zoom
3.3 Audio - all set OFF
3.4 top screen line ingame before click next turn (Spezialization 1)
3.5 BUG options common
3.6 BUG Options C2C
3.7 top screen line ingame after click next turn and end of research Spezialization and starting research Locks, there comes no message or such, just 1 second before the CTD.
31-options.jpg 32-options.jpg 33-options.jpg 34-topline.jpg 35-BUG_options.jpg 36-BUG_options_C2C.jpg 37-topline_just_before_CTD.jpg
 
Thanks.
1) your Friedrich BC-6805.CivBeyondSwordSave I could continue two turns (not yet made more), so I can continue the game, probably.
2) I tested again my first save = Friedrich v. Chr.-6821 and CTD again, made recalculation first, just after it switches the research to Locks (10)
(comes no popup or message for end of research, can't remember if there should come one)
3) my game settings:
3.1 General options
3.2 Grafic options (Grafic as single unit, high details, low film quality, no films, no zoom
3.3 Audio - all set OFF
3.4 top screen line ingame before click next turn (Spezialization 1)
3.5 BUG options common
3.6 BUG Options C2C
3.7 top screen line ingame after click next turn and end of research Spezialization and starting research Locks, there comes no message or such, just 1 second before the CTD.
View attachment 521198 View attachment 521199 View attachment 521200 View attachment 521201 View attachment 521202 View attachment 521203 View attachment 521204
Tech popup should always appear, unless you play in multiplayer.

Switch to English, maybe there is some XML error in translation.
All translations are very incomplete.

Also translated text may be something completely different than text in English.
 
Thanks.
1) your Friedrich BC-6805.CivBeyondSwordSave I could continue two turns (not yet made more), so I can continue the game, probably.
2) I tested again my first save = Friedrich v. Chr.-6821 and CTD again, made recalculation first, just after it switches the research to Locks (10)
(comes no popup or message for end of research, can't remember if there should come one)
3) my game settings:
3.1 General options
3.2 Grafic options (Grafic as single unit, high details, low film quality, no films, no zoom
3.3 Audio - all set OFF
3.4 top screen line ingame before click next turn (Spezialization 1)
3.5 BUG options common
3.6 BUG Options C2C
3.7 top screen line ingame after click next turn and end of research Spezialization and starting research Locks, there comes no message or such, just 1 second before the CTD.
View attachment 521198 View attachment 521199 View attachment 521200 View attachment 521201 View attachment 521202 View attachment 521203 View attachment 521204
I will need to see that first panel in English. The others aren't likely to contain variability for a crash bug.
 
Back
Top Bottom