Skip to content

Error when hitting apply in options #281

Description

@DesertLobster

Describe the bug
Whenever I hit apply in the Options/settings menu this error seems to appear.

To Reproduce
Steps to reproduce the behavior:

  1. Enable Mod
  2. Click on Options
  3. Change any setting
  4. Hit apply
  5. See error

Logs

=== Zomboid Settings ===
Version: 42.20.4 b0bbce05d5 (Steam)
Mode: SINGLE PLAYER

[x2]
attempted index: getUsername of non-table: null
Lua((MOD:The Only Cure)).OverrideInteractionsKey(CachedDataHandler.lua:191)
    Lua((MOD:The Only Cure)).apply(LimitActionsController.lua:39)
    Lua(Vanilla).onOptionMouseDown(MainOptions.lua:3702)
    Lua(Vanilla).onMouseUp(ISButton.lua:47)
java.lang.RuntimeException: attempted index: getUsername of non-table: null
    at se.krka.kahlua.vm.KahluaThread.tableget(KahluaThread.java:1430)
    at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:459)
    at se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:162)
    at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1740)
    at se.krka.kahlua.vm.KahluaThread.pcallBoolean(KahluaThread.java:1676)
    at se.krka.kahlua.integration.LuaCaller.protectedCallBoolean(LuaCaller.java:96)
    at zombie.ui.UIElement.onMouseUp(UIElement.java:1411)
    at zombie.ui.UIElement.onMouseUp(UIElement.java:1384)
    at zombie.ui.UIElement.onMouseUp(UIElement.java:1384)
    at zombie.ui.UIElement.onConsumeMouseButtonUp(UIElement.java:1474)
    at zombie.ui.UIManager.updateMouseButtons(UIManager.java:747)
    at zombie.ui.UIManager.update(UIManager.java:621)
    at zombie.GameWindow.logic(GameWindow.java:347)
    at zombie.GameWindow.frameStep(GameWindow.java:790)
    at zombie.GameWindow.mainThreadStep(GameWindow.java:567)
    at zombie.MainThread.mainLoop(MainThread.java:69)
    at java.base/java.lang.Thread.run(Unknown Source)

Additional context
Add any other context about the problem here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions