Jump to content

My mod has broken the item list in debug mode.


Captain Busket

Recommended Posts

Essentially, whenever I try to run the debug menu I get the debug screen popup and then my item list view is just a blank window. I've gone through the console.txt and found a few key errors. Not sure what's happening as I had it working just fine a couple days ago. 

Error message:

java.lang.NumberFormatException: For input string: "LC_Salt" at FloatingDecimal.readJavaFormatString.
ERROR: General     , 1681340356466> DebugLogStream.printException> Stack trace:
java.lang.NumberFormatException: For input string: "LC_Salt"
    at java.base/jdk.internal.math.FloatingDecimal.readJavaFormatString(Unknown Source)
    at java.base/jdk.internal.math.FloatingDecimal.parseFloat(Unknown Source)
    at java.base/java.lang.Float.parseFloat(Unknown Source)
    at java.base/java.lang.Float.<init>(Unknown Source)
    at zombie.scripting.objects.Recipe.DoSource(Recipe.java:429)
    at zombie.scripting.objects.Recipe.Load(Recipe.java:409)
    at zombie.scripting.objects.ScriptModule.CreateFromToken(ScriptModule.java:285)
    at zombie.scripting.objects.ScriptModule.ParseScript(ScriptModule.java:459)
    at zombie.scripting.objects.ScriptModule.Load(ScriptModule.java:60)
    at zombie.scripting.ScriptManager.CreateFromToken(ScriptManager.java:174)
    at zombie.scripting.ScriptManager.ParseScript(ScriptManager.java:75)
    at zombie.scripting.ScriptManager.LoadFile(ScriptManager.java:147)
    at zombie.scripting.ScriptManager.Load(ScriptManager.java:758)
    at zombie.gameStates.IngameState.exit(IngameState.java:1000)
    at zombie.gameStates.GameStateMachine.update(GameStateMachine.java:105)
    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/java.lang.Thread.run(Unknown Source)
WARN : Recipe      , 1681340356470> RecipeManager.resolveItemModuleDotType> WARNING: module "Base" may have forgot to import module Base


File layout:

image.png.49a253d83061762b59571b67e6b0d0a0.png

 

My code:

[spoiler][code]module BusketsBaking
 {
    imports {
        Base
    }

 model LC_Salt
    {
        mesh = WorldItems/LargeSaltContainer,
        texture = WorldItems/LargeSaltContainer,
        scale = 0.1,
    }

 item LC_Salt
    {
        DisplayName = Large Salt Container,
        DisplayCategory = Food,
        Type = Food,
        Weight = 0.75,
        Icon = Salt,
        CantBeFrozen = TRUE,
        Spice = true,
        HungerChange = -10,
        ThirstChange = 20,
        UnhappyChange = 20,
        WorldStaticModel = LargeSaltContainer,
        FoodType = NoExplicit,
        Tags = MinorIngredient;Salt,
    }

 recipe Pack up Salt
    {
        Salt = 5,

        Result = LC_Salt,
        Time:20,
    }

 model LC_Pepper
    {
        mesh = WorldItems/LargePepperContainer,
        texture = WorldItems/LargePepperContainer,
        scale = 0.1,
    }

 item LC_Pepper
    {
        DisplayName = Large Pepper Container,
        DisplayCategory = Food,
        Type = Food,
        Weight = 0.75,
        Icon = LargePepperContainer,
        CantBeFrozen = TRUE,
        Spice = true,
        HungerChange = -10,
        ThirstChange = 20,
        UnhappyChange = 20,
        WorldStaticModel = LargePepperContainer,
        FoodType = NoExplicit,
        Tags = MinorIngredient,
    }

 recipe Pack up Pepper
    {
        Pepper = 5,

        Result:LC_Pepper,
        Time:20,
    }
}[/code][/spoiler]

I also get the following stack trace message through the debug window. It fails on line 72, I think:
image.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...