Jump to content

Recommended Posts

Posted

There appears to be a bug in the way event handlers are being called for the birth event, before the birth event actually happens.

 

If you look at the below log, the KI.Hooks.GameEventHandler:onEvent(event) has a handler for BIRTH events, and it initializes some stuff using the event.initiator .

 

If you look here, the handler is called BEFORE the actual birth event happens. This should be firing the other way around - you can't do anything with the event data if the unit has not been created.

 

This fires as intended/expected in 1.5.8 stable. The birth event is called first before the handler is invoked.

 

03558.600 INFO    SCRIPTING: KI.Hooks.GameEventHandler:onEvent(event) called
03558.600 INFO    SCRIPTING: SLC - Calling InitSLCForUnit
03558.600 INFO    SCRIPTING: SLC - InitSLCForUnit - unit does not exist - aborting
03558.601 INFO    SCRIPTING:   5358(    13)/E:               EVENT00000.onEvent({[1]="S_EVENT_BIRTH",[2]={["IniUnit"]={["ClientAlive2"]=false,["ClientBriefing"]="",["ClassName"]="CLIENT",["AliveCheckScheduler"]={["SchedulerObject"]=,["MasterObject"]=,["ClassName"]="SCHEDULER",["Schedules"]={[1]="28#CLIENT#000000499",},},["ClientAlive"]=false,["Messages"]={},["MessageSwitch"]=true,["ClientTransport"]=false,["_Tasks"]={},["ONBOARDSIDE"]={["BACK"]=3,["FRONT"]=4,["RIGHT"]=2,["NONE"]=0,["LEFT"]=1,},["ClientBriefingShown"]=false,["_Menus"]={},["ClientName"]="SLCPilot41",},["IniPlayerName"]="Igneous01",["initiator"]={["id_"]=16780548,},["id"]=15,["IniTypeName"]="Mi-8MT",["IniObjectCategory"]=1,["IniUnitName"]="SLCPilot41",["IniCategory"]=1,["IniCoalition"]=1,["time"]=0,["IniDCSGroup"]={["id_"]=141,},["IniDCSUnitName"]="SLCPilot41",["IniDCSUnit"]=,["IniDCSGroupName"]="Torba-Mi8-3",},[3]="SLCPilot41",[5]=1,})
03558.601 INFO    SCRIPTING:   8539(  8912)/E:            DATABASE00003.AddGroup({[1]="Add GROUP:",[2]="Torba-Mi8-3",})
03558.814 INFO    SCRIPTING:   8551(  8354)/E:            DATABASE00003.AddPlayer({[1]="Add player for unit:",[2]="SLCPilot41",[3]="Igneous01",})
03558.815 INFO    SCRIPTING:   5735(  5735)/E:            SETTINGS00721.IsA2A_BRAA({["BRA"]=true,})
03558.815 INFO    SCRIPTING:   5735(  5957)/E:            SETTINGS01186.IsA2A_BRAA({["BRA"]=true,})
03558.815 INFO    SCRIPTING:   5735(  5736)/E:            SETTINGS00721.IsA2A_BRAA({["BRA"]=true,})

Developer of Kaukasus Insurgency - a customizable Dynamic PvE Campaign with cloud hosting and stats tracking. (Alpha)

 

http://kaukasusinsurgency.com/

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...