Jump to content


[0.9.5] ClanMod


  • Please log in to reply
81 replies to this topic

BONNe1704 #1 Posted May 04 2014 - 16:54

    Corporal

  • Players
  • 0 battles
  • 29
  • Member since:
    05-31-2012

This is just a simple python script mod for clans who shows online member count and shows clanwars.

 

shot_009.jpg                                 shot_011.jpg

What this mod do:

  • checks current server (need to work in 'eu', 'ru', 'us', 'kr' and 'asia', but tested only in 'eu;)
  • checks user language (just need to add it in languages/)
  • shows online clan members
  • export online members to file
    • export on button
    • export automatically
  • shows clan wars

 

For ClanWars message you can use these macros:

  • {{map}} - battle map
  • {{time}} - battle time
  • {{type}} - battle type (for province, encounter or landing)
  • {{landing}} - province name
  • {{income}} - province income
  • {{owner}} - province owner
  • {{icon}} - province owner icon
  • {{color}} - province owner clan color

 

For ClanMod message you can use these macros:

  • {{online}} - online member count
  • {{members}} - clan member count

 

Mod configuration files are located in: res_mods/configs/clanMod/ folder

 

Also in clanwars message you can use the same font codes as in any session statistics messages. So you can add separator like line in YasenKrasen session statistics mod just in clanMod.lang edit "spacer": "<img src='img://gui/maps/icons/library/YasenKrasen/Line.png' width='225' height='7' align='baseline' vspace='4'>".

shot_012.jpg

 

Possible Bugs (and solution):

  • If with Color Messages and Session Stats mod ClanMod do not show anything, then rename 0.9.2/scripts/client/mods/clanMod.pyc to zclanMod.pyc and all will work.
  • If mod do not update clanwar time (sometimes it can happen) update manually with F11 (by def)
  • If province data is incorrect, then just delete it (configs/clanMod/clanMod.prov)
  • WG update battle list only one time in hour ~X:05 (after end of turn)   img.png

 

To Do:

  • Clan Wars participant and waiting list (for own clan)
  • Store Clan War history
  • suggestions?

 

New update:
  • Updated to version 0.9.5
  • Add config option for saving clan icons into XVM folder
  • Clan icons now will be saved

 

Download here:     Attached File  0.9.5.8.zip

 

Changelog: 

 

Supported languages: RS, RU, TR, PL, PT, RO, IT, LV, HU, FR, FI, ES, EN, DE, CS

 

Thanks for translation and for nice message format :)


Edited by BONNe1704, Jan 14 2015 - 12:13.


BONNe1704 #2 Posted May 04 2014 - 16:58

    Corporal

  • Players
  • 0 battles
  • 29
  • Member since:
    05-31-2012

