Project Zomboid

Project Zomboid

Subpar Survivors
bikinihorst 28 Jul, 2021 @ 10:06am
Unable to invite people into group
They say "sure" or another positive reply but nothing else happens. The group UI shows nothing. Looks like it's got no contingency plan when there's no table present. Maybe create one if there's no existing one?

Here's the stack trace:

attempted index: getMembers of non-table: null LOG : General , 1627491471194> ----------------------------------------- STACK TRACE ----------------------------------------- function: CallButtonPressed -- file: SurvivorInfoWindow.lua line # 7 function: onMouseUp -- file: ISButton.lua line # 55 ERROR: General , 1627491471195> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: attempted index: getMembers of non-table: null at KahluaThread.tableget line:1689. ERROR: General , 1627491471195> DebugLogStream.printException> Stack trace: java.lang.RuntimeException: attempted index: getMembers of non-table: null at se.krka.kahlua.vm.KahluaThread.tableget(KahluaThread.java:1689) at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:641) 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 zombie.ui.UIElement.onMouseUp(UIElement.java:1236) at zombie.ui.UIElement.onMouseUp(UIElement.java:1190) at zombie.ui.UIManager.update(UIManager.java:782) at zombie.GameWindow.logic(GameWindow.java:247) at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71) at zombie.GameWindow.frameStep(GameWindow.java:722) at zombie.GameWindow.run_ez(GameWindow.java:638) at zombie.GameWindow.mainThread(GameWindow.java:467) at java.base/java.lang.Thread.run(Unknown Source) LOG : General , 1627491471197> ----------------------------------------- STACK TRACE ----------------------------------------- function: CallButtonPressed -- file: SurvivorInfoWindow.lua line # 7 function: onMouseUp -- file: ISButton.lua line # 55
< >
Showing 1-14 of 14 comments
SlightlyMadman  [developer] 1 Aug, 2021 @ 6:30am 
This is a much deeper issue, because it means you, the player, don't have a group. One would have been created when you started the game so I don't know how that's possible. Do you remember what else you did this game, like did you join another survivor's group? Also, at any point might you have been starving or extremely thirsty?
bikinihorst 2 Aug, 2021 @ 5:59am 
Sorry, I just read this. I was in great condition, no negative moodlets and in the winter fat phase with stuffed tummy. I did not join any groups, turned spawns off before the first load of the save and had a single goon for stacking corpses which I spawned in via key press at some point. He was in my group and could handle all tasks assigned to him. When the mod started to break on 41.51 I enabled the debug options for the mod, right clicked, "infect & murder" and buried him. After this the list was empty, not even with me in it.

Is the "no group" case detectable and can the "create group" procedure called when this occurs? Maybe via user dialog "looks like you don't have a group yet. Please back up your save and create one via the survivor context menu options"
SlightlyMadman  [developer] 3 Aug, 2021 @ 6:54am 
Interesting, so there was nobody else in your group? That's more fixable. I suspect it's a problem with the "infect & murder" option that it likely deleted your character's group.
bikinihorst 3 Aug, 2021 @ 7:00am 
No, just my freshly spawned "starved for human contact" "0% hostility" buddy Juan who helped me pile up the 100 Zombie corpses around my newly freed warehouse just outside of Rosewood. Such a nice job he did, too. I miss this feature the most :(
SlightlyMadman  [developer] 3 Aug, 2021 @ 8:00am 
If you want to fix your current game, try to find a survivor on the map who's barricaded a house up and is hiding inside it. You should have the option to join their group. You won't be the leader, but that doesn't actually do anything anyway. You could also edit the save files if you're willing. Just open up SurvivorGroup0.lua, and if it's blank type a "0" (zero) in the first line and save it (if it's not blank, check the next number until you find a blank).
bikinihorst 3 Aug, 2021 @ 11:00am 
Sadly I don't have any survivors on the map because I disabled spawning. I have restored the files inside of the Workshop folders to an older backup of Super / Subpar Survivors and updated the mods to the current version (via Steam "verify"), but to no avail. I still could not invite a member to my group as I didn't have one.

I put the "0" into the "SurvivorGroup0.lua" file directly inside of the "2521330369" directory and inside of every "date-time" directory inside the mod folder. After loading the game the "0" got removed from the file again. Group invites still don't work.

Screenshot of confirmation / empty group / "nil" on worker info:
https://imgur.com/3670sqq

Data from 2521330369\mods\Subpar-Survivors\20-07-2021_06-53-20:
https://www.dropbox.com/s/40unx2o5ltl3hag/20-07-2021_06-53-20.rar?dl=1

Is there anything wrong with it? The restored data was from a time when everything worked (2021-07-28), so before the "infect / murder" thing.
SlightlyMadman  [developer] 3 Aug, 2021 @ 11:08am 
Try editing the SurvivorGroup0.lua again to "0" and also edit SurvivorGroup0metaData.lua to have "1" on the first line then "0" on the second line.
bikinihorst 3 Aug, 2021 @ 11:09am 
Inside the mod\savegame directory or inside the mod directory?

edit: i changed the files inside of the mod\savegame and mod directory but nothing changed with the groups. After loading the meta file gets reset to

0
-1

and the group0 gets reset to empty
Last edited by bikinihorst; 3 Aug, 2021 @ 11:20am
bikinihorst 3 Aug, 2021 @ 11:54am 
Alright, I had an idea: I started a new game with the mods enabled and saved right away. Then i copied all the lua files from the new save into the old one and bingo bango now I can finally have a corpse stacking friend again. Thank you so much for the time and energy you invested into this mod and helping me. I truly appreciate you taking your time to answer questions and help people here.
Last edited by bikinihorst; 3 Aug, 2021 @ 11:54am
SlightlyMadman  [developer] 3 Aug, 2021 @ 12:22pm 
Glad that worked for you, that was good thinking! I'll try to reproduce your issue soon.
bikinihorst 3 Aug, 2021 @ 2:16pm 
I don't think this is worth the hassle as it seemed to be a fringe case. Thanks again and keep up the great work!
Chop 30 Aug, 2021 @ 9:35am 
looks like this is a similar issue i have ran into, where would the lua files be located to I can try and do the same thing Bikini did to fix my save
bikinihorst 30 Aug, 2021 @ 2:18pm 
Hi! Sorry, I just read this. I will try to describe what I did in detail.

Steam Workshop downloads to a folder, which you need to locate first. In my case it was:
C:\Program Files (x86)\Steam\steamapps\workshop\content\108600

The mod ID you are looking for inside this folder is 2521330369

Navigate to this folder and further down until you are inside the "Subpar-Survivors" folder. You will find directories named "03-08-2021_08-41-48" or something else, which are the savegame folders.

Now you have your current game which for example is the name from above. Back this folder up (make an archive or something like that).

Start PZ and create a new game with Superb and Subpar enabled. After starting the game you exit PZ shortly after spawning. This will create a new Folder inside C:\Program Files (x86)\Steam\steamapps\workshop\content\108600\2521330369\mods\Subpar-Survivors with the current date + time as name, which you will open now.

Inside are many files. Now you copy all the files inside of the new directory into the directory named like your broken save game and replace the contents.

In my case this repaired the groups and I have had no problems with them since.
Chop 31 Aug, 2021 @ 3:03am 
Hey thank you so much for responding! I found the lua for some reason I thought they were in the zomboid folders lol

long story short i managed to get my save fixed! thanks for the help saved so much that save i've survived 4months.

So it 100% was me using debug mode and the "infect & murder" option that caused the loss of group status
< >
Showing 1-14 of 14 comments
Per page: 1530 50