RedAlert

Senior In-Game Staff
Tribal Wars Team
Senior
Team
Script Moderator
Reaction score
608
Author
RedAlert
Contributors
DaWolf85
Quickbar Entry
javascript:var NOBLE_GAP=100;var FORMAT='%unit% %player% %sent%';$.getScript('https://twscripts.dev/scripts/incomingsOverview.js');
Public?
Public
Incomings Overview

Approved: t14466468

incomings-overview.png

This is how the script looks in action:


User Variables:
NOBLE_GAP defines the attack gap in milliseconds. From world to world this changes and there is no automatic way to get this from the world config (a call here for Inno devs to add such info somewhere, either on world config files or even better on game_data global object)
FORMAT defines the mass tagger format. Possible format variables that can be used are:

%unit% - type of unit sent, example Spy, LCav, etc
%sent% - time when attack was sent as calculated from the unit type, example Jan 13, 15:38
%duration% - duration in formatted time, example 0:09:02 (so 9 minutes and 2 seconds)
%distance% - how many fields away is the attacker from defender, example 1
%origin% - origin village info, example A001 (430|516) K54
%arrival% - time of arrival of incoming, example Jan 13, 15:56
%player% - attacking player, example RedAlert
%coords% - attacking village coordinate, example 430|516
%return% - shows the return time of the incoming, example Jan 13, 15:38
%destination% - destination village info, example A001 (430|516) K54 (posted this only for reference, DO NOT add this on the script format since it will break the script loading even though it is a valid tag)


Notes:
- When you click the Mass Tag Incomings button the incs screen will reload so you will have to re-run the script to continue doing whatever you where doing.

Feel free to suggest features, ideas and/or report any issues/bugs or let me know if you need any help with this script by replying on this thread.
 
Last edited:
Upvote 7

RedAlert

Senior In-Game Staff
Tribal Wars Team
Senior
Team
Script Moderator
Reaction score
608
Hello @The Quacks ,

I consider as possible nobles 2-3-4 or more consecutive incomings for as long as their millisecond difference is equal to the NOBLE_GAP.

So if you have 2 incomings which land for example at:
00:00:00:200
00:00:00:400
and NOBLE_GAP is 200 then these 2 incomings will be considered as possible nobles.

If the enemy player has sent some attack to land in between those 2 ... then the script will fail to highlight the incomings as possible nobles :(

Something that probably could be improved in the future.
 

The Quacks

Non-stop Poster
Reaction score
76
Alright, still pretty nice. You could probably sort all attacks and compare each attack with all incomings in the previous / following 1 second and it would still work without being too slow. Eager to use the script!
 

RedAlert

Senior In-Game Staff
Tribal Wars Team
Senior
Team
Script Moderator
Reaction score
608
Script is now updated.

Changelog:
- export incomings is now working as it should
- added mass tagging capability

Regarding mass tagging ...
It generates a tagging by default following this format: %unit% | %sent%
The format is player editable though :)
So if you don't like it ... you can use for example something like:
%unit% %player% %sent%

How can that be done?
JavaScript:
javascript:var NOBLE_GAP=100;var FORMAT='%unit% %player% %sent%';$.getScript('https://dl.dropbox.com/s/hsmkwy13l62y9ha/incomingsOverview.js');


Attention:
When you click the Mass Tag Incomings button the incs screen will reload so you will have to re-run the script to continue doing whatever you where doing.
 
Last edited:

RedAlert

Senior In-Game Staff
Tribal Wars Team
Senior
Team
Script Moderator
Reaction score
608
Script is updated.

Latest script version (v1.3.0) now includes a watchtower timer tool also.

Thanks to @DaWolf85 for the watchtower timer :)

I have actually integrated his script into Incomings Overview.
 

RedAlert

Senior In-Game Staff
Tribal Wars Team
Senior
Team
Script Moderator
Reaction score
608
Script is now updated to v1.5.0

One of the biggest changes is that now right from the incomings overview screen you can see the troops count for the villages under attack and also wall level so you can get a clearer picture of what's going on.
 
Reaction score
10
Translation for gr server

