Ludeon Forums

RimWorld => Mods => Translations => Topic started by: mecatxis on July 16, 2018, 03:00:54 PM

Title: ExtraHard difficulty bugged
Post by: mecatxis on July 16, 2018, 03:00:54 PM
I've found that the report keep saying:
Quote========== Def-injected translations load errors (294) ==========
Found no RimWorld.DifficultyDef named ExtraHard to match ExtraHard.label (Difficulties.xml)
Found no RimWorld.DifficultyDef named ExtraHard to match ExtraHard.description (Difficulties.xml)

But They are correctly defined in difficulties.xml :
Quote<ExtraHard.label>Extra hard</ExtraHard.label>
  <ExtraHard.description>Face brutal survival challenges. The price of survival is blood.\n\nRecommended for: Players with a lot of experience who want to push themselves beyond Hard mode.\n\nSucceeding at this level requires a well-rounded understanding of diverse strategies, an eye towards preparation, and some luck. Threats can spike and combine in vicious ways, so sometimes you'll have to accept serious losses to survive.</ExtraHard.description>
Title: Re: ExtraHard difficulty bugged
Post by: pluhi on July 17, 2018, 03:04:00 AM
You got it wrong. It's saying there is no souch def as ExtraHard in the game. That's why it's a load error, because you have it in the translated XML. You should have missing def reported for Rough I think.
Title: Re: ExtraHard difficulty bugged
Post by: mecatxis on July 17, 2018, 05:55:27 AM
Fine!

I use to use https://github.com/RimWorld-zh/RimWorld-English as base to translate

It's Difficulties.xml file uses the key "ExtraHard.label". I see that German translation uses "Rough.label". I will try.

If RimWorld-zh is not a confident source, how can i get the Definjected files updated to current development version?
Title: Re: ExtraHard difficulty bugged
Post by: pluhi on July 17, 2018, 06:47:58 AM
Easy, the report tells you exactly what you miss and what you should delete. You don't need any "base" anymore. First comment out all the reported load errors from all the files, these are not needed. Then fix the missing ones according to the report.
Title: Re: ExtraHard difficulty bugged
Post by: mecatxis on July 17, 2018, 01:44:46 PM
And for the file 'Interactions_Animal.xml'? For example?

The format of the file changed completely. I get a bunch of errors similars to
QuoteCouldn't inject AnimalChat.logRulesInitiator.rulesStrings into RimWorld.InteractionDef (Interactions_Animal.xml): Field rulesStrings defined on type Verse.Grammar.RulePack is not a field on the target object which is of type RimWorld.InteractionDef.
Parameter name: obj


I have it in the same format as RimWorld-zh, but the German file format is completely different with the new
Quote<li>tamed->machte beruhigende Laute in Richtung</li>
and so.

How can you know what to do in those files?

Updated!
Sorry! I'm not right! RimWorld-zh looks to have the correct format, but still you need a base, no?
Title: Re: ExtraHard difficulty bugged
Post by: pluhi on July 18, 2018, 04:59:18 AM
Yesterday's update(1.0.1967) broke the list format, I confirmed with Ison. I guess today's push is going to fix it. You can ignore those load errors until then.