Page 1 of 1

[0.93.7] Export button in Translation dialog crash (FCS)

Posted: Sun Jul 31, 2016 2:42 pm
by pawnstorm
Clicking on the Export button in the Forgotten Construction Set causes a crash.

The source of this crash is 3 dialog lines in the rebirth.mod file:

Code: Select all

50938-rebirth.mod	"No really, I'm not a..."
50943-rebirth.mod	"I'm not a Fogman. I'm just a normal Hiver...."
50962-rebirth.mod	"It's true", ...
These 3 lines have the speaker index set to 7, which FCS doesn't recognise as a valid speaker reference and causes an IndexOutOfRangeException when trying to export the translation file.

Here's the relevant info from the log file:

Code: Select all

2016-07-31 12:16:00.2153 | ERROR | FCS | Exception: De index ligt buiten de matrixgrenzen. (forgotten construction set). Stacktrace:    bij forgotten_construction_set.TranslationManager.DialogueMessage..ctor(DialogueGroup group, Item d, UInt32 lineIdx, DialogueMessage parent)
   bij forgotten_construction_set.TranslationManager.<>c__DisplayClass30_0.<DialogueTranslation>b__2(DialogueGroup group, DialogueMessage parent, Item data, UInt32 levelIdx)
   bij forgotten_construction_set.TranslationManager.<>c__DisplayClass30_0.<DialogueTranslation>b__2(DialogueGroup group, DialogueMessage parent, Item data, UInt32 levelIdx)
   bij forgotten_construction_set.TranslationManager.DialogueTranslation(GameData gameData, ConcurrentDictionary`2 wordSwaps)
   bij forgotten_construction_set.TranslationManager.Translate(navigation nav)
   bij forgotten_construction_set.TranslationDialog.<btnExport_Click>b__5_0()
   bij System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   bij System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   bij System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   bij System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   bij System.Threading.ThreadHelper.ThreadStart()

Re: [0.93.7] Export button in Translation dialog crash (FCS)

Posted: Mon Aug 01, 2016 4:58 pm
by Zodd
Thanks for the info.
I've fixed it and it'll be on the next release today.

Re: [0.93.7] Export button in Translation dialog crash (FCS)

Posted: Mon Aug 01, 2016 5:51 pm
by Sol Lignum
yep, it's fixed now! very thanks! much wow! :)

Re: [0.93.7] Export button in Translation dialog crash (FCS)

Posted: Mon Aug 01, 2016 7:36 pm
by pawnstorm
Awesome sauce! It's not fixed for me yet though, and I've been online this entire time. According to steam the update seems queued though, is there any way to force a Kenshi update?

Re: [0.93.7] Export button in Translation dialog crash (FCS)

Posted: Mon Aug 01, 2016 9:32 pm
by Hatsune_Neko
click download
on the right hand side there is a button. that has a arrow.
click that and game will update.