Project Zomboid

Project Zomboid

{B41} VariableSkin Contents Spawning
Quilava 8 Jan, 2024 @ 10:17pm
Bug report
About a day now, i dont see any zombie spawn with the outfit, so i just though the update lately reduce the spawn rate, but after a while, even in heavy population area, i still cant find one

im also noticed every time LUA reloading, 1 error pop up, and it is only happen with this mod turn on (both normal and demo), dont know what happen, but if i turn this mod off, it run fine, so i guess something is not right, dont know if it just me or also happen to other, but hope you can patch it up
< >
Showing 1-14 of 14 comments
Quilava 9 Jan, 2024 @ 7:09am 
Still no spawn after hot fix and still get that error at main menu
RUN 90s  [developer] 9 Jan, 2024 @ 11:17am 
Sorry for issue, it seems like...
  • I've save some files in wrong encoding, Lua files shouldn't save in UTF8-BOM, but previously did, now undo-ed.
  • Probably some clothing sets are no longer available but not properly remove from spawn definition lists, I've first test on demo but forgot transfer changed code to main one.

I did tested with main version properly and seems like it's working again, so I've upload the change after.

Sorry again for inconvenience and Thanks for your notice.
Last edited by RUN 90s; 9 Jan, 2024 @ 11:17am
Quilava 10 Jan, 2024 @ 12:11am 
It work now, no more error and stuff, thank for the quick fix :steamthumbsup:
Quilava 16 Apr, 2024 @ 7:13am 
Dont know if this a bug, but i think u forget to add the Twintail hair into the spawn list, im only the long hair and ponytail for a very long time now
RUN 90s  [developer] 17 Apr, 2024 @ 7:02am 
AFAIK, if certain clothing sets have <subItems> tag, they will roll the chance between first one GUID in <m_items> and the rest (depend on how many <subItems> in its table), of course, maybe depend on how RNG in game goes which mask are appear on those zeds, they're none of locking specific masks to be appear often because I don't know how to do that, except limit probability of clothing items to be appear or not.
Last edited by RUN 90s; 17 Apr, 2024 @ 7:03am
Quilava 17 Apr, 2024 @ 7:44am 
i did create few new game cause new mod im add in lately but still no twin tail mask, it work fine before you remove the mask spawn with the outfit, and this only happen after you put it back in, so i think wrong item code in or something happen

If ur game still work fine then it maybe the problem on my end, have to cope with it by manual craft then
RUN 90s  [developer] 18 Apr, 2024 @ 9:27pm 
Seems weird that I think clothing set lists in XML file are have only few different because normal and demo mod is changed only FWVS2 parts, sets from Binary and SST will be all same.
To be quick test, try create new sandbox save and enable "All clothing unlocked" and see how they've generate clothing that they've random the masks properly while choosing binary clothing sets.
Quilava 18 Apr, 2024 @ 10:10pm 
I try like u said, turn on "all clothing unlocked", but it still happen

There something u should know, only the zombie spawn with outfit match with twintail hair now change to ponytail, while the zombie normally spawn with normal kokoa hair still working fine, that is
RUN 90s  [developer] 18 Apr, 2024 @ 10:40pm 
OK, I think I found the root cause.
If I need to random more than 2 items (but masks have 3 variants), I need to add <subItems> tag in every lines of each itemGUID, my code is looks like this in previously...
<m_items><itemGUID>ItemGUID1</itemGUID> <subItems> <itemGUID>ItemGUID2</itemGUID> <itemGUID>ItemGUID3</itemGUID> </subItems> </m_items>
Above code will always pick ItemGUID2 to random and skip the rest, so I need to change the code to this format instead to let all variants have chances.
<m_items><itemGUID>ItemGUID1</itemGUID> <subItems><itemGUID>ItemGUID2</itemGUID></subItems> <subItems><itemGUID>ItemGUID3</itemGUID></subItems> </m_items>
Quilava 18 Apr, 2024 @ 11:20pm 
Im not good at coding stuff so i cant tell, but let see if it work or not after you change it
Quilava 18 Apr, 2024 @ 11:34pm 
It work, look like you did the code right this time, thank you so much :D
Quilava 20 Apr, 2024 @ 11:13pm 
Im also noticed lately an error pop up when i start the game when it said "this is how you die", i though it some other mod, but after using "error magnifier" mod it look like the error belong to this mod, here what the error magnifier find


`Callframe at: table.insert
function: VSZeds_ProceduralDistributions.lua -- file: VSZeds_ProceduralDistributions.lua line # 21 | MOD: VariableZedSpawn
java.lang.NullPointerException: Cannot invoke "java.lang.Double.intValue()" because the return value of "se.krka.kahlua.vm.KahluaUtil.rawTonumber(Object)" is null
at se.krka.kahlua.stdlib.TableLib.insert(TableLib.java:220)
at se.krka.kahlua.stdlib.TableLib.call(TableLib.java:89)
at se.krka.kahlua.vm.KahluaThread.callJava(KahluaThread.java:182)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:1007)
at se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:163)
at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1980)
at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1782)
at se.krka.kahlua.integration.LuaCaller.pcall(LuaCaller.java:76)
at se.krka.kahlua.integration.LuaCaller.protectedCall(LuaCaller.java:117)
at zombie.Lua.LuaManager.RunLuaInternal(LuaManager.java:564)
at zombie.Lua.LuaManager.RunLua(LuaManager.java:510)
at zombie.Lua.LuaManager.RunLua(LuaManager.java:496)
at zombie.Lua.LuaManager.LoadDirBase(LuaManager.java:342)
at zombie.Lua.LuaManager.LoadDirBase(LuaManager.java:264)
at zombie.gameStates.GameLoadingState.enter(GameLoadingState.java:97)
at zombie.gameStates.GameStateMachine.update(GameStateMachine.java:145)
at zombie.GameWindow.logic(GameWindow.java:298)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71)
at zombie.GameWindow.frameStep(GameWindow.java:765)
at zombie.GameWindow.run_ez(GameWindow.java:681)
at zombie.GameWindow.mainThread(GameWindow.java:495)
at java.base(This part edited)java.lang.Thread.run(Unknown Source)
`
"(This part edited)" originally is "/" but it turn to a link lead to no where so i have to edited it so ppl wont accidently click on it and go to some god know what website

I have no idea what this is, but pretty sure VSZeds Procedural Distributions is this mod, hope you can find what wrong can patch it, keeping the mod list as clean as possible
Last edited by Quilava; 20 Apr, 2024 @ 11:19pm
RUN 90s  [developer] 21 Apr, 2024 @ 9:27am 
It's because I've left the broken clothing distribution script, that's likely not impact to gameplay but just annoyance because game cannot parse my clothing distribution code properly and cannot spawn clothing in containers as intent.
The link in that code is commented out that said "rewrite needed" is actually go to some topic in TIS forum that I wish to looking on for rewrite clothing spawn code, however, it seems like to take more times for that to lists all pieces of clothes and desired places of containers as much as possible.
I will remove that file out and maybe add sub mod separately if I'm ready.
Quilava 21 Apr, 2024 @ 10:17pm 
So that what it is, it is indeed doesnt affect the game so far, but sure is nice that you remove it, thank you so much :steamthumbsup:
< >
Showing 1-14 of 14 comments
Per page: 1530 50