el_GR: {
'Incomings Overview': 'Επισκόπηση Εισερχόμενων Επιθέσεων',
Help: 'Βοήθεια',
'It seems like you have no incomings 😀': 'Δεν εχεις εισερχόμενες επιθέσεις',
'Total Incomings:': 'Συνολικές Εισερχόμενες:',
'Attacking Players:': 'Επιτιθέμενοι Παίκτες:',
'Total Attacking Players:': 'Σύνολο Επιτιθέμενων Παικτών:',
'Destination Villages Count:': 'Αριθμός Χωριών Προορισμού:',
'Origin Villages Count:': 'Αριθμός Χωριών Προέλευσης:',
'Destination Villages': 'Προορισμός Επιθέσεων',
'Origin Villages': 'Προέλευση Επιθέσεων',
'Export Incomings Data': 'Εξαγωγή Δεδομένων',
'Highlight Possible Nobles': 'Highlight Πιθανούς Άριστους',
Village: 'Χωριό',
Count: 'Νούμερο',
'Toggle Combinations': 'Συνδυαστική Προβολή',
'Possible nobles are highlighted!': 'Πιθανοί Αριστοι ειναι highlighted!',
'No possible nobles were found!': 'Δεν βρέθηκαν πιθανοί Αριστοι!',
Watchtower: 'Παρατηρητηριο',
'Attack:': 'Επίθεση:',
'Small Attack:': 'Μικρή Επίθεση:',
'Medium Attack:': 'Μεσαία Επίθεση:',
'Large Attack:': 'Μεγάλη Επίθεση:',
'Destination Villages List': 'Λίστα Χωριών Προορισμού',
'Destination Villages Coords': 'Συντεταγμένες Χωριών Προορισμού',
'Origin Villages List': 'Λίστα Χωριών Προέλευσης',
'Origin Villages Coords': 'Συντεταγμένες Χωριών Προέλευσης',
'Last updated at:': 'Τελευταία ενημερώθηκε στις:',
'Mass Tag Incomings': 'Μαζική Μετονομασία',
'Tagging incomings ...': 'Μετονομάζει Εισερχόμενες Επιθέσεις ...',
'Watchtower Timer': 'Χρόνος Παρατηρητηρίου',
'Watchtower Timer script initialized ...': 'Το script του Παρατηρητήριου άρχισε ...',
'Current world does not support watchtower!': 'Ο κόσμος δεν εχει παρατηρητήρια!',
'Watchtower Timer script is already initialized!': 'Το script του Παρατηρητηρίου τρέχει ηδη!',
'Create New Forum Thread': 'Φτιάξε Φορουμ Post',
'Create New Mail': 'Σύνταξε Μύνημα',
Overview: 'Επισκόπηση',
Map: 'Χάρτης',
Fetch: 'Πληροφορίες',
Flag: 'Σημαία',
'Village data could not be fetched!': 'Τα δεδομένα του χωριού δεν βρέθηκαν!',
Support: 'Υποστήριξη',
 

RedAlert

Senior In-Game Staff
Tribal Wars Team
Senior
Team
Script Moderator
Reaction score
608
mass tagging not working on enc4.

Hello @NoBodyCares ,
Could you specify this a bit more.

When you say not working, do you mean is not tagging at all ... or is tagging incorrectly?

Also could you provide me with the format of tagging you are using?

Thanks,
Red.
 

Pronouns are Imp

Well-Known Member
Reaction score
84

RedAlert

Senior In-Game Staff
Tribal Wars Team
Senior
Team
Script Moderator
Reaction score
608
@NoBodyCares ,
I just did a test using the same format you are using:

It tagged the incoming correctly for me.

I will keep investigating and see if I can replicate the issue. If I can't replicate the issue myself it's gonna be hard to fix this.

Thank you for reporting this.
 

RedAlert

Senior In-Game Staff
Tribal Wars Team
Senior
Team
Script Moderator
Reaction score
608
Script has been updated.

Latest script version is v1.6.0

On this last version I have added a new feature, OP Spotter.
Currently it only shows a graph like this: https://prnt.sc/101ebxy
Planning to extend this also with a table but a graph still gives the idea pretty well.
 

Deleted User - 848992791

Guest
pt_PT: {
'Incomings Overview': 'Vista Geral de a chegar',
Help: 'Ajuda',
'It seems like you have no incomings 😀': 'Sem ataques a chegar',
'Total Incomings:': 'Total de Ataques a chegar:',
'Attacking Players:': 'Jogadores a atacar:',
'Total Attacking Players:': 'Total de jogadores a atacar:',
'Destination Villages Count:': 'Aldeias Alvo:',
'Origin Villages Count:': 'Numero de Origem dos Ataques:',
'Destination Villages': 'Destino dos Ataques',
'Origin Villages': 'Origem dos Ataques',
'Export Incomings Data': 'Exportar Dados dos Ataques',
'Highlight Possible Nobles': 'Destacar Possíveis Nobres',
Village: 'Aldeia',
Count: 'Contagem',
'Toggle Combinations': 'Ativar Combinações',
'Possible nobles are highlighted!': 'Possiveis Nobres Destacados',
'No possible nobles were found!': 'Não foram encontrados nobres',
Watchtower: 'Torre de Vigia',
'Attack:': 'Ataque:',
'Small Attack:': 'Ataque pequeno:',
'Medium Attack:': 'Ataque Medio:',
'Large Attack:': 'Ataque Grande:',
'Destination Villages List': 'Lista de Aldeias de Destino',
'Destination Villages Coords': 'Coordenadas de aldeias de destino',
'Origin Villages List': 'Lista de Aldeias de Origem',
'Origin Villages Coords': 'Coordenadas de aldeias de origem',
'Last updated at:': 'Ultima Atualização:',
'Mass Tag Incomings': 'Renomear em Massa',
'Tagging incomings ...': 'A renomear ataques ...',
'Watchtower Timer': 'Tempos da Torre de Vigia',
'Watchtower Timer script initialized ...': 'Script de Torre de Vigia iniciado ...',
'Current world does not support watchtower!': 'Mundo atual não tem torre de vigia!',
'Watchtower Timer script is already initialized!': 'Script da Torre de Vigia já foi iniciado!',
'Create New Forum Thread': 'Criar mensagem no forum',
'Create New Mail': 'Criar mensagem',
Overview: 'Vista Geral',
Map: 'Mapa',
Fetch: 'Procurar por',
Flag: 'Bandeira',
'Village data could not be fetched!': 'Aldeia não pode ser encontrada',
Support: 'Apoio',
 

Deleted User - 848992791

Guest
translation for PT and Br server

pt_PT: {
'Incomings Overview': 'Vista Geral de a chegar',
Help: 'Ajuda',
'It seems like you have no incomings 😀': 'Sem ataques a chegar',
'Total Incomings:': 'Total de Ataques a chegar:',
'Attacking Players:': 'Jogadores a atacar:',
'Total Attacking Players:': 'Total de jogadores a atacar:',
'Destination Villages Count:': 'Aldeias Alvo:',
'Origin Villages Count:': 'Numero de Origem dos Ataques:',
'Destination Villages': 'Destino dos Ataques',
'Origin Villages': 'Origem dos Ataques',
'Export Incomings Data': 'Exportar Dados dos Ataques',
'Highlight Possible Nobles': 'Destacar Possíveis Nobres',
Village: 'Aldeia',
Count: 'Contagem',
'Toggle Combinations': 'Ativar Combinações',
'Possible nobles are highlighted!': 'Possiveis Nobres Destacados',
'No possible nobles were found!': 'Não foram encontrados nobres',
Watchtower: 'Torre de Vigia',
'Attack:': 'Ataque:',
'Small Attack:': 'Ataque pequeno:',
'Medium Attack:': 'Ataque Medio:',
'Large Attack:': 'Ataque Grande:',
'Destination Villages List': 'Lista de Aldeias de Destino',
'Destination Villages Coords': 'Coordenadas de aldeias de destino',
'Origin Villages List': 'Lista de Aldeias de Origem',
'Origin Villages Coords': 'Coordenadas de aldeias de origem',
'Last updated at:': 'Ultima Atualização:',
'Mass Tag Incomings': 'Renomear em Massa',
'Tagging incomings ...': 'A renomear ataques ...',
'Watchtower Timer': 'Tempos da Torre de Vigia',
'Watchtower Timer script initialized ...': 'Script de Torre de Vigia iniciado ...',
'Current world does not support watchtower!': 'Mundo atual não tem torre de vigia!',
'Watchtower Timer script is already initialized!': 'Script da Torre de Vigia já foi iniciado!',
'Create New Forum Thread': 'Criar mensagem no forum',
'Create New Mail': 'Criar mensagem',
Overview: 'Vista Geral',
Map: 'Mapa',
Fetch: 'Procurar por',
Flag: 'Bandeira',
'Village data could not be fetched!': 'Aldeia não pode ser encontrada',
Support: 'Apoio',
 

RedAlert

Senior In-Game Staff
Tribal Wars Team
Senior
Team
Script Moderator
Reaction score
608
Hello @rikmartins ,
Thank you. Script has been updated and now it includes your translations also.
 

Deleted User - 848992791

Guest
If possible change the pt-PT Fetch: 'Mostrar aldeia',

and OP Spotter to 'Ataques por hora' in portugues show as undefiened
 

RedAlert

Senior In-Game Staff
Tribal Wars Team
Senior
Team
Script Moderator
Reaction score
608
Which english text should be translated into "Mostrar aldeia" exactly?

OP Spotter was changed to "Ataques por hora'.

Also there is another string not translated "Landing Time".
 
Top