Jump to content
PA-Sniv

IL2 server stats (unofficial)

Recommended Posts

Hi Vaal,

how can I recover the user admin and password? I forgot... :(

Edited by ITAF_LG965

Share this post


Link to post
Share on other sites

2 QuQi

 

il2_stats\src\conf.ini

read INSTALL.en.txt - 5

 

 

2 ITAF_LG965

use CMD

 

cd path_to_stat_dir\il2_stats\.venv\Scripts

activate.bat

cd ../../src

python manage.py changepassword admin_email

 

or

python manage.py createsuperuser

for new admin user

Share this post


Link to post
Share on other sites

hm, i dont get it. where is this value from?

my baz , sry. found it!

Share this post


Link to post
Share on other sites

Hello Vaal.

thank's for your job.

In the control panel, the stats, I noticed that, going into the Tour section and selecting a specific tour and giving the victory to a specific faction and click on save,

this change is not saved and then in the statistics not the assignment of victory appears . How do you correct?

Share this post


Link to post
Share on other sites

 

 

It is not designed for manual control.

 

 Vaal, thanks for the reply.

The question that I have done to you arises from the need that the system checks the victory points, regardless of whether I enter the target counters inside the mission.

If I do not enter these counters, but only objects to be destroyed without being connected to the meter, the system records the various points made by both factions, but does not assign to them the victory.

Take to get this only happens if both sides do not finish the required tasks to victory. Then assign the victory to the faction with the most points.

You can review the system, so I when editing the mission can do without the counters, so as to assign the victory only to those who have the most points?

 
Thanks for any response.

Share this post


Link to post
Share on other sites

I do not understand what the problem is.

Statistics can declared the winner by two criteria.

 

1) The main task is successfully executed. If this does not need to - do not add to the mission triggers indicating this.

2) Winning by the summary score of pilots. If you do not need it - then turn off in the config file statistics.

Share this post


Link to post
Share on other sites

I do not understand what the problem is.

Statistics can declared the winner by two criteria.

 

1) The main task is successfully executed. If this does not need to - do not add to the mission triggers indicating this.

2) Winning by the summary score of pilots. If you do not need it - then turn off in the config file statistics.

Vaal, in fact I have not set the triggers, but despite this a mission:      http://52.28.130.217/en/?tour=98      victory is not assigned to the points.

 

Thanks for any response.

Share this post


Link to post
Share on other sites

Tnx! I found a bug in the scoring.

Winning the mission calculated before added of bonus points (for landing, etc.)

 

For the future missions, you need to update the file.

il2_stats\src\stats\stats_whore.py

stats_whore.zip

Share this post


Link to post
Share on other sites
Hello Vaal !!

I downloaded the new version 1.2.5 of the statistics I copied the files and the fix I installed the new version.

But in the mission of the assignment last victory was not allocated, http://52.28.130.217/en/?tour=99

despite the global points indicate that the Allies won. There's more to analyze? I am attaching the mission log.

 

I thank you for the help you want to give me.

MissionLog_2016.11.24.zip

Share this post


Link to post
Share on other sites

default setting

win_score_ratio = 1.25

requires a minimum difference of score  to win.

 

2064 / 1758 = 1.17

Share this post


Link to post
Share on other sites

I am wondering if I can add a certain score feature:

If the flight is finished in enemy control territory to have some kind of penalty, loss of steak or negative score addition.  Is that possible?

Share this post


Link to post
Share on other sites

I tried to install 1.2.6. from scratch, but do get this message:

th_Unbenannt_zpspysuob3b.jpg

 

Does anybody have any idea what I am missing here?

Edited by [DBS]El_Marta

Share this post


Link to post
Share on other sites

Right now i rechecked installer libraries from scratch, everything works.

 

Check for these files in the directory

wheelhouse/argon2_cffi-16.3.0-cp35-cp35m-win32.whl

wheelhouse/argon2_cffi-16.3.0-cp35-cp35m-win_amd64.whl

Share this post


Link to post
Share on other sites

Is this something on my end? Do I need a fresh install? JU52's were used in this mission.

 


H:\il2_stats\run>cd ../src

