=FEW=Revolves Posted July 9, 2022 Author Posted July 9, 2022 I've updated the bundle with some bug fixes - in particular @NHK295M there shouldn't be any more trash in the logs after this update, plus a couple of other minor things. To update: Just paste over the src/ if you're coming from a >1.9.0 version, otherwise you need to run update.cmd.
=AD=uumembwa Posted July 10, 2022 Posted July 10, 2022 (edited) On 7/9/2022 at 1:53 PM, =FEW=Revolves said: I've updated the bundle with some bug fixes - in particular @NHK295M there shouldn't be any more trash in the logs after this update, plus a couple of other minor things. To update: Just paste over the src/ if you're coming from a >1.9.0 version, otherwise you need to run update.cmd. In my stats i have differences in files, coalition prefernces with 99/1 ratio and exclude for players without side preferences, what files i must change for update? Edited July 10, 2022 by NHK295M
=FEW=Revolves Posted July 11, 2022 Author Posted July 11, 2022 23 hours ago, NHK295M said: In my stats i have differences in files, coalition prefernces with 99/1 ratio and exclude for players without side preferences, what files i must change for update? To fix only the bug you're having it's the file src/mod_rating_by_type/turret_utils.py Also changed are src/mod_rating_by_type/templates/gunner.htm src/mod_rating_by_type/templates/pilot.html src/mod_rating_by_type/variant_utils.py src/mod_rating_by_type/models.py src/stats/aircraft_payloads.py If you want, I can include your modifications inside a couple of modules of my enhancements mod. That way, other servers could use them + you would have less work since you won't have to apply your changes again after each update.
=AD=uumembwa Posted July 12, 2022 Posted July 12, 2022 (edited) It's take some time, to find all changes, i remember, views - with "exclude coal_pref=0" but search searh any players and templates - not shown awards for both sides(neutral) players. I'm not profi, so hard to organize my ideas Or i can delete conf with logins and share my files. But i understand - best way is perform this is as separate mod, i not learned how to create mods yet... Edited July 12, 2022 by NHK295M
=FEW=Revolves Posted July 12, 2022 Author Posted July 12, 2022 (edited) 35 minutes ago, NHK295M said: It's take some time, to find all changes, i remember, views - with "exclude coal_pref=0" but search searh any players and templates - not shown awards for both sides(neutral) players. I'm not profi, so hard to organize my ideas Or i can delete conf with logins and share my files. But i understand - best way is perform this is as separate mod, i not learned how to create mods yet... There are tools you can use to figure out what the difference is between two directories. That way, you can let your computer figure out what you changed (compare your current il2 stats folder against a fresh install). Most famous is "diff" - but that is a bit difficult to use, since it is command line only (and works better for linux than windows). You can try this software: https://winmerge.org/?lang=ru If you give me the results of that difference + maybe some words as to what the changes do, then I can make them into mods for you. Or you could give me your il2 stats folder and I can do the diffing, just make sure you remove your password in the config file in this case Edited July 12, 2022 by =FEW=Revolves
=FEW=Revolves Posted August 3, 2022 Author Posted August 3, 2022 Updated mod bundle to latest il2 stats version. Includes support for ME-410. Also includes ME-410 payloads + modifcations (thanks @CountZero) To update: Install the base il2_stats update (i.e. copy over the src of the base project), then copy over the src/ of the latest version of the bundle, then run update.cmd.
super-truite Posted August 5, 2022 Posted August 5, 2022 (edited) hello there, I have a key error: stats_whore(m_report_file=m_report_file) File "C:\Users\DWS_Games\AppData\Local\Programs\Python\Python35-32\lib\contextlib.py", line 30, in inner return func(*args, **kwds) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\mod_stats_by_aircraft\stats_whore.py", line 124, in stats_whore m_report.processing(files=m_report_files) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\mission_report\report.py", line 117, in processing self.events_handlers[atype_id](**data) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\mod_rating_by_type\report.py", line 155, in event_hit ammo_db = self.objects[ammo.lower()] KeyError: 'shell_ger_50_hem' I added it to the trash objects in the object csv file and ran update.cmd but it still does not work Edited August 5, 2022 by super-truite
=FEW=Revolves Posted August 5, 2022 Author Posted August 5, 2022 (edited) 23 hours ago, super-truite said: hello there, I have a key error: stats_whore(m_report_file=m_report_file) File "C:\Users\DWS_Games\AppData\Local\Programs\Python\Python35-32\lib\contextlib.py", line 30, in inner return func(*args, **kwds) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\mod_stats_by_aircraft\stats_whore.py", line 124, in stats_whore m_report.processing(files=m_report_files) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\mission_report\report.py", line 117, in processing self.events_handlers[atype_id](**data) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\mod_rating_by_type\report.py", line 155, in event_hit ammo_db = self.objects[ammo.lower()] KeyError: 'shell_ger_50_hem' I added it to the trash objects in the object csv file and ran update.cmd but it still does not work That object is included in the latest bundle and il2 stats by vaal - could you try updating to the latest bundle again? Line 1701: shell,SHELL_GER_50_HEM,0,, objects.zip Edited August 6, 2022 by =FEW=Revolves 1
super-truite Posted August 6, 2022 Posted August 6, 2022 I have an error during the update and then I get back the shell_ger_50_... key error when launching stats.cmd install error: Traceback (most recent call last): File "manage.py", line 7, in <module> execute_from_command_line(sys.argv) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\.venv\lib\site-packages\django\core\management\__init__.py", line 364, in execute_from_command_line utility.execute() File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\.venv\lib\site-packages\django\core\management\__init__.py", line 356, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\.venv\lib\site-packages\django\core\management\base.py", line 283, in run_from_argv self.execute(*args, **cmd_options) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\.venv\lib\site-packages\django\core\management\base.py", line 330, in execute output = self.handle(*args, **options) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\mod_rating_by_type\import_csv_data.py", line 25, in handle 'score_id': score_dict[row['cls']], 'is_playable': is_playable, KeyError: 'cruise_missile'
=FEW=Revolves Posted August 6, 2022 Author Posted August 6, 2022 32 minutes ago, super-truite said: I have an error during the update and then I get back the shell_ger_50_... key error when launching stats.cmd install error: Traceback (most recent call last): File "manage.py", line 7, in <module> execute_from_command_line(sys.argv) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\.venv\lib\site-packages\django\core\management\__init__.py", line 364, in execute_from_command_line utility.execute() File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\.venv\lib\site-packages\django\core\management\__init__.py", line 356, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\.venv\lib\site-packages\django\core\management\base.py", line 283, in run_from_argv self.execute(*args, **cmd_options) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\.venv\lib\site-packages\django\core\management\base.py", line 330, in execute output = self.handle(*args, **options) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\mod_rating_by_type\import_csv_data.py", line 25, in handle 'score_id': score_dict[row['cls']], 'is_playable': is_playable, KeyError: 'cruise_missile' your classes.csv is probably outdated. probably best if you paste over the latest il2 stats version from vaal and then the bundle on top and then run update cmd. otherwise i've attached the latest version of classes.csv as well. classes.zip 1
super-truite Posted August 6, 2022 Posted August 6, 2022 thx, yes a fresh install did the trick. The copy paste must have stopped in the middle when I updated 1
=FEW=Revolves Posted September 8, 2022 Author Posted September 8, 2022 Updated object.csv with latest objects from latest il2 stats release, no planes this time - just ground stuff, so if your il2 stats parser hasn't crashed, then this update is not necessary. To update: Install the base il2_stats update (i.e. copy over the src of the base project), then copy over the src/ of the latest version of the bundle, then run update.cmd.
I-WVoss Posted October 10, 2022 Posted October 10, 2022 Congratulations on the great job done in modifying Vaal's stats, I wanted to know if this piece of code: "Module: All assists are counted as kills" is already inserted in your recent realese.
=FEW=Revolves Posted October 10, 2022 Author Posted October 10, 2022 4 hours ago, ITA_WVoss said: Congratulations on the great job done in modifying Vaal's stats, I wanted to know if this piece of code: "Module: All assists are counted as kills" is already inserted in your recent realese. Thanks! The module Module: All assists are counted as kills is not available yet - I'm planning to release it by the end of this year, if all goes to plan. 1
=FEW=Revolves Posted October 12, 2022 Author Posted October 12, 2022 (edited) I've updated the bundle to the latest tank mod with support for the new Churchill tanks + other objects introduced in the latest patch, thanks CountZero! To update: Install the base il2_stats update (i.e. copy over the src of the base project), then copy over the src/ of the latest version of the bundle, then run update.cmd. Edited October 12, 2022 by =FEW=Revolves
super-truite Posted October 27, 2022 Posted October 27, 2022 Hello Revolves, I have this kind of errors in some files: Traceback (most recent call last): File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\stats\management\commands\stats_whore.py", line 16, in handle stats_whore.main() File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\mod_stats_by_aircraft\stats_whore.py", line 67, in main stats_whore(m_report_file=m_report_file) File "C:\Users\DWS_Games\AppData\Local\Programs\Python\Python35-32\lib\contextlib.py", line 30, in inner return func(*args, **kwds) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\mod_stats_by_aircraft\stats_whore.py", line 124, in stats_whore m_report.processing(files=m_report_files) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\mission_report\report.py", line 117, in processing self.events_handlers[atype_id](**data) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\mod_rating_by_type\report.py", line 176, in event_player cartridges=cartridges, shells=shells, bombs=bombs, rockets=rockets) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\mission_report\report.py", line 758, in __init__ raise ValueError('sortie: unplayable object') ValueError: sortie: unplayable object [2022.10.27 17:58:44] Lock 66855824 released on C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\file.lock Traceback (most recent call last): File "manage.py", line 7, in <module> execute_from_command_line(sys.argv) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\.venv\lib\site-packages\django\core\management\__init__.py", line 364, in execute_from_command_line utility.execute() File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\.venv\lib\site-packages\django\core\management\__init__.py", line 356, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\.venv\lib\site-packages\django\core\management\base.py", line 283, in run_from_argv self.execute(*args, **cmd_options) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\.venv\lib\site-packages\django\core\management\base.py", line 330, in execute output = self.handle(*args, **options) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\stats\management\commands\stats_whore.py", line 16, in handle stats_whore.main() File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\mod_stats_by_aircraft\stats_whore.py", line 67, in main stats_whore(m_report_file=m_report_file) File "C:\Users\DWS_Games\AppData\Local\Programs\Python\Python35-32\lib\contextlib.py", line 30, in inner return func(*args, **kwds) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\mod_stats_by_aircraft\stats_whore.py", line 124, in stats_whore m_report.processing(files=m_report_files) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\mission_report\report.py", line 117, in processing self.events_handlers[atype_id](**data) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\mod_rating_by_type\report.py", line 176, in event_player cartridges=cartridges, shells=shells, bombs=bombs, rockets=rockets) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\mission_report\report.py", line 758, in __init__ raise ValueError('sortie: unplayable object') ValueError: sortie: unplayable object save_data_il2.zip (example log file that triggered the error)
=FEW=Revolves Posted October 27, 2022 Author Posted October 27, 2022 (edited) 1 hour ago, super-truite said: Hello Revolves, I have this kind of errors in some files: Traceback (most recent call last): File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\stats\management\commands\stats_whore.py", line 16, in handle stats_whore.main() File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\mod_stats_by_aircraft\stats_whore.py", line 67, in main stats_whore(m_report_file=m_report_file) File "C:\Users\DWS_Games\AppData\Local\Programs\Python\Python35-32\lib\contextlib.py", line 30, in inner return func(*args, **kwds) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\mod_stats_by_aircraft\stats_whore.py", line 124, in stats_whore m_report.processing(files=m_report_files) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\mission_report\report.py", line 117, in processing self.events_handlers[atype_id](**data) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\mod_rating_by_type\report.py", line 176, in event_player cartridges=cartridges, shells=shells, bombs=bombs, rockets=rockets) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\mission_report\report.py", line 758, in __init__ raise ValueError('sortie: unplayable object') ValueError: sortie: unplayable object [2022.10.27 17:58:44] Lock 66855824 released on C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\file.lock Traceback (most recent call last): File "manage.py", line 7, in <module> execute_from_command_line(sys.argv) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\.venv\lib\site-packages\django\core\management\__init__.py", line 364, in execute_from_command_line utility.execute() File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\.venv\lib\site-packages\django\core\management\__init__.py", line 356, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\.venv\lib\site-packages\django\core\management\base.py", line 283, in run_from_argv self.execute(*args, **cmd_options) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\.venv\lib\site-packages\django\core\management\base.py", line 330, in execute output = self.handle(*args, **options) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\stats\management\commands\stats_whore.py", line 16, in handle stats_whore.main() File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\mod_stats_by_aircraft\stats_whore.py", line 67, in main stats_whore(m_report_file=m_report_file) File "C:\Users\DWS_Games\AppData\Local\Programs\Python\Python35-32\lib\contextlib.py", line 30, in inner return func(*args, **kwds) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\mod_stats_by_aircraft\stats_whore.py", line 124, in stats_whore m_report.processing(files=m_report_files) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\mission_report\report.py", line 117, in processing self.events_handlers[atype_id](**data) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\mod_rating_by_type\report.py", line 176, in event_player cartridges=cartridges, shells=shells, bombs=bombs, rockets=rockets) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\mission_report\report.py", line 758, in __init__ raise ValueError('sortie: unplayable object') ValueError: sortie: unplayable object Hey super truite, thanks for the bug report ! Could you try to reapply the latest update and run update.cmd? I can't reproduce the error on my end, the logs go through on my il2 stats + bundle installation. If that doesn't help, could you also send your config file? (remember to delete the password and username in it before uploading) Edited October 27, 2022 by =FEW=Revolves 1
super-truite Posted October 27, 2022 Posted October 27, 2022 [http] host = ********** port = 80 [database] host = 127.0.0.1 port = 5432 name = il2_stats user = ************ password = ********* [game_server] path = C:\il2 [stats] mission_report_delete = false mission_report_backup_days = 31 inactive_player_days = 7 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, mod_stats_by_aircraft modules = split_rankings, ammo_breakdown, ironman_stats, top_last_mission, gunner_stats, Rams, [email] send_email = false from_email = noreply@example.com email_host = smtp.mailgun.org email_host_user = postmaster@mailgun.example.com email_host_password = 123456 email_port = 25 email_use_tls = false email_use_ssl = false I did a fresh reinstall but still the same error 1
=FEW=Revolves Posted October 27, 2022 Author Posted October 27, 2022 Hmm, still not getting the error on my installation with the config + logs you sent over. Could you copy this report.py over to src/mission_report/report.py, run stats_whore.cmd again? And then post the error log It will help us narrow the error down a bit because it will tell us which object/sortie is causing the error. report.zip 1
super-truite Posted October 27, 2022 Posted October 27, 2022 Traceback (most recent call last): File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\stats\management\commands\stats_whore.py", line 16, in handle stats_whore.main() File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\mod_stats_by_aircraft\stats_whore.py", line 67, in main stats_whore(m_report_file=m_report_file) File "C:\Users\DWS_Games\AppData\Local\Programs\Python\Python35-32\lib\contextlib.py", line 30, in inner return func(*args, **kwds) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\mod_stats_by_aircraft\stats_whore.py", line 124, in stats_whore m_report.processing(files=m_report_files) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\mission_report\report.py", line 117, in processing self.events_handlers[atype_id](**data) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\mod_rating_by_type\report.py", line 176, in event_player cartridges=cartridges, shells=shells, bombs=bombs, rockets=rockets) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\mission_report\report.py", line 758, in __init__ raise ValueError('sortie: unplayable object ' + self.aircraft_name + " / " + str(obj['log_name'])) ValueError: sortie: unplayable object _sdkfz184_t1 / _sdkfz184_t1 [2022.10.27 23:24:33] Lock 75899760 released on C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\file.lock Traceback (most recent call last): File "manage.py", line 7, in <module> execute_from_command_line(sys.argv) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\.venv\lib\site-packages\django\core\management\__init__.py", line 364, in execute_from_command_line utility.execute() File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\.venv\lib\site-packages\django\core\management\__init__.py", line 356, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\.venv\lib\site-packages\django\core\management\base.py", line 283, in run_from_argv self.execute(*args, **cmd_options) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\.venv\lib\site-packages\django\core\management\base.py", line 330, in execute output = self.handle(*args, **options) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\stats\management\commands\stats_whore.py", line 16, in handle stats_whore.main() File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\mod_stats_by_aircraft\stats_whore.py", line 67, in main stats_whore(m_report_file=m_report_file) File "C:\Users\DWS_Games\AppData\Local\Programs\Python\Python35-32\lib\contextlib.py", line 30, in inner return func(*args, **kwds) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\mod_stats_by_aircraft\stats_whore.py", line 124, in stats_whore m_report.processing(files=m_report_files) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\mission_report\report.py", line 117, in processing self.events_handlers[atype_id](**data) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\mod_rating_by_type\report.py", line 176, in event_player cartridges=cartridges, shells=shells, bombs=bombs, rockets=rockets) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\mission_report\report.py", line 758, in __init__ raise ValueError('sortie: unplayable object ' + self.aircraft_name + " / " + str(obj['log_name'])) ValueError: sortie: unplayable object _sdkfz184_t1 / _sdkfz184_t1 oh, this is something I added to the junk objects before 1
super-truite Posted November 1, 2022 Posted November 1, 2022 I still get the error. Even when adding to the trash objects
=FEW=Revolves Posted November 1, 2022 Author Posted November 1, 2022 Try: trash,_SdKfz184_T1,1,, The "1" marks it as a playable object. If that doesn't work, try making it a tank_turret or tank_heavy.
=FEW=Revolves Posted November 25, 2022 Author Posted November 25, 2022 Updated bundle to latest il2 stats version. It includes a couple of bug fixes, including (hopefully) a memory leak fix that may have caused the stats program to crash after 1-3 weeks of operation. To update: Install the base il2_stats update (i.e. copy over the src of the base project), then copy over the src/ of the latest version of the bundle, then run update.cmd. 2
super-truite Posted November 28, 2022 Posted November 28, 2022 On 11/1/2022 at 3:37 PM, =FEW=Revolves said: Try: trash,_SdKfz184_T1,1,, The "1" marks it as a playable object. If that doesn't work, try making it a tank_turret or tank_heavy. thanks, it worked! (tank_turret,_SdKfz184_T1,1,,) 1
=FEW=Revolves Posted March 29, 2023 Author Posted March 29, 2023 Updated to include new spitfire variant in object.csv To update: Install the base il2_stats update (i.e. copy over the src of the base project), then copy over the src/ of the latest version of the bundle, then run update.cmd. 1
super-truite Posted March 29, 2023 Posted March 29, 2023 hello, I have some error for a while now and even with the update and a fresh install I still have it: [2023.03.30 00:43:25] missionReport(2022-11-29_12-37-57)[0] - processing new report [2023.03.30 00:43:27] unexpected error Traceback (most recent call last): File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\stats\management\commands\stats_whore.py", line 16, in handle stats_whore.main() File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\mod_stats_by_aircraft\stats_whore.py", line 67, in main stats_whore(m_report_file=m_report_file) File "C:\Users\DWS_Games\AppData\Local\Programs\Python\Python35-32\lib\contextlib.py", line 30, in inner return func(*args, **kwds) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\mod_stats_by_aircraft\stats_whore.py", line 124, in stats_whore m_report.processing(files=m_report_files) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\mission_report\report.py", line 117, in processing self.events_handlers[atype_id](**data) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\mission_report\report.py", line 339, in event_game_object country_id=country_id, coal_id=coal_id, parent_id=parent_id) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\mission_report\report.py", line 454, in __init__ obj = mission.objects[self.log_name] KeyError: 'pzkpfw v ausf.g' [2023.03.30 00:43:27] Lock 71242064 released on C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\file.lock Traceback (most recent call last): File "manage.py", line 7, in <module> execute_from_command_line(sys.argv) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\.venv\lib\site-packages\django\core\management\__init__.py", line 364, in execute_from_command_line utility.execute() File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\.venv\lib\site-packages\django\core\management\__init__.py", line 356, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\.venv\lib\site-packages\django\core\management\base.py", line 283, in run_from_argv self.execute(*args, **cmd_options) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\.venv\lib\site-packages\django\core\management\base.py", line 330, in execute output = self.handle(*args, **options) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\stats\management\commands\stats_whore.py", line 16, in handle stats_whore.main() File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\mod_stats_by_aircraft\stats_whore.py", line 67, in main stats_whore(m_report_file=m_report_file) File "C:\Users\DWS_Games\AppData\Local\Programs\Python\Python35-32\lib\contextlib.py", line 30, in inner return func(*args, **kwds) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\mod_stats_by_aircraft\stats_whore.py", line 124, in stats_whore m_report.processing(files=m_report_files) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\mission_report\report.py", line 117, in processing self.events_handlers[atype_id](**data) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\mission_report\report.py", line 339, in event_game_object country_id=country_id, coal_id=coal_id, parent_id=parent_id) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\mission_report\report.py", line 454, in __init__ obj = mission.objects[self.log_name] KeyError: 'pzkpfw v ausf.g' The file causing trouble:logsIl2.zip
=FEW=Revolves Posted March 30, 2023 Author Posted March 30, 2023 (edited) 16 hours ago, super-truite said: hello, I have some error for a while now and even with the update and a fresh install I still have it: [2023.03.30 00:43:25] missionReport(2022-11-29_12-37-57)[0] - processing new report [2023.03.30 00:43:27] unexpected error Traceback (most recent call last): File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\stats\management\commands\stats_whore.py", line 16, in handle stats_whore.main() File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\mod_stats_by_aircraft\stats_whore.py", line 67, in main stats_whore(m_report_file=m_report_file) File "C:\Users\DWS_Games\AppData\Local\Programs\Python\Python35-32\lib\contextlib.py", line 30, in inner return func(*args, **kwds) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\mod_stats_by_aircraft\stats_whore.py", line 124, in stats_whore m_report.processing(files=m_report_files) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\mission_report\report.py", line 117, in processing self.events_handlers[atype_id](**data) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\mission_report\report.py", line 339, in event_game_object country_id=country_id, coal_id=coal_id, parent_id=parent_id) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\mission_report\report.py", line 454, in __init__ obj = mission.objects[self.log_name] KeyError: 'pzkpfw v ausf.g' [2023.03.30 00:43:27] Lock 71242064 released on C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\file.lock Traceback (most recent call last): File "manage.py", line 7, in <module> execute_from_command_line(sys.argv) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\.venv\lib\site-packages\django\core\management\__init__.py", line 364, in execute_from_command_line utility.execute() File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\.venv\lib\site-packages\django\core\management\__init__.py", line 356, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\.venv\lib\site-packages\django\core\management\base.py", line 283, in run_from_argv self.execute(*args, **cmd_options) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\.venv\lib\site-packages\django\core\management\base.py", line 330, in execute output = self.handle(*args, **options) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\stats\management\commands\stats_whore.py", line 16, in handle stats_whore.main() File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\mod_stats_by_aircraft\stats_whore.py", line 67, in main stats_whore(m_report_file=m_report_file) File "C:\Users\DWS_Games\AppData\Local\Programs\Python\Python35-32\lib\contextlib.py", line 30, in inner return func(*args, **kwds) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\mod_stats_by_aircraft\stats_whore.py", line 124, in stats_whore m_report.processing(files=m_report_files) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\mission_report\report.py", line 117, in processing self.events_handlers[atype_id](**data) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\mission_report\report.py", line 339, in event_game_object country_id=country_id, coal_id=coal_id, parent_id=parent_id) File "C:\Users\DWS_Games\Documents\IL2\IL2_Stats\il2_stats\src\mission_report\report.py", line 454, in __init__ obj = mission.objects[self.log_name] KeyError: 'pzkpfw v ausf.g' The file causing trouble:logsIl2.zip Ah crap, sorry - I messed up an update with the object.csv from the il2 stats update on the 22nd of November. The tank was missing from object.csv, but the rest of the changes are present from that update. Thanks for the logs! New object.csv is attached (replace object.csv in src/object.csv and then run update.cmd). I've also made a new release (1.10.3) if you prefer to download it that way, only change is the object.csv. objects.zip Edited March 30, 2023 by =FEW=Revolves 1
=FEW=Revolves Posted April 26, 2023 Author Posted April 26, 2023 Update to object.csv to support the new BF 109 variant from the patch. (The SSW D.IV WW should already work with the old version) To update: Install the base il2_stats update (i.e. copy over the src of the base project), then copy over the src/ of the latest version of the bundle, then run update.cmd. ---- I'm also planning to incorporate the latest version of CountZero's tank mod soon, it includes some cool new features - namely disconnect mod support for tanks + better RTB logic. A new bundle version with those changes should be out by the end of the week.
1PL-Husar-1Esk Posted April 26, 2023 Posted April 26, 2023 They recently fixed parent Id linked to player who dropped paratroopers, i don't if you have that, but it would be nice to grant pilots points for successful drop.
=FEW=Revolves Posted April 27, 2023 Author Posted April 27, 2023 17 hours ago, 1PL-Husar-1Esk said: They recently fixed parent Id linked to player who dropped paratroopers, i don't if you have that, but it would be nice to grant pilots points for successful drop. Yeah I've talked with @LLv34_Temuri about that, and my understanding is that it's difficult for the website, at least by itself, to see if the paratroopers landed in an effective spot or not. So there needs to be some kind of server-side hacking here where either the server reads in where the paratroopers are dropped, and then it somehow informs the website that the paratroopers were dropped successfully (probably by adding in artificial "kill" into the logs or something like that), or the server needs to tell the website where the good para drop locations are. Basically, something like that could work, but it requires code which I don't control (i.e. the server code), so it's difficult to provide a plugin for the website that does it, in particular because I have no idea how dserver scripting works. 1
LLv34_Temuri Posted April 28, 2023 Posted April 28, 2023 13 hours ago, =FEW=Revolves said: probably by adding in artificial "kill" into the logs or something like that Yes, this is how we currently award points for airfield supply flights. Something similar is coming for paradrops.
super-truite Posted September 8, 2023 Posted September 8, 2023 Hello, I am trying to restore a db backup from my old server before updating with the newest logs. I saved the db by right clicking on the db name -> backup in PgAdmin III, then I restored it in my new server: I create a new db, then right click -> Restore. I get some strange results (lots of players have double entries in the overall page for instance: http://aas-il2.com:8000/fr/overall/ ). Not sure if it is an issue with the bundle or with the backup method or with the vanilla stat system though
=FEW=Revolves Posted September 10, 2023 Author Posted September 10, 2023 (edited) On 9/8/2023 at 3:27 PM, super-truite said: Hello, I am trying to restore a db backup from my old server before updating with the newest logs. I saved the db by right clicking on the db name -> backup in PgAdmin III, then I restored it in my new server: I create a new db, then right click -> Restore. I get some strange results (lots of players have double entries in the overall page for instance: http://aas-il2.com:8000/fr/overall/ ). Not sure if it is an issue with the bundle or with the backup method or with the vanilla stat system though Is there anything else strange? The overall page should have duplicates. The mod bundle adds tanks/fighter/attacker/bomber stats on that page, it is otherwise unchanged. If you get a streak of 60 and a streak of 45 both are displayed on the overall page (as long as they're in the top 10). Or two streaks of 50. Maybe it is confusing, I could change in the future to only allow one player at a time? Or is it alright as is? Edited September 10, 2023 by =FEW=Revolves 1
super-truite Posted September 12, 2023 Posted September 12, 2023 ok, no if it is meant this way, no pbm, I thought it was a bug during the backup process. The only other issue that was reported is this: But not sure where he saw it, I will ask.
JGr2/J5_Baeumer Posted September 19, 2023 Posted September 19, 2023 Best streak by player would probably be most meaningful. Only one listing per player as its a player vs player contest and doing so prevents it becoming a pretty useless record of a few (or one) player attempting to best themselves. Its not Donkey Kong or Asteroids.
=FEW=Revolves Posted September 19, 2023 Author Posted September 19, 2023 Yeah, agreed. I'll add a little something for the next release to stop that I was hesitant to change it because that's how the original stats website does it (Vaal added that page about a year ago).
=FEW=Revolves Posted September 20, 2023 Author Posted September 20, 2023 Small update - new objects from the latest il2 stats version. To update: Install the base il2_stats update (i.e. copy over the src of the base project), then copy over the src/ of the latest version of the bundle, then run update.cmd.
=FEW=Revolves Posted December 23, 2023 Author Posted December 23, 2023 Added in new objects (some missing flying circus planes + IAR 80) Also, I've added in some more human-readable strings for new bullet types. So the new ammo used in the IAR-80 should output correctly. This also fixed a long-standing issue where small caliber German and British machine gun ammo was being output in machine-readable form instead of human readable (i.e. the website will now output MG 17 (AP) instead of BULLET_GER_7-92X57_APSMK) To update: Install the base il2_stats update (i.e. copy over the src of the base project), then copy over the src/ of the latest version of the bundle, then run update.cmd.
=FI=Genosse Posted February 1, 2024 Posted February 1, 2024 (edited) Hi there, Revolves! I downloaded and installed your bundle on our server. Since we don't use tanks on it I'd like to know how to get rid of the tank stats. I'm not so much into coding so I have no idea where to start here ... Thanks in advance for picking up my noobish question, mate. Edited February 7, 2024 by =FI=Genosse
=FEW=Revolves Posted February 7, 2024 Author Posted February 7, 2024 On 2/1/2024 at 6:57 AM, =FI=Genosse said: Hi there, Revolves! I donwloaded and installed your bundle on our server. Since we don't use tanks on it I'd like to know how to get rid of the tank stats. I'm not so much into coding so I have no idea where to start here ... Thanks in advance for picking up my noobish question, mate. Sorry for the late reply, I was gone on vacation - I've been meaning to add in an option to disable all the tank stuff as a config option, it's just been rather low priority. To do it on your end: In src/mod_rating_by_type/ you will find a bunch of html files. Open up base.html with a text editor. Line 87 of the html should be: ``` <a href="{% url 'stats:tankmans' %}?tour={{ request.tour.id }}">{% trans 'Tankman Rankings' %}</a> ``` Completely remove that line and restart the server (restart waitress.cmd). This will remove the tank rankings navigation option at the top. ----- There will probably be some references to tanks there and there, but that should be the bulk of it.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now