Project Zomboid

Project Zomboid

42.12 Body Location compatibility patch
 This topic has been pinned, so it's probably important
List of Mods Fixed by Body Location Patch & Modder Fix Info
UPDATE B42.12.1: It seems that this mod is no longer needed! All body location compatibility issues have been fixed in build 42.12.1. Both old (B42.11) and new (B42.12) API methods now work in vanilla without any patches.




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 (outdated starting from 42.12.1)
NOTE: All of these mods now work in B42.12.1 without any patches or fixes!

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
B42.12.1 UPDATE: Both methods now work! The old string method has been restored.

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
Last edited by ivmakk; 3 Oct @ 5:17am
< >
Showing 1-14 of 14 comments
ethel † 30 Sep @ 12:11pm 
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).
Last edited by ethel †; 30 Sep @ 12:24pm
ivmakk 30 Sep @ 1:06pm 
Originally posted by 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 :)
BagTimer 2 Oct @ 12:18am 
Where do I place in the load order?
ivmakk 2 Oct @ 2:26am 
Originally posted by 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
ivmakk 2 Oct @ 2:46am 
Originally posted by 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
Last edited by IsuccToez; 2 Oct @ 8:43am
ivmakk 2 Oct @ 8:48am 
Originally posted by 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:
Originally posted by ivmakk:
Originally posted by 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?
ivmakk 2 Oct @ 8:57am 
Originally posted by 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).
Originally posted by ivmakk:
Originally posted by 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:
[42] REMOD - Clothes is offically up to date thanks to your help! :)
ivmakk 3 Oct @ 5:20am 
I believe there’s no need to update any mods that used the B42.11 body location API — it was restored in B42.12.1 and should work as before. The new API is also supported, so updated mods should work fine too. I’ve added this info to the first topic message.
< >
Showing 1-14 of 14 comments
Per page: 1530 50