ติดตั้ง Steam
เข้าสู่ระบบ
|
ภาษา
简体中文 (จีนตัวย่อ)
繁體中文 (จีนตัวเต็ม)
日本語 (ญี่ปุ่น)
한국어 (เกาหลี)
български (บัลแกเรีย)
Čeština (เช็ก)
Dansk (เดนมาร์ก)
Deutsch (เยอรมัน)
English (อังกฤษ)
Español - España (สเปน)
Español - Latinoamérica (สเปน - ลาตินอเมริกา)
Ελληνικά (กรีก)
Français (ฝรั่งเศส)
Italiano (อิตาลี)
Bahasa Indonesia (อินโดนีเซีย)
Magyar (ฮังการี)
Nederlands (ดัตช์)
Norsk (นอร์เวย์)
Polski (โปแลนด์)
Português (โปรตุเกส - โปรตุเกส)
Português - Brasil (โปรตุเกส - บราซิล)
Română (โรมาเนีย)
Русский (รัสเซีย)
Suomi (ฟินแลนด์)
Svenska (สวีเดน)
Türkçe (ตุรกี)
Tiếng Việt (เวียดนาม)
Українська (ยูเครน)
รายงานปัญหาเกี่ยวกับการแปลภาษา
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.