Approved: dalesmckay's Troop Summary Script

Discussion in 'Scripts & independent tools' started by dalesmckay, Oct 6, 2010.

Share This Page

  1. dalesmckay

    dalesmckay New Member

    Joined:
    Oct 5, 2010
    Messages:
    23
    Likes Received:
    1
    The Script:
    Code:
    javascript:(window.main||window).$.getScript('https://media.innogamescdn.com/com_DS_UK/Scripts/troop_counter.js');void 0;
    Description:
    Run from Overviews->Troops Screen to view summary of existing Units.
    It provides a breakdown of different Village Types (Noble, Offense, Defense, Scout, Other),
    different Unit types (Offense, Defense, Other), total number of existing Units & their total farm population.
    Hover mouse over Village Type Description to view Criteria.
    Click Village Type Description to view ALL village co-ordinates of that Village Type.

    Supported Browsers:
    Opera, Firefox, Chrome, Safari, IE

    Other Info:
    • A Premium Account is required
    • It works on all Worlds (archer, non-archer, paladin, church, etc...)
    • It will not work correctly on pages with more than 1000 villages
    • Pop-ups must be enabled
    • It has not been tested on the Mobile Version of TW
    • It has multi-language supported (just need to add translated values)
     
    Last edited by a moderator: May 20, 2015
    cheesasaurus likes this.
  2. cheesasaurus

    cheesasaurus <img src="http://i1318.photobucket.com/albums/t655 Moderator

    Joined:
    Jul 26, 2009
    Messages:
    331
    Likes Received:
    13
    screenshot of the troop summary script in action:
    [​IMG]
     
  3. Dr. Otis

    Dr. Otis New Member

    Joined:
    Nov 2, 2010
    Messages:
    45
    Likes Received:
    1
    Quick question.

    What does it consider to be a full nuke (Offense/Defense), etc? Can we customize what we want it to consider as a nuke or no? Or defensive train, etc.

    Just inserted the code... and it does not give me what you had Cheese...
     
  4. Frank Lucas

    Frank Lucas New Member

    Joined:
    Sep 23, 2010
    Messages:
    809
    Likes Received:
    7
    The script works out the farm space taken by Offensive troops or defensive troops. I think something like 20k troops (farm wise) of offensive is considered a nuke, but I will log on (and kick cheese (devil)) and check it out for you later
     
  5. cheesasaurus

    cheesasaurus <img src="http://i1318.photobucket.com/albums/t655 Moderator

    Joined:
    Jul 26, 2009
    Messages:
    331
    Likes Received:
    13
    What does it give you? (screenshot(s) would be very helpful)

    If you hover your mouse pointer over the option you want, it's supposed to show you what the requirements are. There's not any way to customize the requirements in the current version.
     
  6. Dr. Otis

    Dr. Otis New Member

    Joined:
    Nov 2, 2010
    Messages:
    45
    Likes Received:
    1
    I use Google Chrome. And after I click on "Troop Count" where this script is located, I get only that information to display. No popups or anything. kind of confused if I missed a step or something. And I hid the the troop #s for obvious reasons. Let's just say I have around 3k axes, 2k lc, 150 scouts, 150 rams, and 100 cats. If you can point me in the right direction I would appreciate it. I can also try it in Firefox, IE, or Opera.

    [​IMG]
     
  7. cheesasaurus

    cheesasaurus <img src="http://i1318.photobucket.com/albums/t655 Moderator

    Joined:
    Jul 26, 2009
    Messages:
    331
    Likes Received:
    13
    It would be helpful if you tried it in some other browsers and let me know the results. That'll give me some idea of whether its a browser specific issue or if its related to something on the page.
     
  8. Dr. Otis

    Dr. Otis New Member

    Joined:
    Nov 2, 2010
    Messages:
    45
    Likes Received:
    1
    Results in three errors.

    Mozilla Firefox: Error: Popup is null
    Internet Explorer: Error: Object required
    Google Chrome: (doesn't pop up with what error) [I went to a different computer to see if it was related to my original computer by chance]

    Let me know if you need screenshots.
     
  9. cheesasaurus

    cheesasaurus <img src="http://i1318.photobucket.com/albums/t655 Moderator

    Joined:
    Jul 26, 2009
    Messages:
    331
    Likes Received:
    13
    those errors mean that you have popups disabled. Try enabling popups in those browsers and see if anything comes up.
     
  10. Dr. Otis

    Dr. Otis New Member

    Joined:
    Nov 2, 2010
    Messages:
    45
    Likes Received:
    1
    Fixed. Got it to work with Chrome. Thx for spotting it mate. It didn't click in my head it was a popup for some odd reason.
     
  11. mrrobpob

    mrrobpob New Member

    Joined:
    Sep 2, 2010
    Messages:
    171
    Likes Received:
    1
    On UK7 I keep getting "Error: Cannot convert 'coords' to object" when I try this...
    It worked on the other worlds, just not 7.
     
  12. xel nadar

    xel nadar New Member

    Joined:
    Jul 1, 2010
    Messages:
    116
    Likes Received:
    2
    Any chance of getting this updated for v7 as I cannot get it to work now that W5 has been updated.
     
  13. MetallicPhantom

    MetallicPhantom New Member

    Joined:
    Jun 27, 2010
    Messages:
    174
    Likes Received:
    0
    Quoting to support this! This script was a lot of help, and a repair would mean I wuv yuhoo <3. I get a pop up stating 'Error: coords is null' and a statement about the script and the world at the bottom of the page. It was working fine, I used it two days before the update.
     
  14. King Allan

    King Allan New Member

    Joined:
    Oct 7, 2010
    Messages:
    9
    Likes Received:
    0
    I have the same problem and tracy is no help at all with her standard service reply - only use approved scripts.

    What a way to run a company..... and we pay premium and account manager too!!!
     
  15. Avenging Archangel

    Avenging Archangel New Member

    Joined:
    Oct 29, 2010
    Messages:
    200
    Likes Received:
    4
    Can anyone confirm what the population count at the bottom right is? Is that the maximum population you have, i.e the total number of troops you can have? If this what it is, does this include troops in queue?

    Thanks in advance :)
     
  16. dalesmckay

    dalesmckay New Member

    Joined:
    Oct 5, 2010
    Messages:
    23
    Likes Received:
    1
    This is the v7.0 updated version for whoever is maintaining the hosted script:
    script removed ... OP updated

    The Total units count value is the total number of existing troops in your account.
    The Total units pop value is the total population of all existing troops in your account.
    These totals do NOT include troops queued for production (since this info is not available from the Overviews->Troops Screen).
     
    Last edited by a moderator: Apr 15, 2011
  17. Septum

    Septum New Member

    Joined:
    Aug 31, 2010
    Messages:
    8
    Likes Received:
    0
    Amazing... thanks for updating this. Always loved this script :D
     
  18. Avenging Archangel

    Avenging Archangel New Member

    Joined:
    Oct 29, 2010
    Messages:
    200
    Likes Received:
    4
    Thanks for claryfying that for me.

    And a great script. :)
     
  19. Septum

    Septum New Member

    Joined:
    Aug 31, 2010
    Messages:
    8
    Likes Received:
    0
    This now doesnt work again, im using opera. Any suggestions??
     
  20. mrlucaboy

    mrlucaboy New Member

    Joined:
    Jan 24, 2010
    Messages:
    602
    Likes Received:
    7