Jump to content


[0.9.X] clanMod

clanMod clanWars clan

  • Please log in to reply
195 replies to this topic

BONNe_LV #1 Posted 30 April 2014 - 12:47 PM

    Warrant Officer

  • Player
  • 38321 battles
  • 818
  • [HOWI] HOWI
  • Member since:
    04-26-2012

*
POPULAR

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
  • show planned stronghold battles

 

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
  • {{opponent}} - battle opponent
  • {{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.langedit "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):

  • For now WG API that returns clanwars battles do not return planed battles, just battles, where the opponent is known.

 

To Do:

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

 

Has an issue or found bugs? Please post issues to Bitbucket.

 

New update:

  • Hopefully fix issues with JSON data loading.
  • Possible fix for crash in timer, when data not received.

Download link: Attached File0.9.10.14.zip

 
Changelog: 

Attached Files

  • Attached File   img.png   30.46K

Edited by BONNe1704, 29 September 2015 - 09:29 AM.


KawaGreen #2 Posted 30 April 2014 - 12:52 PM

    Lieutenant

  • Clan Diplomat
  • 13307 battles
  • 1,931
  • [PIZZA] PIZZA
  • Member since:
    04-30-2011

Maybe go like this:

 

 "message": [
                    "<tab>Map:<tab>{{map}}",
                    "<tab>Time:<tab>{{time}}",
                    "<tab>Type:<tab>{{type}}"

                    "<tab>--------------<tab>"
                ]

 

To increase readability?



BONNe_LV #3 Posted 30 April 2014 - 01:18 PM

    Warrant Officer

  • Player
  • 38321 battles
  • 818
  • [HOWI] HOWI
  • Member since:
    04-26-2012

View PostKawaGreen, on 30 April 2014 - 02:52 PM, said:

Maybe go like this:

 

 "message": [
                    "<tab>Map:<tab>{{map}}",
                    "<tab>Time:<tab>{{time}}",
                    "<tab>Type:<tab>{{type}}"

                    "<tab>--------------<tab>"
                ]

 

To increase readability?

 

You can use spacer to add that. Im just too lazy to write that in default config. (spacer are used to display only when needed. If use after each message, then also with one CW it will be displayed.)



DjVirusPL #4 Posted 30 April 2014 - 01:24 PM

    Brigadier

  • Beta Tester
  • 17542 battles
  • 4,497
  • Member since:
    02-03-2013

POLISH TRANSLATION BY ME:

 

        }
    },
    "pl": {
        "config": {
            "load_error": "Konfiguracja nie znaleziona. Używam ustawień standardowych!",
            "server_error": "Serwer nie obsługiwany."
        },
        "language": {
            "error": "Brak języka w clanMod.lang. Używam en!"
        },
        "clanmod": {
            "online": "Online: ",
            "button": "Wojny Klanów",
            "print_done": "Użytkownicy będący online, zapisani do pliku:",
            "print_error": "Błąd podczas zapisywania graczy do pliku. Sprawdź python.log!"
        },
        "clanwars": {
            "message": {
                "title": "Wojny Klanów:",
                "message": [
                    "<tab>Mapa:<tab>{{map}}",
                    "<tab>Godzina:<tab>{{time}}",
                    "<tab>Typ:<tab>{{type}}"
                ],
                "spacer": "",
                "for_province": "O Prowincję",
                "meeting_engagement": "Bitwa Spotkaniowa",
                "landing": "Lądowanie",
                "approximately": "~",
                "no_clanwars": "Brak Wojen Klanów"
            },
            "clanID_neterror": "Błąd podczas pobierania ClanID. Prawdopodobny błąd api lub sieci.",
            "clanwar_neterror": "Błąd podczas odczytu danych z Wojen Klanów. Prawdopodobny błąd api lub sieci.",
            "clanwar_saveerror": "Błąd podczas zapisywania Wojen Klanów do pliku. Sprawdź python.log!",
            "clanwar_data_saved": "Dane Wojen Klanów zaktualizowane!",
            "button": "Wojny Klanów"
        }
    },

 

 

 

