Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AG Kills... #12

Open
ghost opened this issue May 6, 2020 · 8 comments
Open

AG Kills... #12

ghost opened this issue May 6, 2020 · 8 comments

Comments

@ghost
Copy link

ghost commented May 6, 2020

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.

@mahaupt mahaupt self-assigned this May 7, 2020
@mahaupt mahaupt removed their assignment May 7, 2020
@ghost
Copy link
Author

ghost commented May 9, 2020

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
Copy link
Owner

mahaupt commented Nov 22, 2020

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.

@mahaupt
Copy link
Owner

mahaupt commented Nov 22, 2020

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
Copy link

Yzamu commented May 1, 2021

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
Copy link
Owner

mahaupt commented May 1, 2021

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
Copy link

Yzamu commented May 1, 2021

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
Copy link
Author

ghost commented Jun 22, 2021

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
Copy link

vanois commented Nov 30, 2021

Are there any chances to finish it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants