Instalează Steam
conectare
|
limbă
简体中文 (chineză simplificată)
繁體中文 (chineză tradițională)
日本語 (japoneză)
한국어 (coreeană)
ไทย (thailandeză)
български (bulgară)
Čeština (cehă)
Dansk (daneză)
Deutsch (germană)
English (engleză)
Español - España (spaniolă - Spania)
Español - Latinoamérica (spaniolă - America Latină)
Ελληνικά (greacă)
Français (franceză)
Italiano (italiană)
Bahasa Indonesia (indoneziană)
Magyar (maghiară)
Nederlands (neerlandeză)
Norsk (norvegiană)
Polski (poloneză)
Português (portugheză - Portugalia)
Português - Brasil (portugheză - Brazilia)
Русский (rusă)
Suomi (finlandeză)
Svenska (suedeză)
Türkçe (turcă)
Tiếng Việt (vietnameză)
Українська (ucraineană)
Raportează o problemă de traducere
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.