Just one question. "TIME" is a Hour of the battle or how many time left to to battle? I'm translated as a HOUR but if this is a "TIME TO" i need to change it


Edited by DjVirusPL, 30 April 2014 - 02:23 PM.


BONNe_LV #5 Posted 30 April 2014 - 01:30 PM

    Warrant Officer

  • Player
  • 38321 battles
  • 818
  • [HOWI] HOWI
  • Member since:
    04-26-2012

View PostDjVirusPL, on 30 April 2014 - 03:24 PM, said:

Just one question. "TIME" is a Hour of the battle or how many time left to to battle? I'm translated as a HOUR but if this is a "TIME TO" i need to change it

 

Hour when battle will be.



DjVirusPL #6 Posted 30 April 2014 - 02:22 PM

    Brigadier

  • Beta Tester
  • 17542 battles
  • 4,497
  • Member since:
    02-03-2013

So my translation is ok. U Can add it to mod if U want.

 

Ps. This mod shows on witch server will be clanwar ? (EU1 or EU2)?


Edited by DjVirusPL, 30 April 2014 - 02:26 PM.


Crabtr33 #7 Posted 30 April 2014 - 05:26 PM

    Major General

  • Player
  • 20448 battles
  • 5,834
  • [MEOOW] MEOOW
  • Member since:
    05-29-2011

Hi Bonne,

 

this is really great mod, thanks a lot.

 

I made Czech translation for your mod and few format changes for all languages. It looks much better ;). If do you want, use it in your mod ;).

 

9.0_ClanMod_v0.2_formated.zip

 


Edited by Crabtr33, 30 April 2014 - 05:27 PM.


BONNe_LV #8 Posted 30 April 2014 - 06:31 PM

    Warrant Officer

  • Player
  • 38321 battles
  • 818
  • [HOWI] HOWI
  • Member since:
    04-26-2012

View PostDjVirusPL, on 30 April 2014 - 04:22 PM, said:

So my translation is ok. U Can add it to mod if U want.

 

Ps. This mod shows on witch server will be clanwar ? (EU1 or EU2)?

For now it is simple. All is on EU2 :D

But in future ... possible to add also that.

 

View PostCrabtr33, on 30 April 2014 - 07:26 PM, said:

Hi Bonne,

 

this is really great mod, thanks a lot.

 

9.0_ClanMod_v0.2_formated.zip

 

 

Thanks a lot :)


Edited by BONNe1704, 30 April 2014 - 06:32 PM.


DjVirusPL #9 Posted 30 April 2014 - 07:38 PM

    Brigadier

  • Beta Tester
  • 17542 battles
  • 4,497
  • Member since:
    02-03-2013

Cabtr33 Please change line number 139 to:

            "clanID_neterror": "<font face='$FieldFont' size='13'>Błąd podczas pobierania ClanID. Prawdopodobny błąd api lub sieci.</font>",

 

My mistake in translation.



N3w2012 #10 Posted 30 April 2014 - 07:52 PM

    Staff Sergeant

  • Player
  • 22705 battles
  • 301
  • [1-AUS] 1-AUS
  • Member since:
    04-14-2012

Hello, 
try a french translation below: 
(you can add it to your mod?)

 

