Jump to content
Sign in to follow this  
wasicun

How to make an After battle report?

Recommended Posts

Hi all guys!

i am editing a big pvp multiplayer campaign, where there are a lot of units:

what i am asking you today is how to make an "after battle report":

i mean: at the start of the big battle there are for example 1000 riflemen, 100 NCOs and 30 officers, 20 APCs and 100 trucks for the WEST SIDE, and 2000 riflemen, 200 ncos and 60 officers, 40 apcs and 200 trucks for the EAST SIDE: what i want is that after the big multiplayer battle, i have a report of what have been destroyed and what survived (for example: WEST SIDE lost 200 riflemen, 15 NCOs and 2 officers, and 10 APCs, and EAST SIDE lost 300 riflemen, 20 NCOs and 5 officers and 15 APCs). Is it possible?

Please help me guys...

greetings

Share this post


Link to post
Share on other sites

Lol, you can't have 3000 units and 500 vehicles. At least not on a playable map. Further, you can't have more than 144 GROUPS per side/faction.

The most important thing with such an amount of units would be (in init.sqs or in a trigger with condition "true"):

enableSentences false;

Otherwise every player would receive 100 messages per second ("reloading", "enemy on 11 o'clock", "wounded", "we have lost x", "where are you?","x move to").

Doesn't the default debriefing screen list up all losses and kills anyway?

Edit: Code removed. Confusing due to being incomplete and not being practical in this situation.

Edited by RogueTrooper

Share this post


Link to post
Share on other sites
Lol, you can't have 3000 units and 500 vehicles. At least not on a playable map. Further, you can't have more than 144 GROUPS per side/faction.

The most important thing with such an amount of units would be (in init.sqs or in a trigger with condition "true"):

enableSentences false;

Otherwise every player would receive 100 messages per second ("reloading", "enemy on 11 o'clock", "wounded", "we have lost x", "where are you?","x move to").

Doesn't the default debriefing screen list up all losses and kills anyway?

Edit: Code removed. Confusing due to being incomplete and not being practical in this situation.

Thank you.

I am interested in do that with less units too (for example 100 vs 100), i want a after battle report (es: red side has 25 casualties and 3 trucks lost, blu side 15 casualties and 1 apc destroyed). is it possible?

Share this post


Link to post
Share on other sites

This is very much possible.

Take a look at bStats which will determine scores etc far better than the game itself does, and crucially for your purpose, it will forward that information to a database outside the game. As opposed to those relying on JayArma2Lib, this works even for linux servers.

Extending it, or making a similar script for the purpose you're wanting, shouldn't be a problem.

The basic process goes:

Detecting the kill/destruction, making sure the server has the desired parameters, and writing it to a file with diag_log - where a program can read it and optionally update a database.

Edited by MaHuJa_

Share this post


Link to post
Share on other sites

You should look into how to create and modify the value of global variables and addEventHandler "Killed".

Once you look into both of those subjects, it should be fairly easy on how you should approach this.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×