Jump to content

IL-2 Stats Mod: Enhancements


=FEW=Revolves
 Share

Recommended Posts

=FEW=Revolves

============================================

IL-2 Stats Mod: Enhancements

============================================

Authors: =FEW=Revolves and Enigma89


This is a mod for IL2 Stats, which adds and changes minor things to the IL2 stats websites. The mod is separated into modules, which can be turned on and off so you can customize which of the features of the mod you wish to use on your IL2 stats website. Descriptions of the modules follow.

 

This version of the mod is compatible with version 1.2.54 of IL2 stats.

 

Modules which add new information
 

Spoiler

Module Split Rankings

Spoiler

Config name: split_rankings

 

Check out the module live on the Finnish stats server!


This module's main goal is to visualize who is the best fighter, attacker, and bomber pilot/squad. To that aim, it introduces rankings for fighter, attacker and bomber planes, similar to how pilots and squads are already ranked in the original version of IL2 stats. New fields include, for example, "Top fighter pilot in the last 24 hours" and "Best bomber streak".

 

The wonderful IL2 Stats website has been created by =FB=Vaal and =FB=Isaay. We thank =FB=Vaal and =FB=Isaay for helping us create this mod. We also thank X51 Vaudoo, botya, SamVimes, and HAWKERMKIII for their help translating this module. We also thank RaptorAttacker for his graphic work for helping us make the icons.

 

 

 

 

Module Ammo Breakdown

Spoiler

Config name: ammo_breakdown

 

This module modifies the sortie views to show how many and which bullets you've taken in that sortie. E.g. you can now see you've taken 30 hits in an IL-2 that one sortie, 20 of w hich were MG 17, and another 10 MG 151/20 hits. Also it shows a detailed list of which bullets you've hit. E.g.:

 

ammo_breakdown_sortie_promo.thumb.png.e2a25a0c2c9eff48ef4800502944ef1c.png

 

 

If you additionally have the Global Aircraft Stats mod, then you will also be able to see Average Ammo To kill/Average ammo to death statistics. The following shows an example, with the plane in question being a FW 190 A3:

 

ammo_breakdown_aircraft_fw190a3_promo.thumb.png.b9726a45eb2a5d61e18cb068ca571b2b.png

 

So, for example, it takes 3.35 shots of MG 151/20 (AP), 7 shots of MG 151/20 (HE), and 14.37 shots of MG 17(AP), combined, to down a single aircraft as a FW 190 A3, on average.

 

 

Thanks to PR9INICHEK, HawkerMkIII and =FEW=Hauggy for translating this module into Russian, Spanish, and French respectively.


DISCLAIMER: This module is not retroactive, and will likely never be. It only gives you ammo breakdowns of new sorties. This also applies to the Global Aircraft Stats mod, the average offensive/defensive breakdowns of ammo can only be computed on new sorties.

 

Module Ironman Stats

Spoiler

Config name: ironman_stats

 

This module adds a new table "Ironman Rankings" to IL2 stats, which is similar to the Pilot Rankings. The difference is that the stats in this page get reset as soon as your pilot dies. This is essentially an overview of all the current virtual lives. For past tours, the table instead shows the best streak of each pilot.

 

Thanks to PR9INICHEK, HawkerMkIII and =FEW=Hauggy for translating this module into Russian, Spanish, and French respectively.

 

 

 

Module Top Last Mission

Spoiler

Config name: top_last_mission

 

This module replaces "Top players in last 24 hours" with "Top players in last mission" on the main page. Works with split rankings. This is mainly meant for event servers which do not run 24/7.

 

image.png.701e8f2badb161d1766c31f8d62fa7d5.png


Thanks to HawkerMkIII, PR9INICHEK, JorgeHFJ, and =FEW=Hauggy, Arkanno, JorgeHFJ and GhostDragon for providing translations!

top_last_mission

 

 

Modules which change scoring of sorties.


 

Spoiler

Module Adjustable Bonuses and Penalties.

Spoiler

Config name: adjustable_bonuses_penalties

 

This module gives you more control over the basic modifiers which affect a sortie's score. In the base version of IL2 Stats, you receive a 25% bonus for landing your plane, and a 25% bonus for being on the winning side of a mission. These are not adjustable in the base version, and there are no penalties for dying/getting captured/bailing out/getting shotdown. This module adds in the missing penalties/bonuses, and makes them customizable as you desire!

 

The default values for penalties/bonuses here are the same as used on combat box.

 

 

adjustable_promo.thumb.png.06d516de0ef5964b17cc5c1d1e94a933.png

 

Thanks to PR9INICHEK, HawkerMkIII and =FEW=Hauggy for translating this module into Russian, Spanish, and French respectively.

 

Module Flight Time Bonus

Spoiler

Config name: flight_time_bonus

 

This module adds bonus points to sorties depending on how long the player stayed in the air. By default, 1 minute results in 1 bonus point. The point of this scoring change is to encourge people to run CAP over areas which do not see much action, as sometimes you may have sorties where there simply is no action.

 

flight_time_bonus_promo.thumb.png.3841816adfc143bb1a3c2ff4d8b31401.png

 

Thanks to PR9INICHEK, HawkerMkIII and =FEW=Hauggy for translating this module into Russian, Spanish, and French respectively.

 

Module Undamaged Bailout Penalty

Spoiler

Config name: undamaged_bailout_penalty

 

This module adds a penalty to sorties where the player bailed out of their aircraft without having any damage taken. By default, the player loses (up to, score can't be negative) 100 points and 20 fairplay points if he bails out of an undamaged plane with this module enabled. The idea here is to encourge people to fight, instead of bailing out at the first sign of trouble to deny a kill or in order to preserve your kill streak. If you take any damage before bailout, then this does not apply.

 

undamaged_bailout_penalty.thumb.png.07a57d26f882131301475b887dac7abd.png

 

 

Thanks to PR9INICHEK, HawkerMkIII and =FEW=Hauggy for translating this module into Russian, Spanish, and French respectively.

 

 

Module Mission Win New Tour

Spoiler

Config name: mission_win_new_tour

 

This module makes IL2 stats start a new tour every time a mission is won. This is primarily meant for servers which have few mission wins, where a win is for example the result of a long dynamic campaign spanning several days or even weeks.

 

 

 

Bug Workaround Modules

Spoiler

Module Rearm Accuracy Workaround
 

Spoiler

 

Config name: rearm_accuracy_workaround

 

There is a bug in the IL-2 server logs which results in the number of bullets you shot to be reset whenever you rearm your plane without ending the sortie. Unfortunately there is no way to extract how many bullets you shot before the rearm. This leads to sorties where a player can somehow hit more bullets than you shot, for example:

 

qo2YDH9.png

 

The concern here is that while we can't fix the data, we can prevent this data from counting towards player accuracy. The base version of IL-2 stats currently does not count sorties where the number of hits exceeded the number of shots towards accuracy. This module provides yet another work around - if a player takes off twice, then that sortie is also not counted towards gunner accuracy. Currently, there is no way to detect a rearm event. Since you need to land to rearm, any sortie where you rearm has at least two takeoffs, and this module thus prevents those sorties from being counted towards accuracy.


DISCLAIMER: This module is not retroactive, and will likely never be.

 

 

Module Bailout Accuracy

Spoiler

Config name: bailout_accuracy_workaround

 

There is a bug in the IL-2 server logs where the number of remaining bullets you have in your plane is counted as 0 when you bailout, this essentially means the logs think that you shoot out your entire arsenal when you bail out. This means you end up with sorties with very low gunnery accuracy, since you did not actually shot that many bullets. This module prevents bailout sorties from counting towards a pilot's accuracy.

 

An example of this kind of sortie:

 

ZgpY6un.png

 

DISCLAIMER: This module is not retroactive, and will likely never be.

 

 

 

--------------------------------------------------------

 

We hope all of you enjoy this change to the stats system and look forward to any server admins that add this mod to their communities. 

 

Thank you!

 

-------------------------------------------------------------------------

This mod is currently compatible with version 1.2.51 of IL2 stats.

 

Old versions of this mod can be found on its Github page: https://github.com/FGlazov/IL2Stats_Enhancements/releases

 

 

 

 

 

 

 

IL2Stats_Enhancements-2.3.0.zip

Edited by =FEW=Revolves
  • Like 4
  • Thanks 1
  • Upvote 6
Link to comment
Share on other sites

Woot woot!

 

Hope the community enjoys! Thanks for everyone who helped us.

Edited by Enigma89
  • Like 2
  • Upvote 1
Link to comment
Share on other sites

  • 2 weeks later...
ITAF_LG965

 

Hi, a small bug appears in your mod.

"Best live fighter pilots" block is not aligned,
how can i solve?

Look at the image below.

 

ThankYou!

 

split.thumb.jpg.abb2e97ef226c015b53b286da839884a.jpg

  • Like 1
Link to comment
Share on other sites

=FEW=Revolves
Posted (edited)
11 hours ago, ITAF_LG965 said:

 

Hi, a small bug appears in your mod.

"Best live fighter pilots" block is not aligned,
how can i solve?

Look at the image below.

 

ThankYou!

 

split.thumb.jpg.abb2e97ef226c015b53b286da839884a.jpg

 

Hey LG965, thanks for the bug report.

 

I'm aware of this issue (since like a week or so) - it happens when the new fields are not completely full, and it also happens in certain languages (German and Russian) regardless of how full the fields are.  I.e. when there are less than 10 living fighter/attacker/bomber pilots and less than 10 fighter/attacker/bomber pilots in the last 24 hours. You can check Finnish for how it looks when its working: http://stats.virtualpilots.fi:8000/en/

 

I am releasing an update to the mod with a bug fix for exactly this issue in an hour or two.

--------------------------------------------------------------------------------------------------

 

Ok, just released version 1.1.0.

 

If you already have an earlier version installed, just copy over the src folder in the new zip into your il2_stats folder. No need to run any update scripts.

 

It has the following two changes:

 

- Fixed formatting on main page when new fields are not full and in certain langauges, see above.

- If a player/squad has 0 Fighter/Bomber/Attacker rating, instead of a meaningless number a "-" is displayed as their position in fighter/attacker/bomber ratings.

Edited by =FEW=Revolves
Link to comment
Share on other sites

  • =FEW=Revolves changed the title to IL-2 Stats Mod: Enchancements
=FEW=Revolves
Posted (edited)

Massive update to this mod, version 2.0.0. I've changed it from just "Split Rankings" to enhancements, and introduced the modules system, which lets you turn on and off various enchancments to the IL2 stats website I provide.

 

This is technically speaking a breaking change, if you want the mod to work as before (with a couple new changes for split rankings), then you need only add "modules=split_ranking" into your stats config.

 

An example config is (you can remove modules you don't want):

 

mods = mod_rating_by_type
modules = split_rankings, ammo_breakdown, ironman_stats

 

But please consider (at least) adding the ammo breakdown module, I think it's not intrusive in my opinion and provides lots of cool new info :).

 

Full change log here:

 

- Introduction of modules system. SplitRankings turned into a module.
- Module SplitRankings: Add fighter/atttacker/bomber rankings to VLife page.
- Module SplitRankings: Jabo sorties (e.g. a jabo FW-190) now contribute to attacker rating. Me-262 and P-38 sorties without bombs contribute to fighter ratings (they both used to be considered attackers).
- New module: Ammo Breakdown. See which shots you hit, and which shots you got hit by in indivual sortie pages.
- New module: Ironman Stats. A new table which shows you how your current pilot life stacks up against all other current pilot lives. Your stats on this page reset when your pilot dies!
- Display more information on VLife page. E.g. your kills/per aircraft lost.
- Update to version 1.2.49 of IL-2 Stats.

 

Edited by =FEW=Revolves
  • Upvote 1
Link to comment
Share on other sites

  • =FEW=Revolves changed the title to IL-2 Stats Mod: Enhancements
HawkerMkIII_
On 2/28/2021 at 2:31 PM, =FEW=Revolves said:

and an unnamed Spanish speaking volunteer (They never let us know who they were!)

 

 

 

That's me! Razor! aka HawkerMkIII 

 

It was a pleasure working with you :).

Link to comment
Share on other sites

=FEW=Revolves
3 hours ago, -332FG-Razor_ said:

That's me! Razor! aka HawkerMkIII 

 

It was a pleasure working with you :).

