Jump to content

[MOD] to add Tank missions for IL2 stats system (made by =FB=Vaal and =FB=Isay)


Recommended Posts

=AD=uumembwa
Posted

But i see no differences in the stats after this update...

=FEW=Revolves
Posted (edited)
48 minutes ago, NHK295M said:

But i see no differences in the stats after this update...

 

Just as a remark: It will only work for tank sorties done after the update.

 

Would you be willing to upload the dserver logs (i.e. the missonReport(XXXXXXXXXXXX)[XX].txt) which didn't work?  It's hard to say what went wrong without the logs. All I can tell you is that it worked with the logs I and CountZero tested.

Edited by =FEW=Revolves
Posted (edited)
6 hours ago, NHK295M said:

But i see no differences in the stats after this update...

Was this mission after you instaled 2.9.1 mod ?

http://il2action.ddns.net/en/mission/1558/

 

You can send me that mission log if you wont, i just re-downloaded 2.9.1 mod and test it on clean 1.2.48 with logs i have, and all works as before, sortie log aditionaly displays what tank damaged.

Edited by CountZero
Posted

I updated link on first post to new version compatible with 1.2.49

On 3/28/2021 at 11:41 AM, NHK295M said:

But i see no differences in the stats after this update...

I encountered same problem when i tested things on new stats version, sortie log didnt display hits like it was intended with addd edits in 2.9.1.

I asked =FEW=Revolves and he found fix so it should work ok in this new version, i tested it and it worked for me, check it out when you get time and report if its still not working.

  • Upvote 1
=AD=uumembwa
Posted

It's work now?

=AD=uumembwa
Posted

I see new page Overall in stats, maybe add tankmans on it?:blush:

So long i not work with stats where i must add new class top_tankman alike top_pilot?

Posted
On 4/15/2021 at 10:47 AM, NHK295M said:

I see new page Overall in stats, maybe add tankmans on it?:blush:

So long i not work with stats where i must add new class top_tankman alike top_pilot?

Didnt notice that was added, ill add tank stats to that when next stats update comes out.

Posted (edited)

Link on first post updated to new version of mod that works with 1.2.50 IL-2 stats.

Added total server top points, top virtual life points, top GK streak, and AK streak for tanks to overall page, and add new GAZ AA truck:

Spoiler

GAZ-mm.thumb.jpg.c3e7b76e5c368fbe25a5734545a93744.jpg


Here is link for only files changed from 2.9.2 version, so if you have previous mod version instaled you can just download this files:

https://www.mediafire.com/file/lc2lntt3k8kas7j/changes3.0.1.zip/file

 

After adding/replacing files It is neccesary to run collectstatic.cmd to updated GAZ-MM 72K images
( changed files: objects.csv, tank_payloads.py, views.py, base.html, overall.html, tankman_vlife.html,  _gaz-mm-72k_t0.png, gaz-mm 72-k.png) 

Edited by CountZero
quick fix 3.0.1 for overall.html file
  • Like 1
  • Thanks 1
Posted

updated link to new version with hotfix for AI tank causes the stats process to hang. Thanks =FEW=Revolves for fixing it fast.

Posted

Updated link on first post with new version compatible with version 1.2.54, and separated human controled trucks from tanks.
Changed files from previous version: models.py, objects.csv, report.py, squad.html, stats_whore.py, tankman.html, views.py and django.po with fixes to german translation. Thanks =FEW=Revolves for help with edits.

Posted

I updated link on first post with version 3.3 of mod, compatible with new version IL-2 stats 1.2.55. 

 

This version contains images and paylods for new SdKfz AA truck, fix for tankman killboard (you can see your score vs tank and airplane players), fix for squad section and ranking (count tank only players also to total number of menbers), 

 

and edit for destroyed tank in case when player finish sortie but tank is ok with some slightly damaged ( i set it now as default to count tank as ok if damage to it is less then 5% at end of sortie ).
Server host can change this % to what he thinks is ok for his server by changing dmg_pct_tk value located in "il2_stats\src\mission_report\report.py" file, in this section; "def killed_by_damage(self, dmg_pct=0, dmg_pct_tk=5)" . 

 

Thanks again to =FEW=Revolves for help with tankman killboard and squad changes.

  • Thanks 1
  • Upvote 1
=AD=uumembwa
Posted

@CountZero in case if i use bundle version of statmods can i use this update?

=FEW=Revolves
Posted
1 minute ago, NHK295M said:

@CountZero in case if i use bundle version of statmods can i use this update?

 

I need to make the changes in the bundle, I'll have the update up tomorrow.

  • Like 1
Posted
2 minutes ago, NHK295M said:

@CountZero in case if i use bundle version of statmods can i use this update?

I would wait for Revolves to combine it

616Sqn_SpocksOddSocks
Posted

Ok, so I've just tried updating the stats with the new updates to Vaal's file, and yours, and now I'm getting a major error/ "ImportError: No module named 'stats.tank_mods'

 

Not certain if you can help, but this error kept appearing throughout the running of the update.exe, and also appears when trying to start up the stats, or waitress programs.

  • Thanks 1
Posted (edited)
7 minutes ago, 616Sqn_SpocksOddSocks said:

Ok, so I've just tried updating the stats with the new updates to Vaal's file, and yours, and now I'm getting a major error/ "ImportError: No module named 'stats.tank_mods'

 

Not certain if you can help, but this error kept appearing throughout the running of the update.exe, and also appears when trying to start up the stats, or waitress programs.

were you using bundle before ? 

when you open config.py do you have anything set in line 39, for mods, or in line 25 in conf.ini ?

Edited by CountZero
616Sqn_SpocksOddSocks
Posted

No, just the tank mod.

Posted (edited)

rgr ill check, maybe there is line left somwhere when i tested if tank modifications can work like airplane modifications, its probably that

 

EDIT:

 

ok try this models.py file

models.zip

Edited by CountZero
post got merged...
  • Thanks 1
616Sqn_SpocksOddSocks
Posted

Thanks. That seems to have fixed it. 

Posted (edited)
6 minutes ago, 616Sqn_SpocksOddSocks said:

Thanks. That seems to have fixed it. 

Nice, i was trying to make modifications to show up for tanks and trucks few weeks ago, after i added all neded i found out that game log dont give modification number so thats why they cant work, and it seams i forghot to remove all lines from folder with mod data, i removed all from my test stats so i didnt get error.

 

I also updated main link for mod version 3.3 with this working file.

Edited by CountZero
616Sqn_SpocksOddSocks
Posted

I'm just grateful you got back to me so quickly. I'd updated the stats in a rush, so was rather stressed at having messed something up in the rush.

Posted

i updated mod to new stats version, only changes are to files objects.csv and view.py 

Posted

i updated mod with changes up to 1.2.60 version of stats (  stats/templates/base.html ,  mission_report/report.py , and objects.csv )

also i added change to kill dmg =FEW=Revolves recomended.

  • 2 months later...
616Sqn_SpocksOddSocks
Posted

objects.zip

I'm currently in the process of updating our server stats, which I haven't fully done for a while, other than hotfixing. I am uncertain yet whether other files in your tank mod require updating for the latest update, but I have finished amending "objects.csv" for 1.2.61 and attached it here. There were also a number of missing objects from previous updates (though I believe are flying circus assets).

616Sqn_SpocksOddSocks
Posted

I've updated the stats on OhMyDog. There was one minor change to "models.py" to account for a naming issue with the Handley-Page. I've made the change on my version so as not to get bogged down with changes as they come.

 

However, "waitress.cmd" does currently seem to be logging an error message related to the mod: "[BundleMod]: WARNING: Could not find ammo_breakdowns translation for tank sortie. Is [mod_ratings_by_type] disabled? " This does not seem to be stopping the stats page functioning, but I was wondering what was going on. I suspect it's related to some code you added to the "view.py", but I can't quite make out what it's doing, or why.

=FEW=Revolves
Posted

 

1 hour ago, 616Sqn_SpocksOddSocks said:

I've updated the stats on OhMyDog. There was one minor change to "models.py" to account for a naming issue with the Handley-Page. I've made the change on my version so as not to get bogged down with changes as they come.

 

However, "waitress.cmd" does currently seem to be logging an error message related to the mod: "[BundleMod]: WARNING: Could not find ammo_breakdowns translation for tank sortie. Is [mod_ratings_by_type] disabled? " This does not seem to be stopping the stats page functioning, but I was wondering what was going on. I suspect it's related to some code you added to the "view.py", but I can't quite make out what it's doing, or why.

 

That means you're using the stats mod bundle here 

but haven't configured mod_ratings_by_type (i.e. il2 stats enhancements) to be on. It probably will only cause some visual bugs if you don't turn it on. FYI I've published an update to the bundle for the latest version, pretty much what you did (altho I did not add the other missing objects)

 

Not sure if you're only trying to use a subset of the mods in the bundle, or if it's a relic of an old install of the bundle.

 

616Sqn_SpocksOddSocks
Posted

I've never downloaded the bundle, only the tank mod. Code from the other mods has ended up in the tank mod once before though. That's what I suspect has happened here.

Posted
12 hours ago, 616Sqn_SpocksOddSocks said:

