Dilvish wrote:Geoff the Medio wrote:Edit: Adding a non-commented entry near the end seems to fix it.
Well, that's certainly better than no fix at all. Ouaz, you could just manually add that, deleting a corresponding number of commented-out names from the starname list, which won't really matter.
I did this (line 12652, deleting two lines before). It fixes the problem, but new errors appears in the log file:
Code: Select all
2015-04-18 16:55:21.049588 [debug] Client : Logger initialized
2015-04-18 16:55:21.049588 [debug] Client : v0.4.4+ [build 2015-04-13.d489d44] MSVC 2010
2015-04-18 16:55:21.080788 [error] Client : Unresolved key expansion: AI_CAPITOL_NAMES_BEGINNER in: C:\Program Files (x86)\FreeOrion\default\stringtables\fr.txt.
2015-04-18 16:55:21.080788 [error] Client : Unresolved key expansion: AI_CAPITOL_NAMES_TURTLE in: C:\Program Files (x86)\FreeOrion\default\stringtables\fr.txt.
2015-04-18 16:55:21.080788 [error] Client : Unresolved key expansion: AI_CAPITOL_NAMES_CAUTIOUS in: C:\Program Files (x86)\FreeOrion\default\stringtables\fr.txt.
2015-04-18 16:55:21.080788 [error] Client : Unresolved key expansion: AI_CAPITOL_NAMES_TYPICAL in: C:\Program Files (x86)\FreeOrion\default\stringtables\fr.txt.
2015-04-18 16:55:21.080788 [error] Client : Unresolved key expansion: AI_CAPITOL_NAMES_AGGRESSIVE in: C:\Program Files (x86)\FreeOrion\default\stringtables\fr.txt.
2015-04-18 16:55:21.080788 [error] Client : Unresolved key expansion: AI_CAPITOL_NAMES_MANIACAL in: C:\Program Files (x86)\FreeOrion\default\stringtables\fr.txt.
2015-04-18 16:55:21.080788 [error] Client : Unresolved reference: INFRASTRUCTURE_TITLE in: C:\Program Files (x86)\FreeOrion\default\stringtables\fr.txt.
2015-04-18 16:55:21.080788 [error] Client : Unresolved reference: INFRASTRUCTURE_TITLE in: C:\Program Files (x86)\FreeOrion\default\stringtables\fr.txt.
2015-04-18 16:55:21.096388 [error] Client : Unresolved reference: INFRASTRUCTURE_TITLE in: C:\Program Files (x86)\FreeOrion\default\stringtables\fr.txt.
2015-04-18 16:55:21.096388 [error] Client : Unresolved reference: INFRASTRUCTURE_TITLE in: C:\Program Files (x86)\FreeOrion\default\stringtables\fr.txt.
2015-04-18 16:55:21.423988 [debug] Client : OpenAL initialized. Version 1.1Renderer SoftwareVendor Creative Labs Inc.
Extensions: EAX EAX2.0 EAX3.0 EAX4.0 EAX5.0 EAX3.0EMULATED EAX4.0EMULATED AL_EXT_OFFSET AL_EXT_LINEAR_DISTANCE AL_EXT_EXPONENT_DISTANCE
If i remove the comment before [INFRASTRUCTURE_TITLE] (line 3684), and before each [AI_CAPITOL_NAMES] (line 10675, 681, 685, 689, 694, 698), the log is fine again.
But like you said, the Name lists section is not needed, i.e. I could delete it from the FR file. The number of lines before it would be preserved and still be matched with the english file.
So I deleted all the Name Lists section and launched FO:
- The links in the Pedia are broken again (key instead of value)
- The greek letters (system and planet names) are not displayed when I launch a game.
- Only one new error in the log (INFRASTRUCTURE_TITLE and AI_CAPITOL_NAMES are gone):
Code: Select all
2015-04-18 17:40:56.749167 [debug] Client : Logger initialized
2015-04-18 17:40:56.749167 [debug] Client : v0.4.4+ [build 2015-04-13.d489d44] MSVC 2010
2015-04-18 17:40:56.764767 [error] Client : StringTable file "C:\Program Files (x86)\FreeOrion\default\stringtables\fr.txt" is malformed around line 10802
2015-04-18 17:40:57.045568 [debug] Client : OpenAL initialized. Version 1.1Renderer SoftwareVendor Creative Labs Inc.
Extensions: EAX EAX2.0 EAX3.0 EAX4.0 EAX5.0 EAX3.0EMULATED EAX4.0EMULATED AL_EXT_OFFSET AL_EXT_LINEAR_DISTANCE AL_EXT_EXPONENT_DISTANCE
Line 10802 being the last line of the fr file.
- broken_display.PNG (253.5 KiB) Viewed 6303 times
With my working FR file, it is Thorne α , Thorne β , Nitzer β, and the Pedia links is correctly displayed.
By the way, if I use the "cleaned" fr file that is in Git main repository (
https://github.com/freeorion/freeorion/ ... les/fr.txt), the same problem happens (except the Pedia links which are fine, as there are no commented lines).
On the both files, if I add only the STAR_GROUP_NAMES and STAR_GROUP_CHARS at the end of the file, the greek letters are displayed again, but I still have the same log error than above ("malformed around line *), and still the broken pedia links (key instead of value).
What a mess, I'm sorry to bother you with this.
EDIT:
Geoff the Medio wrote:
Edit:
Code: Select all
const sregex COMMENT = '#' >> *(~_n) >> _n;
[...]
const sregex ENTRY =
keep(*(space | +COMMENT)) >>
KEY >> *blank >> (_n | COMMENT) >>
(("'''" >> MULTI_LINE_VALUE >> "'''" >> *space >> _n) | SINGLE_LINE_VALUE >> _n);
Seems to work without errors.
I will wait the next build then.
I release every updated file under the CC-BY-SA 3.0 license.