H:\il2_stats\src>"../.venv/Scripts/python.exe" manage.py stats_whore
[2016.12.20 14:40:04] IL2 stats 1.2.6, Python 3.5.0, Django 1.10.4
[2016.12.20 14:40:04] missionReport(2016-12-19_22-23-21)[0] - processing new report
[2016.12.20 14:40:04] unexpected error
Traceback (most recent call last):
File "H:\il2_stats\src\stats\management\commands\stats_whore.py", line 16, in handle
stats_whore.main()
File "H:\il2_stats\src\stats\stats_whore.py", line 63, in main
stats_whore(m_report_file=m_report_file)
File "C:\Users\Belgarufo\AppData\Local\Programs\Python\Python35-32\lib\contextlib.py", line 30, in inner
return func(*args, **kwds)
File "H:\il2_stats\src\stats\stats_whore.py", line 158, in stats_whore
m_report.processing(files=m_report_files)
File "H:\il2_stats\src\mission_report\report.py", line 108, in processing
self.events_handlers[atype_id](**data)
File "H:\il2_stats\src\mission_report\report.py", line 299, in event_player
cartridges=cartridges, shells=shells, bombs=bombs, rockets=rockets)
File "H:\il2_stats\src\mission_report\report.py", line 701, in __init__
raise ValueError('sortie: unplayable object')
ValueError: sortie: unplayable object
Traceback (most recent call last):
File "manage.py", line 7, in
execute_from_command_line(sys.argv)
File "H:\il2_stats\.venv\lib\site-packages\django\core\management\__init__.py", line 367, in execute_from_command_line
utility.execute()
File "H:\il2_stats\.venv\lib\site-packages\django\core\management\__init__.py", line 359, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "H:\il2_stats\.venv\lib\site-packages\django\core\management\base.py", line 294, in run_from_argv
self.execute(*args, **cmd_options)
File "H:\il2_stats\.venv\lib\site-packages\django\core\management\base.py", line 345, in execute
output = self.handle(*args, **options)
File "H:\il2_stats\src\stats\management\commands\stats_whore.py", line 16, in handle
stats_whore.main()
File "H:\il2_stats\src\stats\stats_whore.py", line 63, in main
stats_whore(m_report_file=m_report_file)
File "C:\Users\Belgarufo\AppData\Local\Programs\Python\Python35-32\lib\contextlib.py", line 30, in inner
return func(*args, **kwds)
File "H:\il2_stats\src\stats\stats_whore.py", line 158, in stats_whore
m_report.processing(files=m_report_files)
File "H:\il2_stats\src\mission_report\report.py", line 108, in processing
self.events_handlers[atype_id](**data)
File "H:\il2_stats\src\mission_report\report.py", line 299, in event_player
cartridges=cartridges, shells=shells, bombs=bombs, rockets=rockets)
File "H:\il2_stats\src\mission_report\report.py", line 701, in __init__
raise ValueError('sortie: unplayable object')
ValueError: sortie: unplayable object

H:\il2_stats\src>pause
Press any key to continue . . .

 

Share this post


Link to post
Share on other sites

Is there someone so kind to create a step by step guide to install the stats system and to update it with new versions of the il2stats program ?

For example I have mine installed first time from a  more skilled friend, but if I try to update them with new versions they do not work.

With the old FBDJ in IL2 there was a guide create by a french user that was teaching how to install the stats system from scratch (easyphp and oracle mysql included).

With that guide everyone was able to install a multiplayer server, with stats system included even if he hadn't seen mysql in his life.

Obviously this is not a critic (thx Vaal for your great stats system....), but only a suggestion that I think may also help to diffuse the sim.  

Edited by FS_Fenice_1965

Share this post


Link to post
Share on other sites

There might be a bug with awards. We got some API errors about not found pages for some pilots when browsing awards from previous tours. We haven't added any awards into our stats system. As a workaround, I customized a template to remove the "Awards" tab from the pilot page.

Share this post


Link to post
Share on other sites

Is there someone so kind to create a step by step guide to install the stats system and to update it with new versions of the il2stats program ?

For example I have mine installed first time from a  more skilled friend, but if I try to update them with new versions they do not work.

With the old FBDJ in IL2 there was a guide create by a french user that was teaching how to install the stats system from scratch (easyphp and oracle mysql included).

With that guide everyone was able to install a multiplayer server, with stats system included even if he hadn't seen mysql in his life.

Obviously this is not a critic (thx Vaal for your great stats system....), but only a suggestion that I think may also help to diffuse the sim.  

This is how I do it:

1. Backup your conf.ini somewhere.

2. Unzip the newer version files to some working directory.

3. Shut down stats.cmd and waitress.cmd (If stats are currently being processed, wait until processing is complete.)

4. Copy the newer version folders and files over the older version.

5. Copy the backup conf.ini over the (now) newer version conf.ini.

6. Start the "run\update.cmd"

Share this post


Link to post
Share on other sites

Vaal, i have a look on the install information, and it seems that we don't need to install and configure an Apache server, if we want that player can look the stat, may you confirm i'm right understanding ?

Share this post


Link to post
Share on other sites

Col thx, it will be better that for RoF. i'm going to try to install it on my server.

Share this post


Link to post
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

×
×
  • Create New...