Ah okay! Sorry for the false crediting, I've edited you in there,

 didn't realize it was you during the first round of translations :)

 

Many thanks again 

 

 

 

  • Haha 1
Link to comment
Share on other sites

HawkerMkIII_

It's fine, lol

Edited by -332FG-Razor_
  • Upvote 1
Link to comment
Share on other sites

ITAF_LG965

Hi revolves, it work!

Edited by ITAF_LG965
  • Upvote 1
Link to comment
Share on other sites

=FEW=Revolves
Posted (edited)

Ah sorry, it should (for example) look like this:

 

mods = mod_rating_by_type
modules = split_rankings, ammo_breakdown, ironman_stats

 

I've just published a couple non-critical bug fixes, you might want to copy over version 2.0.2 :)

Edited by =FEW=Revolves
Link to comment
Share on other sites

=FEW=Revolves
Posted (edited)

Ok I found another non-critical bug in version 2.0.3:

 

Jabo flights were being counted towards attacker score, except for the "Best fighter pilots in last 24 hours", where jabo flights were still counted as fighter flights. Update 2.0.3 fixes this behaviour, and considers jabo flights as attacker flights for the "XXX 24 hours" fields.


Note this behavior is only fixed for Sorties after applying this update.

 

To update: You need to run update.cmd after pasting over the src/

Edited by =FEW=Revolves
Link to comment
Share on other sites

=FEW=Revolves
Posted (edited)

Version 2.1.0 - a small feature update which gives you guys more options to play around with penalties/bonuses of the scoring of sorties.

 

In the base version of IL2 stats, you do not get any penalty to sortie score for bailing/dying/etc.  Combat Box and Finnish both have homemade modifications which added those penalties - but now you can have it as well using the module "Adjustable Bonuses and Penalties" :)

 

The other two modules are also based on the changes Combat Box made to scoring. Check out the first post of this thread for more details. Many thanks to Alonzo for sharing their modifications with me.

 

To update: You need to run update.cmd after pasting over the src/

Edited by =FEW=Revolves
Link to comment
Share on other sites

=FEW=Revolves

Version 2.1.2 released which is compatible with the newly released 1.2.50 IL2 Stats.

 

If you're upgrading from before 2.1.0 you'll need to run update.cmd after pasting over the src/.

Link to comment
Share on other sites

=FEW=Revolves

Version 2.1.3 released which fixes a critical bug - if you didn't have adjustable_bonuses_penalties module active, it would cause the stats process to crash and not parse any new missions.

Link to comment
Share on other sites

=FEW=Revolves

Version 2.1.6 has just released, which contains a performance boost for the ironman rankings, as well as some bug fixes.

 

Previously, the ironman rankings would simply show your best streak, regardless of whether you had already died or not. This was intended behavior for previous tours,  the current tour now instead shows the best currently ongoing streaks, which was the intended output.

Link to comment
Share on other sites

  • 4 weeks later...
=FEW=Revolves
Posted (edited)

There should be no update to enhancements required - it is compatible with version 1.2.53 of il2 stats as is.

 

Worst case scenario a small display bug on servers with player-driven tanks isn't fixed. I'm planning a major release of the enhancements mod which will also include this fix in a couple weeks. There are also some missing Portuguese translations that will be in the major release.

Edited by =FEW=Revolves
Link to comment
Share on other sites

  • 3 weeks later...
=FEW=Revolves
Posted (edited)

Feature update 2.2.0!

 

This mainly updates the Split Rankings to include Personas! Basically, instead of just ranking being duplicated, all the stats you have are duplicated for fighter/attacker/bomber personas. E.g. die in a bomber when you have a 50 air kill streak in fighters, that streak does not get reset in your fighter persona.

 

Looks like this (pressable buttons):

image.thumb.png.7c9f6b8f9fd636b0c70ea71575fcf3a4.png

 

Other than that, it includes the Portuguese translations (many thanks to Arkanno, JorgeHFJ and GhostDragon!), two new modules that are workarounds against accuracy bugs, and a module meant for event based servers which shows you the best pilots of the last mission on the main page.

 

Changelog:

 


- Add Portuguese translations.
- Module Ammo Breakdown: Try to figure out which ammo caused damage in a "damage/damaged" line and display the guess in sortie logs.
- Module SplitRankings: Completely seperate fighter/attacker/personas. Now every field in your player profile can be seen seperately for fighter/attacker/bomber types. For example, check your K/D when flying with only fighters, or your GK/HR when you fly attacker types. This also works with the ironman rankings module.
- Module SplitRankings: Now consider some attacker aircraft sorties towards fighter rating. Those sorties with more air kills and air assist together than ground kills are counted towards fighter rating. Recent history of the player is taken into account in case of ambiguous sorties.
- Module SplitRankings: Reset fighter/attacker/bomber streaks only when you die in the corresponding type. This applies to the main page of the website (best living fighter/attacker/bomber pilots).
- New module "Top Last Mission", which replaces top of last 24 hours with top player in the last mission. Mainly meant for event servers where the action doesn't happen 24/7.
- New module "Rearm Accuracy Workaround", which stops sorties where a player took off twice (and thus presumambly rearmed) from being counted towards player accuracy. The total nr shots fired is reset when you rearm in the logs, and there is no way to recover how many shots you fired before the rearm. This is a workaround whichs bandaids the problem.
- New module "Bailout Accuracy Workaround", which stops sorties where a player bailed out from being counted towards player accuracy. The number of shots is set to the max possible (= how many shots you started with) in sorties where you bailout, and again it is a bug in the game logs, and as such impossible to count the number of shots. This is a workaround whichs bandaids the problem.

 

To update: You need to run update.cmd after pasting over the src/

 

If you have split rankings: This update also introduces retroactive computations of split rankings using the parameter retroactive_compute_for_last_tours. Check the readme for more details. By default the last 10 tours will be retroactively computed.

Edited by =FEW=Revolves
Link to comment
Share on other sites

=FEW=Revolves

Version 2.2.1 released which fixes a pretty critical bug with the ammo breakdown module -

 

If you looked at the sortie logs of a sortie done before the update was installed, it would result in a 500 error.

Link to comment
Share on other sites

=FEW=Revolves

Small feature update 2.3.0 released which contains a new module that when activated makes new tours start as soon as a mission is won (undecided/ties do not start tours). Config name is mission_win_new_tour. This module is meant for servers which have few missions wins, where a mission win is the result of a long dynamic campaign, such as on Finnish.

 

To update: No need to run update.cmd, just paste over /src/.

Edited by =FEW=Revolves
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...