Project Zomboid

Project Zomboid

42.12 Body Location compatibility patch
 此主题已被置顶,因此可能具有重要性
ivmakk 9 月 30 日 上午 11:10
List of Mods Fixed by Body Location Patch & Modder Fix Info
Hey everyone! I'd suggest adding to this thread any mods you find that are “fixed” by enabling the 42.12 Body Location compatibility patch. So it could be valuable for:
  • Players - share any broken mods this patch fixed for you.
  • Supporters - let authors know so they can update faster.
  • Modders - see below for what broke in Lua and how to fix it.
Hopefully this saves some time (and headaches) for everyone!

Found mods with this issue
The following mods are broken due to B42.12 Body Location API changes. Dates show the last incompatible version update - mod versions from these dates (and likely earlier) are incompatible.
*Note: Mods marked as fixed have been updated by their authors with compatibility patches.

For Modders
What broke in Lua?
`BodyLocationGroup:getOrCreateLocation()` method signature changed in B42.12:
  • B42.11: `getOrCreateLocation(string)` - will cause error in 42.12
  • B42.12: `getOrCreateLocation(ItemBodyLocation)`

Example of broken code
local group = BodyLocations.getGroup("Human") group:getOrCreateLocation("CustomSlot")
How to fix
local group = BodyLocations.getGroup("Human") if not group:getLocation("CustomSlot") then local bodyLocation = BodyLocation.new(group, "CustomSlot") group:getAllLocations():add(bodyLocation) end
最后由 ivmakk 编辑于; 17 小时以前
< >
正在显示第 1 - 12 条,共 12 条留言
ethel † 9 月 30 日 下午 12:11 
Hello everyone!

On my end, these are the mods that this patch fixed for sure:
- Bodily Functions;
- Clothes Box Redux;
- Lillie's Better Military Clothes;
- More Jacktes B42 Unnoficial;
- Paw Low Loot & Swat Pack Relooted;
- Spongie's Clothing;
- Vanilla Gear Expanded.

And probably much more (i don't want, for now to, again, painstakingly search for possible errors in all the mods that i have enabled in the load order after the patch).
最后由 ethel † 编辑于; 9 月 30 日 下午 12:24
ivmakk 9 月 30 日 下午 1:06 
引用自 ethel †
And probably much more (i don't want, for now to, again, painstakingly search for possible errors in all the mods that i have enabled in the load order after the patch).
Thnx! I’ve informed the authors (those who weren’t already aware) and shared links to this mod with their subscribers as a temporary solution. I’m checking each listed mod manually for outdated/corrupted code to avoid misleading anyone, so it’s a bit time-consuming, but hopefully it will speed up all the needed fixes :)
Where do I place in the load order?
引用自 BagTimer
Where do I place in the load order?
At the very top of the mod list, as mentioned in the mod's description.
Hello there ^^
After finding this mod, I also want to point out that Anthro Survivors (+ Show me those bandages) and Support Goods Mega Mod PREDATOR is also having this problem. Would be nice if you take a look at those as well
I have the mod installed but it didn't seem to fix anything, I think
引用自 DerpyCharizard
Hello there ^^
After finding this mod, I also want to point out that Anthro Survivors (+ Show me those bandages) and Support Goods Mega Mod PREDATOR is also having this problem. Would be nice if you take a look at those as well
Hey, I checked Support Goods Mega Mod [B42.10] - PREDATOR and it’s definitely affected. The current mod may fix it if placed at the top of the mod list (though no guarantee that in Support Goods Mega Mod aren’t other B42.12 bugs). I’ve also notified the author. Thnx for sharing!

For Anthro Survivors, I found too many mods by search – could you specify which one exactly you mean (workshop urls)?
- Fixed missing BodyLocationGroup.getOrCreateLocation(String) which was needed by clothing mods.

Source: Patch Notes 42.12.1
最后由 IsuccToez 编辑于; 11 小时以前
引用自 IsuccToez
Does this fix the issue of clothing mods not working?

- Fixed missing BodyLocationGroup.getOrCreateLocation(String) which was needed by clothing mods.

Source: Patch Notes 42.12.1
Yep, looks like TIS found an engineer who added in B42.12.0 the silent breaking change (half the Workshop killer) and then got pushed him to release an unscheduled hotfix release :raft_bruce:
引用自 ivmakk
引用自 IsuccToez
Does this fix the issue of clothing mods not working?

- Fixed missing BodyLocationGroup.getOrCreateLocation(String) which was needed by clothing mods.

Source: Patch Notes 42.12.1
Yep, looks like TIS found an engineer who added in B42.12.0 the silent breaking change (half the Workshop killer) and then got pushed him to release an unscheduled hotfix release :raft_bruce:
Does this completely revert the Enum change or is this just a fix for now?
引用自 IsuccToez
Does this completely revert the Enum change or is this just a fix for now?
We’ll need some time to explore what changed in the new release, so it’s unclear at the moment (at least for me, until I can dig into the published b42.12.1 build codebase).
引用自 ivmakk
引用自 IsuccToez
Does this completely revert the Enum change or is this just a fix for now?
We’ll need some time to explore what changed in the new release, so it’s unclear at the moment (at least for me, until I can dig into the published b42.12.1 build codebase).
Okay, thanks! :luv:
< >
正在显示第 1 - 12 条,共 12 条留言
每页显示数: 1530 50