Jump to content

Add Ingredient Exception


Tykvesh

Recommended Posts

  • 41.65
  • Singleplayer
  • No mods
  • Steps to reproduce:
  1. Make a Potato Soup (I added 2 stale potatoes)
  2. Add Opened Canned Mushroom Soup via crafting
  3. Any ingredients added after that also throw the same exception

 

screenshot_28-12-2021_18-01-22.thumb.png.107c40a9af104a8211670dabce520cd7.png

ERROR: General     , 1640702687031> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: __concat not defined for operands: ContextMenu_FoodType_ and null at KahluaUtil.fail line:82.
ERROR: General     , 1640702687031> DebugLogStream.printException> Stack trace:
java.lang.RuntimeException: __concat not defined for operands: ContextMenu_FoodType_ and null
	at se.krka.kahlua.vm.KahluaUtil.fail(KahluaUtil.java:82)
	at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:805)
	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:85)
	at zombie.characters.CharacterTimedActions.LuaTimedActionNew.perform(LuaTimedActionNew.java:104)
	at zombie.characters.IsoGameCharacter.updateInternal(IsoGameCharacter.java:9704)
	at zombie.util.lambda.Invokers$Params1$CallbackStackItem.run(Invokers.java:37)
	at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71)
	at zombie.core.profiling.AbstractPerformanceProfileProbe.lambda$invokeAndMeasure$0(AbstractPerformanceProfileProbe.java:83)
	at zombie.util.lambda.Stacks$Params3$CallbackStackItem.invoke(Stacks.java:230)
	at zombie.util.lambda.Stacks$GenericStack.invokeAndRelease(Stacks.java:26)
	at zombie.util.Lambda.capture(Lambda.java:130)
	at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:81)
	at zombie.characters.IsoGameCharacter.update(IsoGameCharacter.java:9441)
	at zombie.characters.IsoPlayer.updateInternal1(IsoPlayer.java:1874)
	at zombie.util.lambda.Invokers$Params1$CallbackStackItem.run(Invokers.java:37)
	at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71)
	at zombie.core.profiling.AbstractPerformanceProfileProbe.lambda$invokeAndMeasure$0(AbstractPerformanceProfileProbe.java:83)
	at zombie.util.lambda.Stacks$Params3$CallbackStackItem.invoke(Stacks.java:230)
	at zombie.util.lambda.Stacks$GenericStack.invokeAndRelease(Stacks.java:26)
	at zombie.util.Lambda.capture(Lambda.java:130)
	at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:81)
	at zombie.characters.IsoPlayer.update(IsoPlayer.java:1858)
	at zombie.MovingObjectUpdateSchedulerUpdateBucket.update(MovingObjectUpdateSchedulerUpdateBucket.java:79)
	at zombie.MovingObjectUpdateScheduler.update(MovingObjectUpdateScheduler.java:145)
	at zombie.iso.IsoCell.ProcessObjects(IsoCell.java:2929)
	at zombie.iso.IsoCell.updateInternal(IsoCell.java:5718)
	at zombie.util.lambda.Invokers$Params1$CallbackStackItem.run(Invokers.java:37)
	at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71)
	at zombie.core.profiling.AbstractPerformanceProfileProbe.lambda$invokeAndMeasure$0(AbstractPerformanceProfileProbe.java:83)
	at zombie.util.lambda.Stacks$Params3$CallbackStackItem.invoke(Stacks.java:230)
	at zombie.util.lambda.Stacks$GenericStack.invokeAndRelease(Stacks.java:26)
	at zombie.util.Lambda.capture(Lambda.java:130)
	at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:81)
	at zombie.iso.IsoCell.update(IsoCell.java:5664)
	at zombie.iso.IsoWorld.updateInternal(IsoWorld.java:3334)
	at zombie.util.lambda.Invokers$Params1$CallbackStackItem.run(Invokers.java:37)
	at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71)
	at zombie.core.profiling.AbstractPerformanceProfileProbe.lambda$invokeAndMeasure$0(AbstractPerformanceProfileProbe.java:83)
	at zombie.util.lambda.Stacks$Params3$CallbackStackItem.invoke(Stacks.java:230)
	at zombie.util.lambda.Stacks$GenericStack.invokeAndRelease(Stacks.java:26)
	at zombie.util.Lambda.capture(Lambda.java:130)
	at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:81)
	at zombie.iso.IsoWorld.update(IsoWorld.java:3262)
	at zombie.gameStates.IngameState.updateInternal(IngameState.java:1666)
	at zombie.gameStates.IngameState.update(IngameState.java:1367)
	at zombie.gameStates.GameStateMachine.update(GameStateMachine.java:101)
	at zombie.GameWindow.logic(GameWindow.java:289)
	at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71)
	at zombie.GameWindow.frameStep(GameWindow.java:745)
	at zombie.GameWindow.run_ez(GameWindow.java:661)
	at zombie.GameWindow.mainThread(GameWindow.java:475)
	at java.base/java.lang.Thread.run(Unknown Source)
LOG  : General     , 1640702687037> -----------------------------------------
STACK TRACE
-----------------------------------------
function: checkName -- file: ISAddItemInRecipe.lua line # 72
function: perform -- file: ISAddItemInRecipe.lua line # 43

LOG  : General     , 1640702687039> bugged action, cleared queue	zombie.characters.CharacterTimedActions.LuaTimedActionNew@67db31a0

 

Edited by Tykvesh
Link to comment
Share on other sites

  • Tykvesh changed the title to Add Ingredient Exception
  • 1 month later...

Bump. Still affecting 41.66 unstable in multiplayer:

ERROR: General     , 1645658236721> 6,576,166,111> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: __concat not defined for operands: ContextMenu_FoodType_ and null at KahluaUtil.fail line:82.
function: checkName -- file: ISAddItemInRecipe.lua line # 82
function: perform -- file: ISAddItemInRecipe.lua line # 43

Steps taken:

  1. Open can of mushroom soup
  2. Right click bowl
  3. Create salad from open can of mushroom soup

 

Is this a bug where the soup can be used as regular mushrooms?

image.png.af253b7c7b1f043af84302eb4f759586.png

Edited by CSSFerret
Add screenshot
Link to comment
Share on other sites

I think I've found the problem - it's basically the game asking 'What type of food is this?' and not knowing the answer.

 

There's a missing value for the item CannedMushroomSoupOpen in \media\scripts\items_food.txt.

 

If you want to test, open that file, scroll down to line 172* and add in the following line somewhere inside the { } brackets.

 

FoodType    = Vegetables,

 

You can see this value in the CannedCornOpen above it, and CannedPeasOpen below it but is absent for mushroon soup.

 

Line number might have changed in 41.66, I've only got 41.65 installed so can't check.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...