View Issue Details

IDProjectCategoryLast Update
0023393AI War 2Graphical BugJul 16, 2020 10:06 am
ReporterParadoxSong Assigned ToChris_McElligottPark  
Status resolvedResolutionfixed 
Product Version2.097 Below Minimum 
Fixed in Version2.101 Connection Status: Confirmed 
Summary0023393: Tutorial journal text displays nonexistent "??" in the chat log, but correctly has a new line in the journal.
DescriptionScreenshot attached, Badger said it looks like the newlines are being replaced/ aren't supported and are outputting ?? instead.
TagsNo tags attached.

Activities

ParadoxSong

Jul 14, 2020 3:00 pm

reporter  

newlinequestions.PNG (34,055 bytes)   
newlinequestions.PNG (34,055 bytes)   

BadgerBadger

Jul 14, 2020 3:02 pm

manager   ~0057591

The XML is
        chat_text="Commander, we need to be careful about increasing the AIP too much. Remember, we are running a Guerrila campaign!
                                                                                                                                                                                
It's a good idea to neuter planets (aka defeat all the AI defenses without blowing up the command station or warp gate); this allows our ships to strike deeper against the AI with safely, but without generating more AIP.
                                                                                                                                                                                
Capturing too many planets will cause the AI to get very strong very quickly."

It looks like the chat is turning newlines into ?s. Chris, can you give me advice on what to use instead?

Chris_McElligottPark

Jul 14, 2020 3:03 pm

administrator   ~0057592

Ah! Yes, I can see where that is a problem. The two ?s are likely the \n and \r, or newline and carriage return respectively. Different OSes use different kinds of whitespace for that. In the chat log stuff, I don't think that I built in anything to support those characters, but I will do so now.

Thanks!

Chris_McElligottPark

Jul 16, 2020 10:06 am

administrator   ~0057640

Thanks!

* Carriage returns and newlines are now supported by the "condensed" string format. This will prevent tutorial messages from turning those characters into question marks when they are dumped to the chat log. Note that this will only affect chat log messages logged in this version and on, not past versions.

Issue History

Date Modified Username Field Change
Jul 14, 2020 3:00 pm ParadoxSong New Issue
Jul 14, 2020 3:00 pm ParadoxSong File Added: newlinequestions.PNG
Jul 14, 2020 3:02 pm BadgerBadger Note Added: 0057591
Jul 14, 2020 3:02 pm BadgerBadger Assigned To => Chris_McElligottPark
Jul 14, 2020 3:02 pm BadgerBadger Status new => assigned
Jul 14, 2020 3:03 pm Chris_McElligottPark Note Added: 0057592
Jul 16, 2020 10:06 am Chris_McElligottPark Status assigned => resolved
Jul 16, 2020 10:06 am Chris_McElligottPark Resolution open => fixed
Jul 16, 2020 10:06 am Chris_McElligottPark Fixed in Version => 2.101 Connection Status: Confirmed
Jul 16, 2020 10:06 am Chris_McElligottPark Note Added: 0057640