mahaupt / DCSServerStats

Flight statistics and live radar map for DCS Servers
Apache License 2.0
8 stars 6 forks source link

AG Kills... #12

Open ghost opened 4 years ago

ghost commented 4 years ago

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.

ghost commented 4 years ago

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

mahaupt commented 3 years ago

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

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

mahaupt commented 3 years ago

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.

Yzamu commented 3 years ago

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.

mahaupt commented 3 years ago

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

Yzamu commented 3 years ago

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

ghost commented 3 years ago

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).

vanois commented 2 years ago

Are there any chances to finish it?