Jump to content

`Controller.getDetectedTargets()` - ground units do not detect activated/spawned new units in sight


Recommended Posts

Posted (edited)

When testing, I found that ground units which are activated/spawned are never detected by other ground units (least the data is not coming via the API). Also, dead units are never forgotten. Demo code:

function seewhatwesee(one,time)

local unit = Unit.getByName("Recce Unit #001")

local contr = unit:getController()

local detectedunits = Controller.getDetectedTargets(contr,1,2,4,8,16,32)

for _,_unit in pairs(detectedunits or {}) do

env.info("Detected: "..Object.getName(_unit.object))

end

return time+10

end



timer.scheduleFunction(seewhatwesee, 1, timer.getTime() + 10)

 

Demo mission - units of the group Enemy-1 are never reported in the log.
Dead units (as in killed in CA by a tank) continue to be reported.

ground not detecting ground demo.miz

Edited by Apple
  • Like 44
Posted (edited)

So there's a lot going on. What I found is that ROE stops detection. For those not running the track, its too much to explain but there are combinations of Hold fire, invisible and late activated.

I flipped ROE to 'fire' on the M1A1. Instead of shooting the unarmed trucks that were detected by [who?] in the logs, it immediately detects the BTR and wipes them out. I conclude that if you turn ROE to not firing, it also changes the detection to "blind" or paused or something that doesnt work until released.

The combination of invisibles and ROE and inability to kill/attack contributes to the overall impression of something worse. The spawned in BTR fails to attack the MBT in its front when spawned. But this is becauyse of unit type vs unit type restrictions. If the unit is replaced with a BMP2, the turret immediately fires.

Spawning a late activated Bradley behind those BMPs, it immediatley fires on the BMP and the BMP immediately responds behind itself

I dont find a defect with detection, despite the weird ignorance of the BTR towards an Abrams in front of it. And the ROE thing is debateably a bug, but its more unexpected than a bug.

For your second report of persistent detection after death I need something a bit clearer.

image.png

Edited by Pikey
  • Like 1
  • Thanks 1

___________________________________________________________________________

SIMPLE SCENERY SAVING * SIMPLE GROUP SAVING * SIMPLE STATIC SAVING *

Posted (edited)

I would still hold the ROE/detection combo as a bug as it prevents units from detecting  newly spawned(!) units and thus being used as Jtacs. At the same time the same tank does detect units which were placed in the ME despite it’s ROE!

Edited by Apple
  • Like 3
Posted

Track of Killing trucks in CA - still reported as detected in the logs


 

2024-06-10 17:04:37.428 INFO    DXGUI_WIN_ADAPTER (Main): resize main window to [2560, 1440]
2024-06-10 17:04:46.490 INFO    SCRIPTING (Main): Detected: Unit #002
2024-06-10 17:04:46.490 INFO    SCRIPTING (Main): Detected: Unit #001
2024-06-10 17:04:46.490 INFO    SCRIPTING (Main): Detected: Unit #1
2024-06-10 17:04:56.491 INFO    SCRIPTING (Main): Detected: Unit #002
2024-06-10 17:04:56.491 INFO    SCRIPTING (Main): Detected: Unit #001
2024-06-10 17:04:56.491 INFO    SCRIPTING (Main): Detected: Unit #1
2024-06-10 17:05:06.494 INFO    SCRIPTING (Main): Detected: Unit #002
2024-06-10 17:05:06.494 INFO    SCRIPTING (Main): Detected: Unit #001
2024-06-10 17:05:06.494 INFO    SCRIPTING (Main): Detected: Unit #1
2024-06-10 17:05:07.388 INFO    DXGUI_WIN_ADAPTER (Main): resize main window to [0, 0]
2024-06-10 17:05:14.481 INFO    DXGUI_WIN_ADAPTER (Main): resize main window to [2560, 1440]
2024-06-10 17:05:15.800 INFO    DXGUI_WIN_ADAPTER (Main): resize main window to [0, 0]

Trucks dead but still reported:
2024-06-10 17:05:16.487 INFO    SCRIPTING (Main): Detected: Unit #002
2024-06-10 17:05:16.487 INFO    SCRIPTING (Main): Detected: Unit #001
2024-06-10 17:05:16.487 INFO    SCRIPTING (Main): Detected: Unit #1

 

Ground detect Ground Demo.trk

  • Like 1
Posted

+1 for solving the issues by ED

  • Like 1

SYSTEM: Mainboard MSI MEG X570 | CPU Ryzen 7 5800X @ 4.5 GHz | RAM 64 GB @ 3200 MHz | GPU GIGABYTE RTX 4090 | 1 TB SSD | Win 10 x64

DEVICES: ASUS 27" LCD | TrackIR 5 | LukeClip | Quest 3 | PointCTRL | Virpil HOTAS | MFG Crosswind | TableMount MonsterTech

MODULES: To much to list. But I stopped buying more, because of too much bugs in e.g. A-10C(II). @ED: Fix the bugs and I spend money on modules again. Promised.

PROJECTS: OpenFlightSchool: DE / EN

Posted (edited)

Thanks for the report, Ive changed the original to remove the other units and planes and radars and checked the track on other DCS versions to produce a report which ive submitted.

Just for your information, the issue is slightly different with the "forgetting" Actually they do forget...eventually, long after they are dead though. Reminds me of a certain bug with the tank dead event that was never coming when the tank went bang and the unit changes from unit to static. Seems like somehow the delay in forgetting is whilst they are a unit. Im curious to see what other types do but Ive run out of time for today.


 

