Ludeon Forums

RimWorld => Mods => Translations => Topic started by: Arczi008TV on March 23, 2020, 02:39:19 PM

Title: Using original txt files in string folder causing planet view bug
Post by: Arczi008TV on March 23, 2020, 02:39:19 PM
We can't use cyrylic special characters in everything that is relatet to planet view, because it causing errors.
-But chinese characters and symbols like this "•◘♦☺☻♥" working ok.

(https://i.imgur.com/VFZlAl5.png)
(https://i.imgur.com/KSUfVbl.png)
(https://i.imgur.com/nP2KRef.png)
(https://i.imgur.com/edSAL5i.png)


Title: Re: Using original txt files in string folder causing planet view bug
Post by: b606 on March 25, 2020, 04:05:29 AM
I also have this weird bug.
In my case, translated NaturalObject->Words/Nouns/NaturalObject works fine. (No "natural_object_new->...")

But some random seed that is used to generate the world make the bug appear when using some seemingly innocuous rulestring. With other seeds the game just works fine.

I bet that most translations will have this problem one way or another. There is a need to know what are the limitations when translating (rule names ? rule numbers ? filenames ? where to use what ?)

https://ludeon.com/forums/index.php?topic=51260.msg474988#msg474988
Title: Re: Using original txt files in string folder causing planet view bug
Post by: Arczi008TV on March 25, 2020, 11:06:03 AM
I think its caused by cyrylic special characters: (https://i.imgur.com/mVYVQhf.png)
"%u0105" , "%u0119" (oh even in this forum that characters causing bug xd)

After translating "RulePacks_Namers_WorldFeatures.xml"
(https://i.imgur.com/x7OXT25.png)
or if you put special characters in txt files in string folder, it cause that error.

No solution. Need wait for fix.

Title: Re: Using original txt files in string folder causing planet view bug
Post by: b606 on March 25, 2020, 12:20:33 PM
The bug I had before the one I reported above was when I tried to use [BodyPart] instead of [Bodypart] in RulePacks_Namers_WorldFeatures.xml, with the file loaded as BodyPart->Words/Nouns/Bodyparts in RulePacks_Global.xml

The stupid solution that worked was to use [Bodypart_fr] in RulePacks_Namers_WorldFeatures.xml,
and in RulePacks_Global.xml, the <rulesFiles> Bodypart->Words/Nouns/Bodyparts, with an additional <rulesStrings> Bodypart_fr->[Bodypart]

That bug stayed there for three weeks before it was randomly triggered.
Title: Re: Using original txt files in string folder causing planet view bug
Post by: Arczi008TV on March 25, 2020, 12:24:54 PM
If you create
<li>boDy_paRt->Words/Nouns/BodyPartFile</li> you have to use [boDy_paRt] because letter size matters.
Title: Re: Using original txt files in string folder causing planet view bug
Post by: b606 on March 25, 2020, 01:59:28 PM
Yes indeed, I took care of the letter caps. Notice the english text uses [BodyPart] in RulePacks_Namers_WorldFeatures.xml and [Bodypart] in RulePacks_Global.xml.

Sure enough, your solution to use separate files and completely different rulename should help.
Title: Re: Using original txt files in string folder causing planet view bug
Post by: Arczi008TV on March 25, 2020, 03:03:24 PM
So [Bodypart] its propably not working because of mistake.
And my solution is not working well too.  Because its about special characters, they are wont work on planet view. Even if you put them in custom txt file.