0xinfinite Posted June 4, 2024 Posted June 4, 2024 1. I placed single SA-10 site on template and client-side F-16C. F-16C's steerpoint 1 placed on SA-10 site so I can recognize its position. 2. Single Script activated with repetitive action and here's code. trigger.action.outText("Checking Targets..", 1, false) local sam = Unit.getByName('SA-10 SAM-2') local ctrl = sam:getController() local tgts = ctrl:getDetectedTargets(4) for i, target in pairs(tgts) do local detected , visible , lastTime , type , distance , lastPos , lastVel = ctrl:isTargetDetected(target.object,4) trigger.action.outText("isTargetDetected() return these : "..tostring(detected).."/"..tostring(visible).."/"..tostring(lastTime).."/"..tostring(type).."/"..tostring(distance).."/"..tostring(lastPos).."/"..tostring(lastVel), 1, false) trigger.action.outText("Detected Target from getDetectedTargets() : "..target.object:getName().." is visible : ".. tostring(target.visible), 1, false) local samPos = sam:getPosition().p samPos = {x = samPos.x, y = samPos.y+1, z = samPos.z} trigger.action.outText("is LOS : ".. tostring(land.isVisible(samPos, target.object:getPosition().p)), 1, false) end 3. Enter a mission, Climb until spotted by the SA-10 and hide behind the ridge. Then you can see that isTargetDetected() still returns visible as true. Even if there are obstacles in line of sight. also, distance, lastPos and lastVel still returns nil value after hide on ridge. It tested on version 2.9.5.55300 detect_test.miz dcs.log
Gracey Posted June 6, 2024 Posted June 6, 2024 (edited) Here we go @Flappie I tested this and I have found that a EWR unit, like a Search Radar or Literal EWR does loose tracking on the Air Unit. However I put in just a Tracking radar on my last run, and it seems that it is the Tracking radars that are not loosing the Detection. One test is done with a Mosquito just in case and doesn't seem to matter. VIDEO Everything remained the same, I just changed the Unit name to "SAM" to make it a little easier for me. Then I replaced the whole setup with other units. Think I should test this with SHIPS and more I guess and really see what is going on. While I was waiting for upload, it seems that the SA-15 "TOR" works correctly. I am going to look through some more units on this see what ones are actually broken and which are not. SHORAD(RADAR) SA-15 "TOR" correct SA-19 "Tunguska" correct SA-8 "OSA" correct TRACKING RADAR FireCan SON-9 correct SA-10 S-300 "Grumble" Flap Lid-A TR incorrect SAM SA-10 S-300 "Grumble" Flap Lid-B TR incorrect SAM SA-3 S-125 "Low Blow" TR correct SAM SA-2 S-75 RD-75 Amazonka RF incorrect SAM SA-2 S-75 "Fan Song" TR incorrect With this little bit of Information, it seems it is not as easy as "one type" of Radar being broken. I did try one of the Russian ships, "Moskva" with seems to be correct Edited June 6, 2024 by Gracey Added more stuff 1 2 Gracey's Village Always be yourself ~ Unless your can be a Unicorn, then be a Unicorn
0xinfinite Posted June 6, 2024 Author Posted June 6, 2024 27 minutes ago, Gracey said: Here we go @Flappie I tested this and I have found that a EWR unit, like a Search Radar or Literal EWR does loose tracking on the Air Unit. However I put in just a Tracking radar on my last run, and it seems that it is the Tracking radars that are not loosing the Detection. One test is done with a Mosquito just in case and doesn't seem to matter. VIDEO Everything remained the same, I just changed the Unit name to "SAM" to make it a little easier for me. Then I replaced the whole setup with other units. Think I should test this with SHIPS and more I guess and really see what is going on. While I was waiting for upload, it seems that the SA-15 "TOR" works correctly. I am going to look through some more units on this see what ones are actually broken and which are not. SHORAD(RADAR) SA-15 "TOR" correct SA-19 "Tunguska" correct SA-8 "OSA" correct TRACKING RADAR FireCan SON-9 correct SA-10 S-300 "Grumble" Flap Lid-A TR incorrect I get it now. If I deploy SA-10 with a single SR like Big Bird without any units in the group, getDetectedTargets() works well. However, if the SA-10 is deployed with the full package(include command unit, launcher, TR) to perform an air defense, getDetectedTargets() will not be reset its list until the detected unit is killed. Now I can proceed my work, but It feels weird(why would a fully functional SAM be esper?!) and I think it needs to be fixed.
Gracey Posted June 6, 2024 Posted June 6, 2024 Yeah, I am not sure why this is broken, and they DID fix some of them in a patch a alittle while ago. My project can continue now that the EWRs are fixed at least. 1 Gracey's Village Always be yourself ~ Unless your can be a Unicorn, then be a Unicorn
Solution Gracey Posted June 6, 2024 Solution Posted June 6, 2024 (edited) I have completed some more testing regarding this topic. My methods are maybe not the most elegant, however I think we have just enough information now. I can go deeper into this, but not this weekend. Please also keep in mind, this is done with a Ruby script on another machine ~ So, you won't have the same script we used, and it will more than likely be completely useless to you. We wrote a small script in Ruby to pull the information from DCS we need, output it to a CSV file, and also to the log. This way we can see the Info in the log as well, so that we can watch the track and compare. Yes I know I could have done this in DCS itself, but honestly the environment is just not great. I prefer to write outside DCS and gather the information in a less heavy way for the Engine. Seems counterintuitive, but it works better this way. The Line of sight script wasn't working, so... That sucks. I'll see if I can get a even better script to gather a format the information better later on. I also set all the units including myself to Immortal, cause they kept dying from FF lol I set up basically all the radar units, and the ones that are AAA(Tracked), SAM sites even the man pads...Minus the Russian one. I forgot. Once I did this, I took a Kiowa(easy to fly) and proceeded to the targets. I flew all the way to them from initially being completely hidden. This is key because we want them to not see me initially, and if they did, this would break the results. Once I got close enough for even the optical trackers to see me, I then hid in some terrain. Since the point of this is to see if they will drop the Detection, a hole in the ground thanks to the US Department of Energy will be just fine We left the script running for a period of time to make sure that it was not time based for the drop, and then exported the results. Quite a few of the Radars can see me Optically, which is interesting. The BUK is a good example, he is all alone just as a launcher, and he can see me with Radar and his eyeballs. Yet the HQ-7 just doesn't seem to have eyeballs. Anyways, back to the data.... UNIT NAME DETECTION TYPE CORRECT OR NOT 1L13 EWR Radar (4) YES 1L13 EWR Optical (2) YES 55G6 EWR Radar (4) YES 55G6 EWR Optical (2) YES FPS-117 ECS Radar (4) YES FPS-117 ECS Optical (2) YES FuMG-401 Radar (4) YES FuMG-401 Optical (2) YES FuSe-65 Radar (4) YES FuSe-65 Optical (2) YES Soldier stinger Radar (4) YES Soldier stinger Optical (2) YES KDO_Mod40 Radar (4) YES KDO_Mod40 Optical (2) YES rapier_fsa_optical_tracker_unit Radar (4) YES rapier_fsa_optical_tracker_unit Optical (2) YES HQ-7_LN_P Radar (4) YES HQ-7_LN_P Optical (2) YES HQ-7_LN_SP Radar (4) YES HQ-7_LN_SP Optical (2) YES M1097 Avenger Radar (4) YES M1097 Avenger Optical (2) YES M48 Chaparral Radar (4) YES M48 Chaparral Optical (2) YES M6 Linebacker Radar (4) YES M6 Linebacker Optical (2) YES rapier_fsa_launcher Radar (4) NO rapier_fsa_launcher Optical (2) YES Roland ADS Radar (4) YES Roland ADS Optical (2) YES Strela-10M3 Radar (4) YES Strela-10M3 Optical (2) YES Tor 9A331 Radar (4) YES Tor 9A331 Optical (2) YES 2S6 Tunguska Radar (4) YES 2S6 Tunguska Optical (2) YES Osa 9A33 ln Radar (4) YES Osa 9A33 ln Optical (2) YES Strela-1 9P31 Radar (4) YES Strela-1 9P31 Optical (2) YES Hawk cwar Radar (4) YES Hawk cwar Optical (2) YES Patriot str Radar (4) NO Patriot str Optical (2) YES Roland Radar Radar (4) YES Roland Radar Optical (2) YES RPC_5N62V Radar (4) NO RPC_5N62V Optical (2) YES Kub 1S91 str Radar (4) YES Kub 1S91 str Optical (2) YES SA-11 Buk LN 9A310M1 Radar (4) NO SA-11 Buk LN 9A310M1 Optical (2) NO HQ-7_STR_SP Radar (4) YES HQ-7_STR_SP Optical (2) YES Hawk sr Radar (4) YES Hawk sr Optical (2) YES Dog Ear radar Radar (4) YES Dog Ear radar Optical (2) YES NASAMS_Radar_MPQ64F1 Radar (4) YES NASAMS_Radar_MPQ64F1 Optical (2) YES S-300PS 64H6E sr Radar (4) YES S-300PS 64H6E sr Optical (2) YES S-300PS 40B6MD sr Radar (4) YES S-300PS 40B6MD sr Optical (2) YES S-300PS 40B6MD sr_19J6 Radar (4) YES S-300PS 40B6MD sr_19J6 Optical (2) YES SA-11 Buk SR 9S18M1 Radar (4) YES SA-11 Buk SR 9S18M1 Optical (2) YES p-19 s-125 sr Radar (4) YES p-19 s-125 sr Optical (2) YES RLS_19J6 Radar (4) YES RLS_19J6 Optical (2) YES SON_9 Radar (4) YES SON_9 Optical (2) YES Hawk tr Radar (4) NO Hawk tr Optical (2) YES rapier_fsa_blindfire_radar Radar (4) NO rapier_fsa_blindfire_radar Optical (2) YES S-300PS 40B6M tr Radar (4) NO S-300PS 40B6M tr Optical (2) YES S-300PS 5H63C 30H6_tr Radar (4) NO S-300PS 5H63C 30H6_tr Optical (2) YES SNR_75V Radar (4) NO SNR_75V Optical (2) YES RD_75 Radar (4) NO RD_75 Optical (2) YES snr s-125 tr Radar (4) YES snr s-125 tr Optical (2) YES HEMTT_C-RAM_Phalanx Radar (4) YES HEMTT_C-RAM_Phalanx Optical (2) YES Gepard Radar (4) YES Gepard Optical (2) YES Vulcan Radar (4) YES Vulcan Optical (2) YES ZSU-23-4 Shilka Radar (4) YES ZSU-23-4 Shilka Optical (2) YES Soooo.... From what I am seeing, at least as individual units rather than sites, most of them are indeed working. I can mask correctly with terrain. Sadly though, not with buildings I did try that too... I've attached the track file and my log. With the track file you can at least watch what I do, and the log compare. Again, I can and probably will do this a bit better later on. Good luck, dcs.log Detections2.xlsx Detect_Test_Nevada.trk Nevada-Test-Detection.miz Edited June 6, 2024 by Gracey Added miz 4 Gracey's Village Always be yourself ~ Unless your can be a Unicorn, then be a Unicorn
Recommended Posts