Edited by Pikey
corrections
  • Like 2
  • Thanks 1

___________________________________________________________________________

SIMPLE SCENERY SAVING * SIMPLE GROUP SAVING * SIMPLE STATIC SAVING *

Posted

+1

4 hours ago, kaltokri said:

+1 for solving the issues by ED

 

AMD 9800X3D CPU @ 5.1GHz, Win11 Pro 64bit, Gigabyte X870E AORUS MASTER Mobo, G.Skill Trident Z5 Neo RGB 64GB 600Mhz Ram, 1 x Samsung 990EVO 2Tb .m2 (DCS), 1 x ADATA SX8200 Pro 1Tb Drive (OS), 1 x RTX 2080Ti AORUS Waterforce 11Gb, 3 x 27" ACER Predator 2560x1440px, 27" LG 2560x1440px, HP Reverb G2, TrackIR5, HOTAS Warthog Throttle and Stick, Thrustmaster TPR, 3 x HOTAS Cougar MFCDs, Elgato Streamdeck, Streamdeck XL & Streamdeck+

  • 3 weeks later...
Posted

Hi @Appleit was reported internally, i.e. it made its way from here, to my internal report and someone dilligent took it and off it went into the great unknown 🙂. Its a pretty busy time right now, I hope I can add a bump when things calm down. I wouldn't expect anything this month, but stranger things have happened. Sometimes things sneak into patch releases and we dont know until later, sometimes we wait 3-6 months, sometimes a lot more. If you ever get examples where you can demonstrate how it affects many people, that might be useful to add, otherwise we've given it out best wishes and sent it off 🙂

  • Thanks 1

___________________________________________________________________________

SIMPLE SCENERY SAVING * SIMPLE GROUP SAVING * SIMPLE STATIC SAVING *

Posted (edited)

@Pikey I reckon ED team is receiving a lot of issues reports from most of us, however ED team have to reckon the reporting source. In this case is Applevangelist which at the moment is one of the best in understanding low level scripting and behavior in DCS, not mentioning he is the main lead of MOOSE framework. In these cases where reporting sources are well known subject matter experts, you might need to add this in your report and prioritize accordingly. 

Please work with the team and get this type of reporting on a dedicated resolution process.

@BIGNEWY @NineLine

Thank you!

Edited by Abburo

Romanian Community for DCS World

HW Specs: AMD 7900X, 64GB RAM, RTX 4090, HOTAS Virpil, MFG, CLS-E, custom

Posted
6 hours ago, Abburo said:

@Pikey I reckon ED team is receiving a lot of issues reports from most of us, however ED team have to reckon the reporting source. In this case is Applevangelist which at the moment is one of the best in understanding low level scripting and behavior in DCS, not mentioning he is the main lead of MOOSE framework. In these cases where reporting sources are well known subject matter experts, you might need to add this in your report and prioritize accordingly. 

Please work with the team and get this type of reporting on a dedicated resolution process.

@BIGNEWY @NineLine

Thank you!

I get where you're coming from, but a bug is a bug no matter who reports it and I'm pretty sure priority is assigned based on the importance of the bug (you may disagree with where ED places it in importance).  A bug reported by a well known modder may well have much lower priority than something reported by a 1st time poster because it only effects a small number of people (and I get that it may be a super critical bug to that subset of users) or a fix is more complex that you realize and there isn't enough dev time to dedicate to it for example.  Bug reports from people "in the know" likely naturally get more attention already because they probably contain the information required and explain the problem better.

Posted (edited)

Thanks @Flappie  I just tested that with a Humvee, and indeed, now indeed the detection state isn't dependent any longer on the ROE state. Instead, it is now dependent on the **alert state** -in GREEN state you get nada, in RED or AUTO state it works. So, problem moved but not resolved. @Pikey

 

 

Edited by Apple
Posted

I have the same reporting process as here, just in a place which has more focus, I've asked for everything I can get, I've given sweat blood, tears and I speak to the entire community and remember, when Apple joined the MOOSE team I was there, and have been since Sven and us all were in Slack over 8 years ago.  ANd im doing more I cant say, I dont know how to reassure you, I think it may be at a limit of what the community could possibly do.

On 7/7/2024 at 7:49 AM, Abburo said:

@Pikey I reckon ED team is receiving a lot of issues reports from most of us, however ED team have to reckon the reporting source. In this case is Applevangelist which at the moment is one of the best in understanding low level scripting and behavior in DCS, not mentioning he is the main lead of MOOSE framework. In these cases where reporting sources are well known subject matter experts, you might need to add this in your report and prioritize accordingly. 

Please work with the team and get this type of reporting on a dedicated resolution process.

@BIGNEWY @NineLine

Thank you!

 

and im still here.

  • Like 2
  • Thanks 1

___________________________________________________________________________

SIMPLE SCENERY SAVING * SIMPLE GROUP SAVING * SIMPLE STATIC SAVING *

Posted
9 minutes ago, Pikey said:

I have the same reporting process as here, just in a place which has more focus, I've asked for everything I can get, I've given sweat blood, tears and I speak to the entire community and remember, when Apple joined the MOOSE team I was there, and have been since Sven and us all were in Slack over 8 years ago.  ANd im doing more I cant say, I dont know how to reassure you, I think it may be at a limit of what the community could possibly do.

and im still here.

Thank you, really appreciate your efforts !

  • Like 1

Romanian Community for DCS World

HW Specs: AMD 7900X, 64GB RAM, RTX 4090, HOTAS Virpil, MFG, CLS-E, custom

  • Recently Browsing   0 members

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