VLCS HDRcade Patchfix
О материале
«VLCS HDRcade Patchfix» — материал мастерской Project Zomboid. Карты, транспорт, оружие и моды для выживания. Данные Steam, описание автора и ссылка для установки через подписку. Совместимость редакцией не проверена.
Описание автора
VLCS HDRcade Patchfix
Fixes the server crash and missing translations in Vehicle Life Cycle Systems (VLCS) Vehicle Respawn HDRcade on PZ 42.17+.
The Error
Exception thrown: Object tried to call nil in doPassiveAgeReset
SVLCSSystem.lua:207 — vehicles:get(i)
Root Cause
In 42.17, Project Zomboid changed IsoCell.getVehicles() from returning an ArrayList to a Java Set. Set has no get(int) method. VLCS iterates vehicles using for i=0, vehicles:size()-1 do vehicles:get(i), causing an immediate crash.
What This Mod Does
Fix 1 — Iterator crash
Replaces index-based iteration with Java iterator() traversal in all affected functions, with nil guards on each vehicle object. Covers four functions:
-
doPassiveAgeReset — runs every in-game hour to track nearby vehicles (crash reported in stack trace)
-
runJanitor — removes abandoned vehicles (same latent bug)
-
finalizeSpawn — locates the newly spawned vehicle via getMovingObjects() (same risk)
-
delegateBatch — adds detailed per-cycle spawn logging
Fix 2 — Complete translations
The original VLCS ships legacy .txt translation files and every language was missing tooltips. EnableLazarusFix was left in English in every non-English locale. This mod provides complete .json files (Build 42 format) for all 12 supported languages:
- English, Português Brasileiro, 中文, Deutsch, Español, Français, Italiano, 日本語, 한국어, Polski, Русский, Türkçe
Load Order
Enable this mod after VLCS HDRcade in your mod list. The mod ID VLCS_HDRcade_Patchfix sorts after VLCS_HDRcade alphabetically, so the default ordering already works. The patch also hooks OnGameStart as a fallback in case load order is reversed.
Compatibility
-
Requires 42.17+ and VLCS Vehicle Respawn HDRcade
-
Patch code is server-side only (where the crash occurs)
-
Translations are shared (client + server)
-
Does not affect existing saves
Workshop ID: 3725023684 Mod ID: VLCS_HDRcade_Patchfix
Как установить и запустить
Откройте оригинальную страницу в Steam Workshop, проверьте версию игры, зависимости и порядок загрузки в описании автора. Нажмите «Подписаться» и дождитесь загрузки Steam. Включите материал в меню модификаций или контента игры, если это требуется. Совместимость и запуск редакцией не проверены.