Project Zomboid

Project Zomboid

Corner Store Candies and Sodas Fixed
norby007  [developer] 5 Nov, 2023 @ 12:02pm
bugs or suggestions posted here
Drop in any changes you want/need changed and I will work to keep up on this mod too.
< >
Showing 1-12 of 12 comments
Grimmiekins 8 Nov, 2023 @ 10:45am 
be kind of cool to set up a candy store in a couple of the towns
norby007  [developer] 9 Nov, 2023 @ 1:11pm 
Originally posted by Grimmiekins:
be kind of cool to set up a candy store in a couple of the towns

That would be nice, believe it or not there are code segments that refer to a candy store. They may exist. Just like there is code about a strip club but I have not seen that before either. Maybe an expansion for Supergigamart after the next big code release.
Le SneK [] 12 Nov, 2023 @ 10:04am 
running this mod in my server gives a stack trace error when trying to load RedDeath.lua file.

what could be causing it and would it impact server performance in any way?
Alximik 12 Nov, 2023 @ 1:51pm 
Same:

function: SaveBank -- file: RedDeath.lua line # 184 | MOD: Corner Store Candies and Sodas Fixed.
ERROR: General , 1699825496338> 51,332,199> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: attempted index: getModData of non-table: null at KahluaThread.tableget line:1689..
ERROR: General , 1699825496339> 51,332,199> DebugLogStream.printException> Stack trace:.
LOG : General , 1699825496340> 51,332,201> -----------------------------------------
STACK TRACE
norby007  [developer] 12 Nov, 2023 @ 4:10pm 
Originally posted by Alximik:
Same:

function: SaveBank -- file: RedDeath.lua line # 184 | MOD: Corner Store Candies and Sodas Fixed.
ERROR: General , 1699825496338> 51,332,199> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: attempted index: getModData of non-table: null at KahluaThread.tableget line:1689..
ERROR: General , 1699825496339> 51,332,199> DebugLogStream.printException> Stack trace:.
LOG : General , 1699825496340> 51,332,201> -----------------------------------------
STACK TRACE


I will dig into that code right now, thank you! Usually it doesn't effect performance but it could.
norby007  [developer] 12 Nov, 2023 @ 7:12pm 
Originally posted by Le SneK :
running this mod in my server gives a stack trace error when trying to load RedDeath.lua file.

what could be causing it and would it impact server performance in any way?


TLDR Removed the skull icon that was throwing an error and a couple other null errors but Red Death still works.

Thank you both for letting me know. This is a messy one. I cleared a couple of issues where the original code was not checking for a failed result before calling it into action. I think I found a half dozen of these before I launched the fixed version but a couple squeaked by until they got called by the server.

The second part of this is a bit tougher. Just spent a bit of time working on it. The icon for the red death drink is called before it's created. So this throws a failure before it's even made. It requires a rewrite to get the icon working again but I am thinking about a different route. The moodles would be better used or a new one created for the task. So I am going to look into that first. For now I have disabled the red death icon. If anyone needs the info, the red death icon info is popped by hitting the "M" key.

I don't know how many people really use this drink anyways, it has a nice bonus but then crashes hard afterwards I just dump them. Maybe I can make a poll or something and find out if I fix it or dump it from the mod. It still works, just doesn't give you the countdown skull icon. And you have to drink like 4 in a row to cause real harm, by then your moodles are angry.

Thank you again!
Alximik 13 Nov, 2023 @ 2:18am 
AH ♥♥♥♥, HERE WE GO AGAIN.
Log from dedicated server:

function: SaveBank -- file: RedDeath.lua line # 176 | MOD: Corner Store Candies and Sodas Fixed.
ERROR: General , 1699870342920> 3,988,781> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: attempted index: getModData of non-table: null at KahluaThread.tableget line:1689..
ERROR: General , 1699870342921> 3,988,782> DebugLogStream.printException> Stack trace:.
LOG : General , 1699870342922> 3,988,783> -----------------------------------------
STACK TRACE
norby007  [developer] 13 Nov, 2023 @ 1:19pm 
Originally posted by Alximik:
AH ♥♥♥♥, HERE WE GO AGAIN.
Log from dedicated server:

