Project Zomboid

Project Zomboid

MoreBrews!
Lil Boogie 25 Aug, 2023 @ 6:10pm
So many errors when drinking a beer from MoreBrews in MP
attempted index: getStats of non-table: null.
[25-08-23 23:05:29.484] LOG : General , 1693004729484> 1,227,352,211> -----------------------------------------
STACK TRACE
-----------------------------------------
function: OnEat_Beer -- file: MoreBrews_recipecode.lua line # 109 | MOD: More Brews!.
[25-08-23 23:05:29.485] ERROR: General , 1693004729485> 1,227,352,212> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: attempted index: getStats of non-table: null at KahluaThread.tableget line:1689..
[25-08-23 23:05:29.486] ERROR: General , 1693004729486> 1,227,352,212> DebugLogStream.printException> Stack trace:.
[25-08-23 23:05:29.487] LOG : General , 1693004729487> 1,227,352,213> -----------------------------------------
STACK TRACE
-----------------------------------------
function: OnEat_Beer -- file: MoreBrews_recipecode.lua line # 109 | MOD: More Brews!.
[25-08-23 23:05:35.491] LOG : General , 1693004735491> 1,227,358,217> -------------------------------------------------------------
attempted index: getStats of non-table: null.
[25-08-23 23:05:35.491] LOG : General , 1693004735491> 1,227,358,217> -----------------------------------------
STACK TRACE
-----------------------------------------
function: OnEat_Beer -- file: MoreBrews_recipecode.lua line # 109 | MOD: More Brews!.
[25-08-23 23:05:35.491] ERROR: General , 1693004735491> 1,227,358,218> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: attempted index: getStats of non-table: null at KahluaThread.tableget line:1689..
[25-08-23 23:05:35.491] ERROR: General , 1693004735491> 1,227,358,218> DebugLogStream.printException> Stack trace:.
[25-08-23 23:05:35.492] LOG : General , 1693004735492> 1,227,358,218> -----------------------------------------
STACK TRACE
-----------------------------------------
function: OnEat_Beer -- file: MoreBrews_recipecode.lua line # 109 | MOD: More Brews!.
[25-08-23 23:05:41.085] LOG : General , 1693004741085> 1,227,363,812> -------------------------------------------------------------
attempted index: getStats of non-table: null.
[25-08-23 23:05:41.086] LOG : General , 1693004741086> 1,227,363,812> -----------------------------------------
STACK TRACE
-----------------------------------------
function: OnEat_Beer -- file: MoreBrews_recipecode.lua line # 109 | MOD: More Brews!.
[25-08-23 23:05:41.086] ERROR: General , 1693004741086> 1,227,363,812> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: attempted index: getStats of non-table: null at KahluaThread.tableget line:1689..
[25-08-23 23:05:41.086] ERROR: General , 1693004741086> 1,227,363,812> DebugLogStream.printException> Stack trace:.
[25-08-23 23:05:41.087] LOG : General , 1693004741087> 1,227,363,813> -----------------------------------------
STACK TRACE
-----------------------------------------
function: OnEat_Beer -- file: MoreBrews_recipecode.lua line # 109 | MOD: More Brews!.
[25-08-23 23:05:42.359] LOG : General , 1693004742359> 1,227,365,085> RCON: ID=1621 Type=0 Body='' Socket[addr=/51.222.127.206,port=49622,localport=27015].
[25-08-23 23:05:43.209] LOG : General , 1693004743209> 1,227,365,935> Message 'ChatMessage{chat=Local, author='Elyisium', text='Alcoholic goioo'}' was sent to player with id '8' of chat '1'.
[25-08-23 23:05:44.118] LOG : General , 1693004744118> 1,227,366,844> Message 'ChatMessage{chat=Local, author='Winter', text='is the sledge yours?'}' was sent to player with id '20' of chat '1'.
[25-08-23 23:05:49.077] LOG : General , 1693004749077> 1,227,371,803> -------------------------------------------------------------
attempted index: getStats of non-table: null.
[25-08-23 23:05:49.077] LOG : General , 1693004749077> 1,227,371,803> -----------------------------------------
STACK TRACE
-----------------------------------------
function: OnEat_Beer -- file: MoreBrews_recipecode.lua line # 109 | MOD: More Brews!.
[25-08-23 23:05:49.077] ERROR: General , 1693004749077> 1,227,371,804> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: attempted index: getStats of non-table: null at KahluaThread.tableget line:1689..
[25-08-23 23:05:49.077] ERROR: General , 1693004749077> 1,227,371,804> DebugLogStream.printException> Stack trace:.
[25-08-23 23:05:49.077] LOG : General , 1693004749077> 1,227,371,804> -----------------------------------------
STACK TRACE
-----------------------------------------
function: OnEat_Beer -- file: MoreBrews_recipecode.lua line # 109 | MOD: More Brews!.
[25-08-23 23:05:56.383] LOG : General , 1693004756383> 1,227,379,110> -------------------------------------------------------------
attempted index: getStats of non-table: null.
[25-08-23 23:05:56.384] LOG : General , 1693004756384> 1,227,379,110> -----------------------------------------
STACK TRACE
Last edited by Lil Boogie; 25 Aug, 2023 @ 6:11pm
< >
Showing 1-1 of 1 comments
Lil Boogie 26 Aug, 2023 @ 4:47am 
It seems like line #109 is this:

-- drinking crafted beer with brewer trait reduces boredom
function OnEat_Beer(food, character, player)
local player = getPlayer();
local stats = player:getStats();
local bodyDamage = player:getBodyDamage();
local brewing = player:getPerkLevel(Perks.Brewing);
local script = food:getScriptItem();

So there's something wrong with getting player stats when they drink an item from the MoreBrews mod? I could be wrong but just speculating here.

Any idea what it could be? I do use More Traits mod.. but not had an issue with it before. I don't believe i have any other brewing mod than yours.
Last edited by Lil Boogie; 26 Aug, 2023 @ 4:52am
< >
Showing 1-1 of 1 comments
Per page: 1530 50