Results 1 to 23 of 23

Thread: A small online unit browser tool

  1. #1

    Smile A small online unit browser tool

    Hey all,

    I started this project for self entertainment and as a tool for learning some technologies I was not familiar with but I think it turned out nice and may be useful to other M2TW players.

    It is a small online tool for browsing, sorting and filtering all the M2TW units. You can access the unit list directly here:
    http://warlore.org/units

    Depending on my availability and if there is demand from the community, there are plenty of features I can add to that: buildings, agents, factions, customized columns, comments and so on.

    Currently, you can filter the units by factions, categories and classes and sort them by all currently available columns.

    You can also use it to post direct links to units on the forums, etc. For example:
    http://warlore.org/units/Chivalric_Knights
    http://warlore.org/units/Arquebusiers

    Or even custom searches like all English heavy cavalry:
    http://warlore.org/units/?category=c...action=english


    Hope you find it useful.

    Cheers
    - barvaz
    warlore.org - An online M2TW game data browser.

  2. #2
    king of my kingdom Member DVX BELLORVM's Avatar
    Join Date
    Aug 2005
    Location
    On the battlefields across known world
    Posts
    337

    Default Re: A small online unit browser tool

    You did a great job, thank you for sharing it!

  3. #3
    Harbinger of... saliva Member alpaca's Avatar
    Join Date
    Aug 2003
    Location
    Germany
    Posts
    2,767

    Default Re: A small online unit browser tool

    Looks like a nice tool, good job.

  4. #4

  5. #5

    Default Re: A small online unit browser tool

    When I try to do the custom search it does nothing. I'm confuesed on how to use the custom serch.

  6. #6

    Default Re: A small online unit browser tool

    Whoa...this is something I've always dreamed of doing...

    May I interest you in the following related projects:

    M2TW Test Wiki at Scratchpad (Done mostly by me):

    http://scratchpad.wikia.com/wiki/Melee_Cavalry
    http://scratchpad.wikia.com/wiki/Missile_Cavalry
    http://scratchpad.wikia.com/wiki/Missile_Weapons
    http://scratchpad.wikia.com/wiki/Artillery_(M2TW)
    http://scratchpad.wikia.com/wiki/Arab_Cavalry
    http://scratchpad.wikia.com/wiki/Jinetes
    http://scratchpad.wikia.com/wiki/Egypt

    YAS' Tools (Done by Yas):

    http://www.totalwar.co.kr/

    I will gladly assist you in adding more useful information to your database, now that I've seen how much more powerful it is over both the wiki format and a flash-based format.

    If this could be connected to a highly sophisticated faction/building/region availability browser, that would be great.
    Last edited by Miracle; 08-24-2007 at 00:36.

  7. #7
    Member Member Maelstrom's Avatar
    Join Date
    Oct 2002
    Location
    Bath, UK
    Posts
    119

    Default Re: A small online unit browser tool

    Nice!- I can't get the filters to work though....

  8. #8
    Member Member crpcarrot's Avatar
    Join Date
    Jan 2004
    Location
    London UK
    Posts
    368

    Default Re: A small online unit browser tool

    cool tool, but the filters dont seem to work
    "Forgiveness is between them and god, my job is to arrange the meeting"

  9. #9

    Default Re: A small online unit browser tool

    Quote Originally Posted by Maelstrom
    Nice!- I can't get the filters to work though....
    Quote Originally Posted by crpcarrot
    cool tool, but the filters dont seem to work

    It is working for me on both Firefox and IE so I will need your help with telling me what are you trying to do and what isn't working exactly.

    Thanks.

    Cheers,
    - barvaz
    warlore.org - An online M2TW game data browser.

  10. #10

    Default Re: A small online unit browser tool

    Quote Originally Posted by Mother Yoda
    When I try to do the custom search it does nothing. I'm confuesed on how to use the custom serch.
    I will add some visible way to use it and a way to select it from the units page and paste it into forums.

    But basically, there are three parameters that you can add to the units URL:
    1. category - values can be ship, cavalry, infantry or siege
    2. class - values can be light, heavy, missile or spear
    3. faction - can be any of the factions


    You separate parameters by "&" and values by comma ",". You can also use "!" for NOT.

    So -

    All missile or spear units would be - class=missile,spear
    All French or English units ships - faction=english,french&category=ship
    All NOT HRE units that are heavy cavalry - faction=!hre&category=cavalry&class=heavy

    You get the idea.

    You append it to the URL:
    Code:
    http://warlore.org/units?faction=!hre&category=cavalry&class=heavy

    Again, if it is too complicated don't worry about it, I will just add a simple way to copy/paste it from the units page itself.

    Cheers
    - barvaz
    warlore.org - An online M2TW game data browser.

  11. #11
    Member Member crpcarrot's Avatar
    Join Date
    Jan 2004
    Location
    London UK
    Posts
    368

    Default Re: A small online unit browser tool

    i was trying to filer only turk units so i clicked on the flags of the factions and got a popup screen with options to tick the ones i wanted.

    the screen was devided into 3 parts of which the first one was the factions with all of them ticked. i selected unselect all and then ticked only turks. and clicked ok. screen showed a sort of animation showing that it was precessing and turned up the same basic screen.

    hope that makes sense :) thanks
    "Forgiveness is between them and god, my job is to arrange the meeting"

  12. #12

    Default Re: A small online unit browser tool

    Quote Originally Posted by Miracle
    Whoa...this is something I've always dreamed of doing...
    Me too. I started working on one for the original MTW many years ago but never finished it.

    I actually found your wiki couple of weeks ago and were just thinking that if I discovered it earlier, I'd probably lack to motivation to start/finish Warlore because it look pretty impressive.

    I am familiar with the Flash tool and it's very cool but I just had to have all the data in a table that can be filtered and sorted, you know?

    Quote Originally Posted by Miracle
    I will gladly assist you in adding more useful information to your database, now that I've seen how much more powerful it is over both the wiki format and a flash-based format.

    If this could be connected to a highly sophisticated faction/building/region availability browser, that would be great.
    That was the ultimate goal basically, to have all the data that can be found in game, interconnected and presented in any possible way. How far I will go with it is not certain. Depends if I have the time and motivation and if there is any interest from the community. First priority would be probably to import the Kingdoms data as soon as it comes out.

    Glad to see I am not the only Total War data statistics nut.

    Cheers,
    - barvaz
    Last edited by barvaz; 08-24-2007 at 12:29.
    warlore.org - An online M2TW game data browser.

  13. #13

    Default Re: A small online unit browser tool

    Quote Originally Posted by crpcarrot
    i was trying to filer only turk units so i clicked on the flags of the factions and got a popup screen with options to tick the ones i wanted.

    the screen was devided into 3 parts of which the first one was the factions with all of them ticked. i selected unselect all and then ticked only turks. and clicked ok. screen showed a sort of animation showing that it was precessing and turned up the same basic screen.

    hope that makes sense :) thanks

    Everything you described is as expected except the part about it being the same screen - are you sure you got the exact screen and not only the units that Turks can use?

    Note that it will also have other factions listed if the unit can be used by other factions - these are not Turks exclusive units but rather units that Turks can use. So you should see the Turkish faction icon on every row but may see other faction icons as well.

    - barvaz
    warlore.org - An online M2TW game data browser.

  14. #14
    Cynic Senior Member sapi's Avatar
    Join Date
    Oct 2004
    Location
    Brisbane
    Posts
    4,970

    Default Re: A small online unit browser tool

    Quote Originally Posted by crpcarrot
    i was trying to filer only turk units so i clicked on the flags of the factions and got a popup screen with options to tick the ones i wanted.

    the screen was devided into 3 parts of which the first one was the factions with all of them ticked. i selected unselect all and then ticked only turks. and clicked ok. screen showed a sort of animation showing that it was precessing and turned up the same basic screen.

    hope that makes sense :) thanks
    You wouldn't happen to have scripts blocked in your browser?

    I know the page didn't work for me until I se up a temp exception in noscript
    From wise men, O Lord, protect us -anon
    The death of one man is a tragedy; the death of millions, a statistic -Stalin
    We can categorically state that we have not released man-eating badgers into the area -UK military spokesman Major Mike Shearer

  15. #15
    King Philippe of France Senior Member _Tristan_'s Avatar
    Join Date
    Mar 2007
    Location
    Reigning over France
    Posts
    3,264

    Default Re: A small online unit browser tool

    Congratulations, Barvaz !!!

    Except that I can't sort units as the filters doesn't do not seem to work on my Pc, same as crpcarrot...

    Real cool tool...
    King Baldwin the Tyrant, King of Jerusalem, Warden of the Holy Sepulchre, Slayer of Sultans in the Crusades Hotseat (new write-up here and previous write-up here)
    Methodios Tagaris, Caesar and Rebelin LotR
    Mexica Sunrise : An Aztec AAR



    Philippe 1er de France
    in King of the Franks

  16. #16

    Default Re: A small online unit browser tool

    Quote Originally Posted by sapi
    You wouldn't happen to have scripts blocked in your browser?

    I know the page didn't work for me until I se up a temp exception in noscript
    Actually, it was designed to also work without javascript enabled. You won't get the popups and the extra features but it should work without any problem.

    I think I know what the problem was, when there was no javascript, the filter form was under the units table instead of the pupup window but clicking on the filters did nothing (but the cursor still changed). I fixed it and now it jumps to the form instead of poping it up so it should be more clear.

    - barvaz
    warlore.org - An online M2TW game data browser.

  17. #17
    Member Member TheImp's Avatar
    Join Date
    Oct 2006
    Location
    Saint Etienne, France
    Posts
    123

    Default Re: A small online unit browser tool

    Awesome, thanks!

    The Imp
    "He could hear her still at times. Promise me, she had cried, in a room that smelled of blood and roses, Promise me, Ned. The fever had taken her strength and her voice had been faint as a whisper, but when he gave her his word, the fear had gone out of his sister's eyes."
    Eddard and Lyanna Stark about Jon Snow Targaryen.

  18. #18
    <Insert Custom User Title> Member Dan.o6's Avatar
    Join Date
    Aug 2006
    Posts
    126

    Default Re: A small online unit browser tool

    This is an impressive tool and a very helpful one at that. Great work on this!

    Intel Core 2 Duo E8500 @ 3.16GHz
    XFX Geforce 9800GTX 512mb
    XFX nForce 680i SLI Motherboard
    4GB Crucial Ballistix DDR2 RAM
    2x Seagate Barracuda 250GB 7200RPM
    Windows Vista Ultimate SP1

  19. #19
    Cynic Senior Member sapi's Avatar
    Join Date
    Oct 2004
    Location
    Brisbane
    Posts
    4,970

    Default Re: A small online unit browser tool

    Quote Originally Posted by barvaz
    Actually, it was designed to also work without javascript enabled. You won't get the popups and the extra features but it should work without any problem.

    I think I know what the problem was, when there was no javascript, the filter form was under the units table instead of the pupup window but clicking on the filters did nothing (but the cursor still changed). I fixed it and now it jumps to the form instead of poping it up so it should be more clear.

    - barvaz
    Yeah, it is. Select/deselect all seem to have disappeared, though
    From wise men, O Lord, protect us -anon
    The death of one man is a tragedy; the death of millions, a statistic -Stalin
    We can categorically state that we have not released man-eating badgers into the area -UK military spokesman Major Mike Shearer

  20. #20

    Default Re: A small online unit browser tool

    Quote Originally Posted by crpcarrot
    i was trying to filer only turk units so i clicked on the flags of the factions and got a popup screen with options to tick the ones i wanted.

    the screen was devided into 3 parts of which the first one was the factions with all of them ticked. i selected unselect all and then ticked only turks. and clicked ok. screen showed a sort of animation showing that it was precessing and turned up the same basic screen.

    hope that makes sense :) thanks
    Ohhh...ok, I think I know what it is. You are not using IE6 by any chance?

    There is a stupid bug (well, many of them) in Internet Explorer 6 that prevents the filter data from being submitted properly.

    I will fix this when I get home from work this evening.

    Cheers,
    - barvaz

    PS: get a proper browser (j/k, use whatever works for you, of course)
    Last edited by barvaz; 08-29-2007 at 09:15.
    warlore.org - An online M2TW game data browser.

  21. #21
    Member Member crpcarrot's Avatar
    Join Date
    Jan 2004
    Location
    London UK
    Posts
    368

    Default Re: A small online unit browser tool

    sorry for late reply guys

    barvaz

    to answer an earlier question, i just tired it again and it is lisitng all units even units that have no turk icon next to them

    yes i am using IE6 at work. i will try it at home tonight

    @ Sapi

    yes scripts are probably blocked on work pc and prob at home too (i'm very paranoid about security) but i'll try it at home on IE7 and see if there is a diff. (if my wife lets me get on the pc ;))
    "Forgiveness is between them and god, my job is to arrange the meeting"

  22. #22

    Default Re: A small online unit browser tool

    Quote Originally Posted by crpcarrot
    sorry for late reply guys

    barvaz

    to answer an earlier question, i just tired it again and it is lisitng all units even units that have no turk icon next to them

    yes i am using IE6 at work. i will try it at home tonight

    @ Sapi

    yes scripts are probably blocked on work pc and prob at home too (i'm very paranoid about security) but i'll try it at home on IE7 and see if there is a diff. (if my wife lets me get on the pc ;))
    In IE7 and Firefox it will work with or without scripting enabled.

    In IE6 it will work without scripting but with scripting, there is javascript bug that prevents the filters from working. I will fix this.

    (in any case, without scripting enabled you won't get the popups, check-all checkboxes and other nice features I am adding but I am making sure the basic functionality always works with or without scripting)


    - barvaz
    Last edited by barvaz; 08-29-2007 at 09:48.
    warlore.org - An online M2TW game data browser.

  23. #23

    Default Re: A small online unit browser tool

    After a long battle, IE6 bug is now fixed so the filters should be working on any of the major browsers with or without javascript enabled.


    oh and...I added the ability to filter by unique faction units (units that belong to only one faction). For example, here are the unique units of my favorite faction:
    http://warlore.org/units?faction=english&unique=true

    Cheers,
    - barvaz
    Last edited by barvaz; 08-30-2007 at 22:24.
    warlore.org - An online M2TW game data browser.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO