-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Based on branch feature/statsByPlaneType of FGlazov/il2_stats github repository. Backend part of the changes came into vaal-/il2_stats master branch, frontend is here.
- Loading branch information
0 parents
commit 6c75e37
Showing
28 changed files
with
35,111 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Copyright 2021 Fedor Glazov | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
============================================ | ||
IL-2 Stats Submod: Split Rankings | ||
============================================ | ||
Authors: =FEW=Revolves and Enigma89 | ||
|
||
This is a mod which adds more information to your IL2 Stats website. Its 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 an unnamed Spanish speaking volunteer (They never let us know who they were!) for their help translating this mod. We also thank RaptorAttacker for his graphic work for helping us make the icons. | ||
|
||
Video introduction: https://www.youtube.com/watch?v=5NU9jxvSP30 | ||
|
||
This version is compatible with 1.2.48 of IL2 stats. | ||
|
||
DISCLAIMER: This mod is NOT (currently) retroactive, it will only split the stats of new sorties. | ||
|
||
Installation | ||
--------------------------------------------- | ||
|
||
1. You need an installation of il2 stats. The latest version can be found under https://forum.il2sturmovik.com/topic/19083-il2-stats-statistics-system-for-a-dedicated-server-il2-battle-of-stalingrad/ | ||
|
||
2. Copy the src folder inside this .zip into your il2 stats folder. | ||
|
||
3. Inside your src/conf.ini, add the line "mods = mod_rating_by_type" under [stats]. If you have multiple mods, you can separate them as "mods = mod1, mod_rating_by_type". As an example, you might have the following lines under [stats]. | ||
|
||
[stats] | ||
mission_report_delete = false | ||
mission_report_backup_days = 31 | ||
inactive_player_days = 331 | ||
new_tour_by_month = true | ||
win_by_score = true | ||
win_score_min = 2000 | ||
win_score_ratio = 1.25 | ||
sortie_min_time = 0 | ||
skin_id = 1 | ||
mods = mod_rating_by_type | ||
|
||
Uninstallation | ||
--------------------------------------------- | ||
Remove mod_rating_by_type from mods in your src/conf.ini. | ||
If you want to also remove the unused mod files, then you can delete the folder src/mod_rating_by_type | ||
|
||
Support | ||
--------------------------------------------- | ||
Contact =FEW=Revolves on the IL2 forums. | ||
|
||
|
||
Compatibility with other mods | ||
--------------------------------------------- | ||
|
||
This mod modifies the following files. If another mod also modifies these files, there is a high chance that this mod will not be compatible with the other mod without some work. | ||
|
||
src/stats/views.py | ||
src/stats/urls.py | ||
src/stats/templates/tour.html | ||
src/stats/templates/squad_pilots.html | ||
src/stats/templates/squads.html | ||
src/stats/templates/squad.html | ||
src/stats/templates/pilots.html | ||
src/stats/templates/pilot.html | ||
src/stats/templates/mission.html | ||
src/stats/templates/main.html | ||
src/stats/locale/ru/LC_MESSAGES/* (all files in this dir) | ||
src/stats/locale/fr/LC_MESSAGES/* (all files in this dir) | ||
src/stats/locale/es/LC_MESSAGES/* (all files in this dir) | ||
src/stats/locale/de/LC_MESSAGES/* (all files in this dir) | ||
|
||
If these two mods are incompatible, then you may attempt to merge the changes together. Most friendly python programmers will be able to do this quickly! If you're technically minded, you can attempt to do this even without programming knowledge. If you don't know any friendly programmers, you may contact =FEW=Revolves on the forums and I'll try to get back to you and Frankenstein your two mods together. | ||
|
||
|
||
License | ||
--------------------------------------------- | ||
The mod is licensed under the MIT License. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
default_app_config = 'mod_rating_by_type.apps.ModConfig' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from django.apps import AppConfig | ||
from django.utils.translation import ugettext_lazy as _ | ||
|
||
|
||
class ModConfig(AppConfig): | ||
name = 'mod_rating_by_type' | ||
|
||
def ready(self): | ||
# !!! monkey patch | ||
from stats import urls as original_urls | ||
from . import urls as new_urls | ||
original_urls.urlpatterns = new_urls.urlpatterns |
Binary file not shown.
Oops, something went wrong.