Skip to content

Mod caused nil error in zk utility function #5801

Description

@SteelBlueZK

[t=00:07:46.006454][f=0030033] Error: [LuaRules::RunCallInTraceback] error=2 (LUA_ERRRUN) callin=GameFrame trace=[Internal Lua error: Call failure] [string "LuaRules/Utilities/unittypechecker.lua"]:63: attempt to index local 'ud' (a nil value)
This error seems to happen every frame once it starts
source link

This error comes out of this replay:
https://zero-k.info/Battles/Detail/2472912

running this mod: https://zero-k.info/Mods/Detail/31

The mod changes stuff about commanders, and is most likely an interaction with code from the commander egg update.

Probably just needs a change to return false when it's given an improper unit def ID and let errors scream elsewhere.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions