Pikey Posted June 6, 2019 Posted June 6, 2019 This is probably one of the GameGUI hooks doing this on events, but I dont know which one or what it is trying to do as I am not subscribing to any in script. log error on event: 2019-06-06 14:24:18.249 ERROR Lua::Config: Call error onGameEvent:[string "./MissionEditor/modules/mul_chat.lua"]:700: attempt to index field '?' (a nil value) stack traceback: [C]: ? [string "./MissionEditor/modules/mul_chat.lua"]:700: in function 'onGameEvent' [string "./MissionEditor/GameGUI.lua"]:353: in function <[string "./MissionEditor/GameGUI.lua"]:350> (tail call): ? (tail call): ?. mul_chat.lua relevant area of code (takeoff event) elseif eventName == "takeoff" then local unitType = slotByUnitId[arg2].type if arg3 ~= nil and arg3 ~= "" and arg3 ~= " " then onChatMessage(base.string.format("%s ".._("in_chat", "in").." %s ".._("took off from").." %s",getPlayerInfo(arg1),keys.getDisplayName(unitType),_(arg3))) else onChatMessage(base.string.format("%s ".._("in_chat", "in").." %s ".._("took off from ground"),getPlayerInfo(arg1),keys.getDisplayName(unitType))) end GameGUI.lua relevant function function onGameEvent(eventName,arg1,arg2,arg3,arg4,arg5,arg6,arg7) --print("---onGameEvent(eventName)-----",eventName,arg1,arg2,arg3,arg4,arg5,arg6,arg7) if show_event(eventName) then Chat.onGameEvent(eventName,arg1,arg2,arg3,arg4,arg5,arg6,arg7) end end Looks like an argument is missing Would appreciate if folks without any GameGui hooks could check if theirs is doing the same and mention below. There's no real impact to the error and I'm not sure why it would need to report into but it makes the logs difficult to read ___________________________________________________________________________ SIMPLE SCENERY SAVING * SIMPLE GROUP SAVING * SIMPLE STATIC SAVING *
Recommended Posts