Steam'i Yükleyin
giriş
|
dil
简体中文 (Basitleştirilmiş Çince)
繁體中文 (Geleneksel Çince)
日本語 (Japonca)
한국어 (Korece)
ไทย (Tayca)
Български (Bulgarca)
Čeština (Çekçe)
Dansk (Danca)
Deutsch (Almanca)
English (İngilizce)
Español - España (İspanyolca - İspanya)
Español - Latinoamérica (İspanyolca - Latin Amerika)
Ελληνικά (Yunanca)
Français (Fransızca)
Italiano (İtalyanca)
Bahasa Indonesia (Endonezce)
Magyar (Macarca)
Nederlands (Hollandaca)
Norsk (Norveççe)
Polski (Lehçe)
Português (Portekizce - Portekiz)
Português - Brasil (Portekizce - Brezilya)
Română (Rumence)
Русский (Rusça)
Suomi (Fince)
Svenska (İsveççe)
Tiếng Việt (Vietnamca)
Українська (Ukraynaca)
Bir çeviri sorunu bildirin
I was able to reproduce the error and the fix has been tested. But since this bug only shows up in specific circumstances, please let me know if the fix works or doesn't work for you, and I'll go back to the drawing board.
"JobDriver threw exception in toil MakeNewToils's initAction for pawn ... driver=JobDriver_EnterPortal ... NullReferenceException at MapDesigner.Patches.RockTypesPatch.Finalizer ..."
From the stacktrace, it seems that Map Designer’s finalizer is trying to remove ThingDefs (rock types), but one of them is null, causing the crash during map generation.
**Suggested fix**: in the `RockTypesPatch.Finalizer` method, add a null check such as:
```csharp
__result = __result.Where(def => def != null).ToList();
This basically confirmed what Freterz gave as the problem and gave me the exact line of code that's causing it.