I've never downloaded the bundle, only the tank mod. Code from the other mods has ended up in the tank mod once before though. That's what I suspect has happened here.

Thanks for pointing this out, when i update tank mod to new stats ill check files for this error, i also think maybe i left part of bundle code in clean tank mod files.

But as its now i think it should not make any problems like you posted, its just info and dont have any effect on stats. 

Posted

I updated link on first post, full tank stats mod is now compatable with new 1.2.61 version of IL2 stats.


I also removed "mod_ratings_by_type" from views.py that i left there by mistake, its part of =FEW=Revolves bundle mod you can download his mod if you like aditional info for tanks ammo type hits he added.


Changes from previous tank mod version are only to objects.csv, models.py and views.py files.

If you dont wont to download whole tank mod again: here you can get only this 3 files, and copy/past them in your IL2 stats:

https://www.mediafire.com/file/5biimru3oj35kxe/chanes3.6.zip/file

  • Thanks 1
  • Upvote 1
Posted

Updated for 1.2.64 version of stats

  • Thanks 1
Posted


Link on first post is updated, full tank mod is now compatable with new 1.2.68 version of IL2 stats.
Changes are to objects.csv and tank_payloads.py files, and two pictures for new Churchill IV tank, here you can get only this 4 files, and copy/past them in if you dont wont to download whole tank mod again:
https://www.mediafire.com/file/60j4m2kb68jar6v/changes3.7.zip/file

  • Like 1
  • Thanks 1
Posted

Updated link on first post with full mod for 1.2.69. Only new files are objects.csv and tank_payloads.py files, two pictures for new Stug III tank. Here you can get only this 4 files, copy/past them in and run update.cmd if you have previous version and dont wont to download whole tank mod: https://www.mediafire.com/file/0d2j65omfne32he/changes3.8.zip/file

  • Upvote 2
Posted

I updated link on first post, full tank mod is now compatable with new 1.2.71 version of IL2 stats.
Changes are to objects.csv, report.py and base.html files. 

Posted

I updated link on first post, with edits fo rtb sorties for tanks.

 

How it works is, if tank player comes back to base (default is set to 2km from it, can be changed in report.py), and bail out, its sortie will be turned to rtb. 
Enemy who hit player will not get kill (if damage is below 75%, can be changed in report.py), and player tank will not be lost.


This is just aditional option, gives player option to get aditional bonus like it works for airplanes (bonus for RTB is set by default to +50% can be changed in stats_whore.py). Other tank sorties work as before. 

 

Here is just changed files if you dont wont to re-download whole mod: 

https://www.mediafire.com/file/hjz4rhhhzwgcrhs/changes3.9.zip/file

 

Changes are to: 
report.py, stats_whore.py, tankman_sortie.html, tankman_sortie_log.html, tankman_sorties.html, tankman_vlife.html, tankman_vlifes.html files and new tank rtb icons (run collectstatic.cmd or update.cmd to get then to show up after placed in folder). 

1PL-Husar-1Esk
Posted (edited)

@CountZero

Does your modification  :

1) grant a kill to opponent who damage you plane like 0.2 %  when you ditch or collide with a teammate after long period of time like 20 minutes or finish mission in flight (does not land before mission time end)?

2) grant a kill to the player who where killed as pilot and then  switched to gunner and scored a kill as a gunner     ?

Edited by 1PL-Husar-1Esk
Posted
4 hours ago, 1PL-Husar-1Esk said:

@CountZero

Does your modification  :

1) grant a kill to opponent who damage you plane like 0.2 %  when you ditch or collide with a teammate after long period of time like 20 minutes or finish mission in flight (does not land before mission time end)?

2) grant a kill to the player who where killed as pilot and then  switched to gunner and scored a kill as a gunner     ?

This is modification for tanks, dont tuch air stuff.

Other mod for disconections take in count time of damage and amount of damage, but if i remenber with that disco mod any damage counts to give enemy kill if enemy hit airplane in 2min (set by default server can change that time to what ever). I think by default damage abow 1% is taken into giving kills. But even with disco mod if time of damage is set to below 20min it would not give kill if airplane that got damage ends flight or mission ends.

 

i never tested what happends when player gets killed and then he switches to gunner is that even posible in game?, i would think stats would just consider this as sortie where player got killed.

 

I would have to test to see what happends

Posted

updated first post link for 1.2.72 version of mod, change was just to objects.csv file, here is just that file edited:

src.zip

  • 1 year later...
Posted

@CountZer0

We've had incidents where kills are not credited. It looks like during a single tank sortie, you can score only one kill in the stats against the same single player. Could you look into this to verify/debunk this?

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...