RedAlert

Senior In-Game Staff
Tribal Wars Team
Senior
Team
Script Moderator
Reaction score
696
Author
RedAlert
Contributors
N/A
Quickbar Entry
javascript:$.getScript('https://twscripts.dev/scripts/countHomeTroops.js');
Public?
Public
Own Home Troops Count

Approved:
t14504684

own-home-troops-count.png

This script is run on the Combined overview (if you are not on the Combined overview it will automatically redirect you there).
This script requires Premium Account to be active.

This is how script looks like in practice:

If you need help with this script, find any bug or have an idea/suggestion for this script, feel free to reply on this thread.
 
Last edited:
Upvote 1

*kronus*

Active Member
Reaction score
1
I think there is something wrong, looking at the troops in the house and the results?



]Acquisisci schermata Web_30-1-2021_103918_ibb.co.jpg
 
Last edited:

RedAlert

Senior In-Game Staff
Tribal Wars Team
Senior
Team
Script Moderator
Reaction score
696
Hello @*kronus* ,

Sure by looking at those troop counts I can see something does not look okay. I haven't been able to replicate this issue myself. I have only tested the script on US server and did not have any problem there.

If possible DM me with some more test info. Example run the script on a group with only 2 villages, then 3-4 villages, etc.
 

RedAlert

Senior In-Game Staff
Tribal Wars Team
Senior
Team
Script Moderator
Reaction score
696
Could you try with a group of villages where you have no village note?
 

RedAlert

Senior In-Game Staff
Tribal Wars Team
Senior
Team
Script Moderator
Reaction score
696
@*kronus* , I think i got it now what is going wrong and why it does not show to me.

I tested the script on 3 different worlds and never had this issue because none of them was a church world.

Basically put, you have 1 more column on the combined overview table and that's messing up troops count.

Will see to fix this issue. For the moment this script fails to work correctly on church based worlds. Everywhere else (as far as I know) it should work okay.

Thanks for reporting the issue.
 

RedAlert

Senior In-Game Staff
Tribal Wars Team
Senior
Team
Script Moderator
Reaction score
696
@*kronus* ,

I updated the scripts troops collecting logic. The bug you encountered should be fixed now.
Was able to test the script myself on a church world and the script works okay even on church worlds right now.
 
Last edited:

RedAlert

Senior In-Game Staff
Tribal Wars Team
Senior
Team
Script Moderator
Reaction score
696
Script has been updated to v1.2.0.

The new script version shows a table with packet counts for units which are used for def packets.

The packet amount is configurable based on player's needs.
 

RedAlert

Senior In-Game Staff
Tribal Wars Team
Senior
Team
Script Moderator
Reaction score
696
Hi, is there a way this script could export data to CSV file?
No, at the moment is not possible.

What would be the use of that? I need to understand the logic behind this so I can see if/how or if it is worth to be implemented.
 

RedAlert

Senior In-Game Staff
Tribal Wars Team
Senior
Team
Script Moderator
Reaction score
696
Scraping data daily to compare growth, and to see if there were fangs/nukes in between fakes.
This script calculates and shows how many of your troops are at home.

So if you have lets say 50k spears in total, and this script tells you that you have 25k home, then 50% of your spears are at home.

How do you go from this to what you said?
You cant.

You cant because you might have sent 10k spears as support somewhere and now only 15k spears remain home.

The fact that you have 10k less spears does not necessarily mean they got killed from nukes.
 
Top