To submit an error please:

  • if possible, use latest version (Check EU forum
  • clear or delete python.log in worldoftanks install folder
  • submit python.log as attachment or upload it somewhere so i can get access to it.

Edited by BONNe1704, May 04 2014 - 16:59.


Brother_Noodle_PizzaTime #3 Posted May 04 2014 - 17:13

    Major

  • Players
  • 18173 battles
  • 2,405
  • Member since:
    12-22-2011
Seems like a useful mod. too complicated for me to set up, ill find multiple way to screw it up. Maybe if I make it to FC or DC I will give it a shot. +1

BONNe1704 #4 Posted May 04 2014 - 17:19

    Corporal

  • Players
  • 0 battles
  • 29
  • Member since:
    05-31-2012
Ok, for now there is appi error. I forgot to change appi ID for servers, so in this verion not work. Sorry for that. I will update fix ASAP

_Obsidious #5 Posted May 04 2014 - 17:20

    Sergeant

  • Players
  • 4326 battles
  • 142
  • Member since:
    06-16-2013

what now????

 



barbaroja_Ar #6 Posted May 04 2014 - 17:29

    Corporal

  • Players
  • 29401 battles
  • 72
  • Member since:
    05-25-2012

Here you have the pyton.log running the mod alone

 

 

/------------------------------------------------------------------------------------------------------------------------\
   BigWorld Release Client (compiled at 11:02:44 Apr 11 2014) starting on Sun May 04 13:11:33 2014

Checking ./res_mods/0.9.0: mods found
LoadMod: clanMod
[NOTE] (mods/clanMod.py, 51): [clanMod] Config Loaded
[NOTE] (mods/clanMod.py, 71): [clanMod] Province file created
[NOTE] (scripts/client/post_processing/__init__.py, 275): The quality = 4 was selected.
[NOTE] (scripts/client/post_processing/__init__.py, 275): The quality = 3 was selected.
[WARNING] (scripts/client/account_helpers/CustomFilesCache.py, 33): Method "__run_read" takes too much time 0.286000013351
[SPACE] Loading space: spaces/hangar_premium_v2
[WARNING] (scripts/client/account_helpers/CustomFilesCache.py, 33): Method "__run_read" takes too much time 0.43799996376
[NOTE] (mods/clanMod.py, 806): [clanMod]  ('http://api.worldofta...=1&language=en',)
[EXCEPTION] (mods/clanMod.py, 471):
Traceback (most recent call last):
  File "mods/clanMod.py", line 469, in __hkKeyEvent
  File "mods/clanMod.py", line 591, in run
  File "mods/clanMod.py", line 763, in updatePorvinces
  File "mods/clanMod.py", line 809, in __ask_porvince_data
  File "scripts/common/Lib/urllib2.py", line 126, in urlopen
  File "scripts/common/Lib/urllib2.py", line 400, in open
  File "scripts/common/Lib/urllib2.py", line 418, in _open
  File "scripts/common/Lib/urllib2.py", line 378, in _call_chain
  File "scripts/common/Lib/urllib2.py", line 1207, in http_open
  File "scripts/common/Lib/urllib2.py", line 1177, in do_open
URLError: <urlopen error [Errno 11004] getaddrinfo failed>
[NOTE] (mods/clanMod.py, 806): [clanMod]  ('http://api.worldofta...=1&language=en',)
[EXCEPTION] (scripts/common/Event.py, 34):
Traceback (most recent call last):
  File "scripts/common/Event.py", line 32, in __call__
  File "scripts/client/gui/Scaleform/framework/managers/containers.py", line 475, in __loader_onViewLoaded
  File "scripts/client/gui/Scaleform/framework/entities/DisposableEntity.py", line 17, in create
  File "mods/clanMod.py", line 839, in new_list_populate
  File "mods/clanMod.py", line 591, in run
  File "mods/clanMod.py", line 763, in updatePorvinces
  File "mods/clanMod.py", line 809, in __ask_porvince_data
  File "scripts/common/Lib/urllib2.py", line 126, in urlopen
  File "scripts/common/Lib/urllib2.py", line 400, in open
  File "scripts/common/Lib/urllib2.py", line 418, in _open
  File "scripts/common/Lib/urllib2.py", line 378, in _call_chain
  File "scripts/common/Lib/urllib2.py", line 1207, in http_open
  File "scripts/common/Lib/urllib2.py", line 1177, in do_open
URLError: <urlopen error [Errno 11004] getaddrinfo failed>
[NOTE] (mods/clanMod.py, 806): [clanMod]  ('http://api.worldofta...=1&language=en',)
[EXCEPTION] (mods/clanMod.py, 471):
Traceback (most recent call last):
  File "mods/clanMod.py", line 469, in __hkKeyEvent
  File "mods/clanMod.py", line 591, in run
  File "mods/clanMod.py", line 763, in updatePorvinces
  File "mods/clanMod.py", line 809, in __ask_porvince_data
  File "scripts/common/Lib/urllib2.py", line 126, in urlopen
  File "scripts/common/Lib/urllib2.py", line 400, in open
  File "scripts/common/Lib/urllib2.py", line 418, in _open
  File "scripts/common/Lib/urllib2.py", line 378, in _call_chain
  File "scripts/common/Lib/urllib2.py", line 1207, in http_open
  File "scripts/common/Lib/urllib2.py", line 1177, in do_open
URLError: <urlopen error [Errno 11004] getaddrinfo failed>
PostProcessing.Phases.fini()
[WARNING] (scripts/client/account_helpers/CustomFilesCache.py, 33): Method "close" takes too much time 0.200999975204

\------------------------------------------------------------------------------------------------------------------------/

 

Attached Files

  • Attached File   python - .txt   4K


BONNe1704 #7 Posted May 05 2014 - 00:38

    Corporal

  • Players
  • 0 battles
  • 29
  • Member since:
    05-31-2012

New update:

  • Add button to reload config and lang file.
  • Seperate language files.
  • Recreate update notification.
  • Add macros {{owner}}
  • Fixes api error.
  • Fixes battle time on landings.

 

About owner clan icon. For now i cannot find how to load icon from WG website, so not add jet.

 

Download here: Attached File   0.9.0.5.zip   82.87K

 


barbaroja_Ar #8 Posted May 07 2014 - 02:22

    Corporal

  • Players
  • 29401 battles
  • 72
  • Member since:
    05-25-2012

Hi, tested 0.9.0.5.2 from EU server.

Its not showing NA CW battles.

Run WoT with just this mod and added the python.log

 

Thanks foe your work

Attached Files

  • Attached File   python.txt   4.64K


BONNe1704 #9 Posted May 07 2014 - 07:58

    Corporal

  • Players
  • 0 battles
  • 29
  • Member since:
    05-31-2012

View Postbarbaroja_Ar, on May 07 2014 - 04:22, said:

Hi, tested 0.9.0.5.2 from EU server.

Its not showing NA CW battles.

Run WoT with just this mod and added the python.log

 

Thanks foe your work

Try this:  Attached File   0.9.0.5.2-fix.zip   82.79K

 



BigNaturals #10 Posted May 07 2014 - 14:34

    Major

  • Beta Testers
  • 55068 battles
  • 2,513
  • [MAHOU] MAHOU
  • Member since:
    10-03-2011
did you fix it from breaking stat mods?  cause it breaks yasen and pmod stats 

BONNe1704 #11 Posted May 07 2014 - 14:58

    Corporal

  • Players
  • 0 battles
  • 29
  • Member since:
    05-31-2012

View PostCBARoughneck, on May 07 2014 - 16:34, said:

did you fix it from breaking stat mods?  cause it breaks yasen and pmod stats 

How breaks?

 

For NA it was possible, because I use wrong API code. Then on error it breaks all Notification log.

But if mod starts correctly, all need to be fine. I use yasen and havn't got any problems



barbaroja_Ar #12 Posted May 07 2014 - 16:05

    Corporal

  • Players
  • 29401 battles
  • 72
  • Member since:
    05-25-2012

Hi, tested 0.9.0,5.2-fix. Tested without other mods

Some problems:

  • Takes a huge amount of time and freezes WoT, on load or when updating (F11)
  • Even with battles scheduled, it does not show them
  • It DO create the clanMod.prov
  • It DO create the clanMod.xml
  • In clanMod.xml there are the scheduled battles
  • They dont show in the notification area

 

 

Attached Files

  • Attached File   python.txt   6.07K
  • Attached File   clanMod.cfg.txt   716bytes
  • Attached File   clanMod.prov.txt   45.89K
  • Attached File   clanMod.xml.txt   582bytes


BONNe1704 #13 Posted May 07 2014 - 16:48

    Corporal

  • Players
  • 0 battles
  • 29
  • Member since:
    05-31-2012

It need to create prov and xml. But looks like there are problem with datetime format. 

 

I will try to fix it ASAP



BONNe1704 #14 Posted May 07 2014 - 17:11

    Corporal

  • Players
  • 0 battles
  • 29
  • Member since:
    05-31-2012

View Postbarbaroja_Ar, on May 07 2014 - 18:05, said:

Hi, tested 0.9.0,5.2-fix. Tested without other mods

Some problems:

  • Takes a huge amount of time and freezes WoT, on load or when updating (F11)
  • Even with battles scheduled, it does not show them
  • It DO create the clanMod.prov
  • It DO create the clanMod.xml
  • In clanMod.xml there are the scheduled battles
  • They dont show in the notification area

 

 

 

Hope this will fix all problems:Attached File   0.9.0.5.2-fix2.zip   82.81K

 


Edited by BONNe1704, May 07 2014 - 17:14.


barbaroja_Ar #15 Posted May 07 2014 - 17:49

    Corporal

  • Players
  • 29401 battles
  • 72
  • Member since:
    05-25-2012

Hi, still not show

clanMod.jpg

Attached Files

  • Attached File   python.txt   115.39K
  • Attached File   clanMod.cfg.txt   716bytes
  • Attached File   clanMod.prov.txt   45.89K
  • Attached File   clanMod.xml.txt   582bytes


BONNe1704 #16 Posted May 07 2014 - 18:19

    Corporal

  • Players
  • 0 battles
  • 29
  • Member since:
    05-31-2012

No errors so just try to press ClanWars button

If shows no clanwars, then just press F11 and open Notification log again. All need to work now



DaBloodyBaron #17 Posted May 22 2014 - 16:55

    Corporal

  • Players
  • 58897 battles
  • 26
  • [RDDTV] RDDTV
  • Member since:
    09-17-2011
Lacking 50 battles on EU server, so must post here. I love this mod. Thank you for continuing Some0ne's work. I have gotten the online players file to create on F12. However, no buttons showing in notification dialog and no CW info at all (on NA server, with premium acct.) Also, subsequent F12 saves create new timestamped files, but are using cached list of members online, even when actual members online (from clan dialog window) shows different members. (So clanMod is not actually refreshing from the current BG stream, but reuses what it retrieves only from initial/1st call). Exit game client and re-enter, next F12 save picks up correct list, but then continues to export same list as before. As for CW info, Python log shows province file created success, but I cannot locate it with a manual search of the file system. (Perhaps that file gets deleted on exit, or is not actually being created.) Will have to wait until I get home to retrieve the Python.log if needed.

DaBloodyBaron #18 Posted May 22 2014 - 17:49

    Corporal

  • Players
  • 58897 battles
  • 26
  • [RDDTV] RDDTV
  • Member since:
    09-17-2011

Possible problem for NA users. Python.log shows call to: http://api.worldoftanks.na/wot/globalwar/provinces/?application_id=2ebc4561ec55d12e7efd2bcb355bcb13&map_id=1&language=en'

 

But it should be: http://api.worldoftanks.com/wot/globalwar/provinces/?application_id=2ebc4561ec55d12e7efd2bcb355bcb13&map_id=1&language=en'



BONNe1704 #19 Posted May 23 2014 - 07:30

    Corporal

  • Players
  • 0 battles
  • 29
  • Member since:
    05-31-2012

View PostDaBloodyBaron, on May 22 2014 - 19:49, said:

Possible problem for NA users. Python.log shows call to: http://api.worldoftanks.na/wot/globalwar/provinces/?application_id=2ebc4561ec55d12e7efd2bcb355bcb13&map_id=1&language=en'

 

But it should be: http://api.worldoftanks.com/wot/globalwar/provinces/?application_id=2ebc4561ec55d12e7efd2bcb355bcb13&map_id=1&language=en'

Use  0.9.0.5.2-fix2.zip   82.81K

 

This is fix for NA.

 

And also I am monitoring this topics also, so if someone put error there, I will check it also :)

 



SheenII #20 Posted Jul 07 2014 - 01:24

    Staff sergeant

  • Players
  • 19359 battles
  • 274
  • [4HOTA] 4HOTA
  • Member since:
    10-09-2012
Here is an odd problem. I download it and put it in the 9.1 file. Nothing happens. Soooo I take it out of it's "res_mods" file and out of it's 9.1 file and put the config file and scripts file in the games 9.1 file. Then it seems to work until it is time to update for clan wars. Then I don't see it OR my xvm messenger. What did I do? Or how can I fix? that might be the real question.




1 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users