{
    "fr": {
        "config": {
            "load_error": "<font face='$FieldFont' size='13'>réglages par défaut,fichier config introuvable!</font>",
            "server_error": "<font face='$FieldFont' size='13'>Serveur non pris en charge.</font>"
        },
        "language": {
            "error": "<font face='$FieldFont' size='13'>Langue absente dans le fichier clanMod.lang. Anglais utilisé par défaut!</font>"
        },
        "clanmod": {
            "online": "<font face='$FieldFont' size='13' color='#BFE9FF'><b>En ligne: </b></font>",
            "button": "Clan Mod",
            "print_done": "<font face='$FieldFont' size='13'>Membres en ligne enregistrés dans le fichier: </font>\n",
            "print_error": "<font face='$FieldFont' size='13'>Erreur sur l'enregistrement membres dans le fichier python.log, vérifiez le!</font>"
        },
        "clanwars": {
            "message": {
                "title": "<font face='$FieldFont' size='13' color='#BFE9FF'><b>Liste des clanWars:</b></font>\n",
                "message": [
                    "<textformat tabstops='[10,40]'><font face='$FieldFont' size='13' color='#BFE9FF'><b>Heure:<tab><tab>{{time}}</b></font></textformat>",
                    "<textformat tabstops='[10,40]'><font face='$FieldFont' size='13'>Carte:<tab><tab>{{map}}</font></textformat>",
                    "<textformat tabstops='[10,40]'><font face='$FieldFont' size='13'>De type:<tab><tab>{{type}}</font></textformat>\n"
                ],
                "spacer": "<textformat tabstops='[10,40]'><font face='$FieldFont' size='13' color='#BFE9FF'><b>------------------------------</b></font></textformat>\n",
                "for_province": "Bataille pour la province",
                "meeting_engagement": "Rencontre",
                "landing": "débarquement",
                "approximately": "~",
                "no_clanwars": "Le clan n'a pas de bataille programmée"
            },
            "clanID_neterror": "<font face='$FieldFont' size='13'>Erreur d'obtention ID clan. API possible ou des problèmes de réseau.</font>",
            "clanwar_neterror": "<font face='$FieldFont' size='13'>Erreur de récupération des données. API possible ou des problèmes de réseau.</font>",
            "clanwar_saveerror": "<font face='$FieldFont' size='13'>Erreur de sauvegarde des données dans le fichier python.log, vérifiez le!</font>",
            "clanwar_data_saved": "<font face='$FieldFont' size='13'>La liste est mise à jour!</font>",
            "button": "Clan Wars"
        }
    



DjVirusPL #11 Posted 30 April 2014 - 08:23 PM

    Brigadier

  • Beta Tester
  • 17542 battles
  • 4,497
  • Member since:
    02-03-2013
What a great cooperation ;)

pe3pa #12 Posted 30 April 2014 - 11:28 PM

    Lieutenant

  • Beta Tester
  • 53190 battles
  • 1,561
  • [JUST] JUST
  • Member since:
    01-08-2011
finally. dl'ed, installed and bookmarked.

sabran #13 Posted 02 May 2014 - 11:27 AM

    Lieutenant

  • Member
  • 60769 battles
  • 1,801
  • [NEURO] NEURO
  • Member since:
    07-14-2011

Spanish translation:

 

        "config": {
            "load_error": "Configuracion no encontrada. !Usando parametros por defecto¡",
            "server_error": "Servidor no soportado."
        },
        "language": {
            "error": "Idioma no encontrado en el archivo clanmod.lang. ¡Se usara el ingles!"
        },
        "clanmod": {
            "online": "Online: ",
            "button": "Clan Mod",
            "print_done": "Miembros conectados salvados en fichero:",
            "print_error": "Error salvando los miembros conectados a fichero. Revisa python.log!"
        },
        "clanwars": {
            "message": {
                "title": "Lista de ClanWar:",
                "message": [
                    "<tab>Map:<tab>{{map}}",
                    "<tab>Time:<tab>{{time}}",
                    "<tab>Type:<tab>{{type}}"
                ],
                "spacer": "",
                "for_province": "Por provincia",
                "meeting_engagement": "Encuentro",
                "landing": "Desembarco",
                "approximately": "~",
                "no_clanwars": "Sin ClanWars"
            },
            "clanID_neterror": "Error obteniendo ClanID. Posible problema de api o network",
            "clanwar_neterror": "Error obteniendo datos de ClanWar. Posible problema de api o network",
            "clanwar_saveerror": "Error mientras se salvavan los datos de clanwar a fichero. Revisa python.log!",
            "clanwar_data_saved": "¡Datos de ClanWar actualizados!",
            "button": "Clan Wars"
        }



DareTryMe #14 Posted 02 May 2014 - 02:50 PM

    Lance-corporal

  • Player
  • 24145 battles
  • 53
  • [FUGLY] FUGLY
  • Member since:
    04-26-2013

Does this appear when the CW games are on, or can you actually see the addon without the games upcoming?

I installed it and i cant find anything ingame yet. or i need glasses :P

 

Btw, tnx for the mod, its one that i guess alot ppl want!



BONNe_LV #15 Posted 02 May 2014 - 03:31 PM

    Warrant Officer

  • Player
  • 38321 battles
  • 818
  • [HOWI] HOWI
  • Member since:
    04-26-2012

View PostDareTryMe, on 02 May 2014 - 04:50 PM, said:

Does this appear when the CW games are on, or can you actually see the addon without the games upcoming?

I installed it and i cant find anything ingame yet. or i need glasses :P

 

Btw, tnx for the mod, its one that i guess alot ppl want!

 

Messages are in notification list.

For default all are to turn on, but in config you can also turn off clanwars Message. "clanwar_update": { "enabled" : "false", ..}

 

If ClanWars message is turn on, then in notification list under "Online players" will be button "ClanWars". When you click it, it will display all clanwars, what is already accepted on global map (red chips). It need to be the same battles as in Battles schedule.

 



DareTryMe #16 Posted 02 May 2014 - 04:07 PM

    Lance-corporal

  • Player
  • 24145 battles
  • 53
  • [FUGLY] FUGLY
  • Member since:
    04-26-2013

Ok, does it cooperate with sessionstats?

I checked the config and its on there, but still nothing in the notification log.

ofc, i have restarted the game also.



N3w2012 #17 Posted 02 May 2014 - 04:15 PM

    Staff Sergeant

  • Player
  • 22705 battles
  • 301
  • [1-AUS] 1-AUS
  • Member since:
    04-14-2012

View PostDareTryMe, on 02 May 2014 - 04:07 PM, said:

Ok, does it cooperate with sessionstats?

I checked the config and its on there, but still nothing in the notification log.

ofc, i have restarted the game also.

 

 

same problem, I do not see anything in the notification channel. 

Thank you to Clarify the functioning of the mod 

( sorry, this is a translation with google )

 

Edit :

I tried installing this mod alone, but the result is the same: nothing is displayed in the notification channel.

(google translate )

 


Edited by N3w2012, 02 May 2014 - 04:20 PM.


BONNe_LV #18 Posted 02 May 2014 - 04:34 PM

    Warrant Officer

  • Player
  • 38321 battles
  • 818
  • [HOWI] HOWI
  • Member since:
    04-26-2012

View PostDareTryMe, on 02 May 2014 - 06:07 PM, said:

Ok, does it cooperate with sessionstats?

I checked the config and its on there, but still nothing in the notification log.

ofc, i have restarted the game also.

 

View PostN3w2012, on 02 May 2014 - 06:15 PM, said:

 

 

 

 

 Can someone put there python.log?

it is in worldoftanks folder, and you can add it as attachment in forum

 

 

 

 

 



DareTryMe #19 Posted 02 May 2014 - 05:06 PM

    Lance-corporal

  • Player
  • 24145 battles
  • 53
  • [FUGLY] FUGLY
  • Member since:
    04-26-2013
i found the file, but i cant figure out how to attach the file, i guess its the "my media" but i cant get it in there.

BONNe_LV #20 Posted 02 May 2014 - 05:10 PM

    Warrant Officer

  • Player
  • 38321 battles
  • 818
  • [HOWI] HOWI
  • Member since:
    04-26-2012

View PostDareTryMe, on 02 May 2014 - 07:06 PM, said:

i found the file, but i cant figure out how to attach the file, i guess its the "my media" but i cant get it in there.

When edit or create new post there are button More Reply Option

 

Then it will open new window with more replay futures. And in bottom there are Attrach Files. Then choose file, Attrach that and Post it in replay. Then add reply and all done.


Edited by BONNe1704, 02 May 2014 - 05:10 PM.






Also tagged with clanMod, clanWars, clan

1 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users