mahaupt / DCSServerStats

Flight statistics and live radar map for DCS Servers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AG Kills...

opened this issue · comments

Hi, I don't control much PHP, but would it be possible to add a new column with the kill AGs to the pilot view? Thank you very much.

Hello again, I hope I'm not disturbing you, I just detected that the weaponry released by "jettison" counts as fired... I'll keep investigating in case I see the trigger and prevent you from adding it in the SQL

Alright, in order to distinguish between AA and AG hits and kills, we need to do the following:

  • change .hits and .kills columns to .hits_aa and .kills_aa, add .hits_ag and .kills_ag
  • Update PHP to the new column names
  • if dcs_events.TargetGroupCat is HELICOPTER or AIRCRAFT, its and AA hit. If its GROUND or SHIP, its AG
  • check for any bugs

Unfortunately, I switched to Ubuntu a long time ago and haven't tried running DCS, yet.

Hello again, I hope I'm not disturbing you, I just detected that the weaponry released by "jettison" counts as fired... I'll keep investigating in case I see the trigger and prevent you from adding it in the SQL

This can not be fixed afaik. DCS just publishes the event S_EVENT_SHOT regardless of whether the Pilot shot or jettisoned the weapon.

commented

Hello cbacon93
First of all I would like to thank you for your work, it's really great work.
I'd also like to have the stats on the ground but I don't see or change the data to see it. In which files they need to be changed
Please can you give us more details ?
Thank you very much.

Hi, all ingame events will be captured from the lua scripts, then will be sent to the php scripts. Inside the php scripts, there are functions to process the raw event data and to turn them into statistics. Of course you are limited by the type and amount of events you receive.
If you like to add more statistics, you need to check the dcs_events table, think about how you would calculate those statistics from the events. Then, you can add your custom functionality into the cron_functions.inc.php

commented

Thank you for answering so quickly. I'm going to try to do what you just said :)
I admit to being slightly lost with all the codes

Hello, thank you very much for your reply. I understand what to do to generate both AA and AG impacts, but when it comes to put them in the PHP, I am left big.... if someone can help me, I would appreciate it (I am very limited).

Are there any chances to finish it?