Project Zomboid

Project Zomboid

Support Goods Mega Mod [B42.10] - PREDATOR
Potential temporary fix until the author comes back to it
Gonna start off with I have no clue what I am doing. ChatGPT helped me put this together. It's not a fix fix for the mod. But I've played a little bit with this "fix" and I haven't come across any game ending issues with it.

So first off, find MA_BodyLocations.lua
Should be here:
steamapps\workshop\content\108600\3512993822\mods\Support Corps\42\media\lua\shared\NPCs

Open the MA_BodyLocations.lua using Notepad++ or whatever you use
-------------------------------------------------------------------------------------------------------------------
Events.OnInitWorld.Add(function()
local group = BodyLocations.getGroup("Human")
if group then
group:addLocation("MALeftArm", ItemBodyLocation.LEFT_ARM)
group:getOrCreateLocation("MALeftArm")
group:getOrCreateLocation("MARightArm")
group:getOrCreateLocation("MAHAZMAT")
group:getOrCreateLocation("CarrierVest")
group:getOrCreateLocation("Cloak")
else
print("ERROR: Human body group not found.")
end
end)
-------------------------------------------------------------------------------------------------------------------
Copy that block of text, IN BETWEEN the lines, don't copy the lines.

Then inside the MA_BodyLocations.lua press Control + A to highlight everything, then press Control + V to paste that block above into the file, then of course save it


There was some restructuring of files, meaning I had to move some of the files to other spots. I am still currently trying to find the instructions that I followed by Chat to do so.
If the file MA_BodyLocations.lua is NOT in that location (Support Corps\42\media\lua\shared\NPCs) then that's where it should be for this fix


If this does not work, please kindly tell me in the comments and I will continue to dig back through Chat to find my exact steps. Again, not a coder/modder so I can't guarantee that this will fix it for you. If it doesn't work, I apologize.
Last edited by Smiley Face Killer; 27 Sep @ 7:51pm
< >
Showing 1-7 of 7 comments
Vadrada 29 Sep @ 12:12am 
How did you get on with this fix in the end?
If you mean how does it work so far. It's working fine honestly. The only issues I've had with the whole 42.12 hasn't been from that rough temp "fix". I haven't had any issues stemming from my post's fix at least that I've noticed. By that I mean no obvious issues have said "Support goods mod is responsible for this error and or error spam" in the logs. I haven't come across whatever possibly used that new bodylocation thing they changed around that caused the mess. So I don't know how that's going to go when I do stumble upon it.
Last edited by Smiley Face Killer; 29 Sep @ 5:42am
For those that may point out that nothing changed/crashes remain, I've been doing digging into this by examining the console.txt file and a LOT of them (at this stage with modders fixing bugs) are relating to clothing and body position behaviour. This is likely just one part of the fix, so please check your other mods (like my furry texture mod where it gives a clothing layer sort of overlay causes issues as well)

That being said, using this *has* reduced the errors in my output log, so thanks for this! Helps me track down any remaining issues I'm encountering as a result of the changes made in B42,12
Still generating errors, and I think it's causing the zeds to have missing body parts. However the missing body part bit is starting to appear *after* B42,12,1 went live

LOG : General f:0, t:1759427465360> -----------------------------------------
STACK TRACE
-----------------------------------------
function: Add -- file: MA_BodyLocations.lua line # 4 | MOD: Support Goods Mega Mod [B42] - PREDATOR

ERROR: General f:0, t:1759427465363> ExceptionLogger.logException> Exception thrown
java.lang.RuntimeException: Object tried to call nil in Add at KahluaUtil.fail(KahluaUtil.java:101).
Stack trace:
se.krka.kahlua.vm.KahluaUtil.fail(KahluaUtil.java:101)
se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:817)
se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:174)
se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1826)
se.krka.kahlua.vm.KahluaThread.pcallvoid(KahluaThread.java:1653)
se.krka.kahlua.integration.LuaCaller.pcallvoid(LuaCaller.java:66)
se.krka.kahlua.integration.LuaCaller.protectedCallVoid(LuaCaller.java:139)
zombie.Lua.Event.trigger(Event.java:72)
zombie.Lua.LuaEventManager.triggerEvent(LuaEventManager.java:281)
zombie.iso.IsoWorld.init(IsoWorld.java:2600)
zombie.gameStates.GameLoadingState$1.runInner(GameLoadingState.java:335)
zombie.gameStates.GameLoadingState$1.run(GameLoadingState.java:287)
java.base/java.lang.Thread.run(Unknown Source)
LOG : General f:0, t:1759427465364> -----------------------------------------
STACK TRACE
-----------------------------------------
function: Add -- file: MA_BodyLocations.lua line # 4 | MOD: Support Goods Mega Mod [B42] - PREDATOR


This is with the modified files, this is the generated error during map creation itself
Originally posted by Kitlia Iseria Steele:
Still generating errors, and I think it's causing the zeds to have missing body parts. However the missing body part bit is starting to appear *after* B42,12,1 went live

LOG : General f:0, t:1759427465360> -----------------------------------------
STACK TRACE
-----------------------------------------
function: Add -- file: MA_BodyLocations.lua line # 4 | MOD: Support Goods Mega Mod [B42] - PREDATOR

ERROR: General f:0, t:1759427465363> ExceptionLogger.logException> Exception thrown
java.lang.RuntimeException: Object tried to call nil in Add at KahluaUtil.fail(KahluaUtil.java:101).
Stack trace:
se.krka.kahlua.vm.KahluaUtil.fail(KahluaUtil.java:101)
se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:817)
se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:174)
se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1826)
se.krka.kahlua.vm.KahluaThread.pcallvoid(KahluaThread.java:1653)
se.krka.kahlua.integration.LuaCaller.pcallvoid(LuaCaller.java:66)
se.krka.kahlua.integration.LuaCaller.protectedCallVoid(LuaCaller.java:139)
zombie.Lua.Event.trigger(Event.java:72)
zombie.Lua.LuaEventManager.triggerEvent(LuaEventManager.java:281)
zombie.iso.IsoWorld.init(IsoWorld.java:2600)
zombie.gameStates.GameLoadingState$1.runInner(GameLoadingState.java:335)
zombie.gameStates.GameLoadingState$1.run(GameLoadingState.java:287)
java.base/java.lang.Thread.run(Unknown Source)
LOG : General f:0, t:1759427465364> -----------------------------------------
STACK TRACE
-----------------------------------------
function: Add -- file: MA_BodyLocations.lua line # 4 | MOD: Support Goods Mega Mod [B42] - PREDATOR


This is with the modified files, this is the generated error during map creation itself


Don't use my fix, use this mod https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=3577112693

Even today I just popped in it again and it seems to work even after the update. Much better than my "fix" at least they know what they're doing
Sounds good! I will reinstall this mod and see how it plays out, thanks
Confirmed, stability has gone up! I will try to replicate the same problems faced before, to see if things have continued for the sake of debugging and providing accurate information for our modders
< >
Showing 1-7 of 7 comments
Per page: 1530 50