Fix "Rip Clothing" Character Corruption
Изображение 1 из 3. Материалы автора из Steam Workshop.
О материале
«Fix "Rip Clothing" Character Corruption» — материал мастерской Project Zomboid. Карты, транспорт, оружие и моды для выживания. Данные Steam, описание автора и ссылка для установки через подписку. Совместимость редакцией не проверена.
Описание автора
When you favorite a recipe, the game saves the recipe name, outputs, and all possible ingredients to an identifier string on your character's save file. If you have too many mods that add clothing items, the recipe to rip clothing can generate a string larger than 32767 bytes, which makes the game unable to load your save file, if you set it as a favorite recipe. This generates an error on the log such as
java.lang.RuntimeException: invalid lua table type 99
This mod runs every identifier string through a simple hashing algorithm, which makes sure each identifier is of a predictable size, and, most importantly, smaller than 32767 characters. Your save file might even shrink by a couple Kb. There will be a performance hit from running the algorithm, no clue how much though.
You should be able to safely add and remove this mod from a running save, and you should only lose your favorite recipes. Note that this does not fix an already corrupted character.
This mod appends to the
ISCraftingUI:getFavoriteModDataString
method. If any other mod overwrites it, simply move this one later in the load order and it should keep working.
I've made a bug report here: https://theindiestone.com/forums/index.php?/topic/69331-favoriting-the-rip-clothing-recipe-if-you-have-too-many-clothing-mods-can-corrupt-your-character-data/ This mod is just a band-aid until this is fixed.
Workshop ID: 3085491446 Mod ID: fixRipClothingCorruption
Как установить и запустить
Откройте оригинальную страницу в Steam Workshop, проверьте версию игры, зависимости и порядок загрузки в описании автора. Нажмите «Подписаться» и дождитесь загрузки Steam. Включите материал в меню модификаций или контента игры, если это требуется. Совместимость и запуск редакцией не проверены.