function: SaveBank -- file: RedDeath.lua line # 176 | MOD: Corner Store Candies and Sodas Fixed.
ERROR: General , 1699870342920> 3,988,781> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: attempted index: getModData of non-table: null at KahluaThread.tableget line:1689..
ERROR: General , 1699870342921> 3,988,782> DebugLogStream.printException> Stack trace:.
LOG : General , 1699870342922> 3,988,783> -----------------------------------------
STACK TRACE


Thank you, just found it myself. Going to tear out this red death until I can completely recode it. It hates me...
Green -.- 13 Nov, 2023 @ 5:16pm 
same problem here

function: SaveBank -- file: RedDeath.lua line # 176 | MOD: Corner Store Candies and Sodas Fixed

ERROR: General , 1699924461717> 782,613,509> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: attempted index: getModData of non-table: null at KahluaThread.tableget line:1689.
ERROR: General , 1699924461717> 782,613,509> DebugLogStream.printException> Stack trace:
java.lang.RuntimeException: attempted index: getModData 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.pcallvoid(KahluaThread.java:1812)
at se.krka.kahlua.integration.LuaCaller.pcallvoid(LuaCaller.java:66)
at se.krka.kahlua.integration.LuaCaller.protectedCallVoid(LuaCaller.java:139)
at zombie.Lua.Event.trigger(Event.java:64)
at zombie.Lua.LuaEventManager.triggerEvent(LuaEventManager.java:65)
at zombie.GameTime.update(GameTime.java:671)
at zombie.gameStates.IngameState.UpdateStuff(IngameState.java:566)
at zombie.gameStates.IngameState.updateInternal(IngameState.java:1623)
at zombie.gameStates.IngameState.update(IngameState.java:1333)
at zombie.network.GameServer.main(GameServer.java:903)
LOG : General , 1699924461717> 782,613,509> -----------------------------------------
STACK TRACE
-----------------------------------------
function: SaveBank -- file: RedDeath.lua line # 176 | MOD: Corner Store Candies and Sodas Fixed
norby007  [developer] 13 Nov, 2023 @ 8:05pm 
Originally posted by Green -.-:
same problem here

function: SaveBank -- file: RedDeath.lua line # 176 | MOD: Corner Store Candies and Sodas Fixed

ERROR: General , 1699924461717> 782,613,509> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: attempted index: getModData of non-table: null at KahluaThread.tableget line:1689.
ERROR: General , 1699924461717> 782,613,509> DebugLogStream.printException> Stack trace:
java.lang.RuntimeException: attempted index: getModData 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.pcallvoid(KahluaThread.java:1812)
at se.krka.kahlua.integration.LuaCaller.pcallvoid(LuaCaller.java:66)
at se.krka.kahlua.integration.LuaCaller.protectedCallVoid(LuaCaller.java:139)
at zombie.Lua.Event.trigger(Event.java:64)
at zombie.Lua.LuaEventManager.triggerEvent(LuaEventManager.java:65)
at zombie.GameTime.update(GameTime.java:671)
at zombie.gameStates.IngameState.UpdateStuff(IngameState.java:566)
at zombie.gameStates.IngameState.updateInternal(IngameState.java:1623)
at zombie.gameStates.IngameState.update(IngameState.java:1333)
at zombie.network.GameServer.main(GameServer.java:903)
LOG : General , 1699924461717> 782,613,509> -----------------------------------------
STACK TRACE
-----------------------------------------
function: SaveBank -- file: RedDeath.lua line # 176 | MOD: Corner Store Candies and Sodas Fixed


Thank you, disabled the entire code of red death's special abilities. It still makes a great fatigue reducer while I get time to rewrite it entirely.
reesely 17 Feb, 2024 @ 2:51pm 
It would be Very Cool if some of these items were compatible with Sapph's cooking... How else am I gonna make Hot Dr Pepper in a thermos......
Translation? I can help you with the PTBR language!
< >
Showing 1-12 of 12 comments
Per page: 1530 50