Jump to content

DCS API BUG & ENHANCEMENT : S_EVENT_REFUELING not reporting aircraft receiving fuel


Recommended Posts

Hi,

I am not sure how long this has been a bug for but it appears that the S_EVENT_REFUELING event in DCS is not reporting the unit receiving the fuel. The documentation HERE appears to be missing quite a considerable amount of information regarding events but I have been able to find more information on other sources through the internet. 

The reason for my reporting the bug is due to the S_EVENT_REFUELING_STOP reporting the event for both the tanker AND the aircraft receiving fuel but the S_EVENT_REFUELING does not. Can you please fix this?

Log evidence that the S_EVENT_REFUELING is not triggering for the refuelling aircraft.

Spoiler

2023-12-30 17:52:45.600 INFO    Scripting (Main): event:type=refuel,initiatorPilotName=KC135MPRS,t=1895.057,initiator_unit_type=KC135MPRS,initiator_object_id=16826881,linked_event_id=0,event_id=168,initiator_coalition=2,initiator_ws_type1=1,initiatorMissionID=1002114,
2023-12-30 17:52:45.600 INFO    APP (Main): wcTanker::onEvent:6
2023-12-30 17:53:26.866 INFO    Scripting (Main): event:type=refuel stop,initiatorPilotName=KC135MPRS,t=1936.322,initiator_unit_type=KC135MPRS,initiator_object_id=16826881,linked_event_id=0,event_id=169,initiator_coalition=2,initiator_ws_type1=1,initiatorMissionID=1002114,
2023-12-30 17:53:26.866 INFO    APP (Main): wcTanker::onEvent:7
2023-12-30 17:53:26.866 INFO    Scripting (Main): event:type=refuel stop,initiatorPilotName=OzDeaDMeaT,t=1936.322,initiator_unit_type=FA-18C_hornet,initiator_object_id=16777474,linked_event_id=0,event_id=170,initiator_coalition=2,initiator_ws_type1=1,initiatorMissionID=102,
2023-12-30 17:53:26.866 INFO    EDCORE (Main): (wcTanker::Channel)enterToState_:1

 

Possible Enhancements to S_EVENT_REFUELING & S_EVENT_REFUELING_STOP

Spoiler

Also, if you are reviewing events with the DCS API, please consider the following 'upgrades' to the refuelling events


1. Make it a single event that reports both the tanker and the aircraft receiving fuel.

2. Add a refuelling duration for the S_EVENT_REFUELING_STOP as this information would be very useful for this event.


Here is a possible data structure:


world.event.S_EVENT_REFUELING = {
    id = 7,
      time = Time,
      initiator = Unit, --This would be the aircraft recieving fuel
    tanker = Unit,    --This would be the tanker aircraft giving the fuel
    }

world.event.S_EVENT_REFUELING_STOP = {
    id = 14,
      time = Time,
      initiator = Unit, --This would be the aircraft recieving fuel
    tanker = Unit,    --This would be the tanker aircraft giving the fuel
    duration = Number --This would be the period (in seconds) that the refuelling aircraft and the tanker would be connected for
    }

  • Like 1

CPU: i9-12900K @ 4.9Ghz

M/B: MSI MEG z690 Ace

RAM: 128GB

Video Card: MSI RTX 4090 Suprim Liquid X

VR: Varjo Aero

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
  • Recently Browsing   0 members

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