General WWS -> TPS converter
TankSpot // TankSpot General // Theory & Articles
Reply
 
LinkBack Thread Tools
  #1  
Old 04-07-2008, 06:43 PM
Call me Ms. Tank
 
Join Date: Aug 2007
Posts: 176
WWS -> TPS converter

Since the online WWS -> TPS converter seems to have gone MIA, I've put together a quick offline script to calculate the same information.

It's attached to this post. Caveats:

(1) It's a quick hack. Consider it a reference implementation that can be improved upon. Seriously, though, any programmer with more time than I should be able to take the basic logic and go from there pretty easily.
(2) It's run from the command line and doesn't have a pretty GUI interface (I'm using a Mac, and any GUI I wrote would be useless for most people, anyway). Supply the URL of a tank's WWS page as the argument, or provide the contents of that webpage in a file and supply the file name. Alternatively, feeding the webpage to standard input works also.
(3) It's written in Ruby and requires that Ruby is installed on your computer. That said, Ruby comes pre-installed on Macs and most UNIXes.
(4) I've done some testing to see that the numbers look right, but there are no guarantees. In particular, I'm pretty sure that I missed a few non-standard abilities that generate threat (such as a tank using Stratholme Holy Water on undead bosses), and I'm not sure that I've accounted for all paladin abilities (all common seals should be supported, though).
Attached Files
File Type: zip wws-tps.zip (2.3 KB, 229 views)
__________________
Cat — 70 warrior. Elinor — 70 priestess.
Warriors are tank/DPS/debuff hybrids.
Reply With Quote
  #2  
Old 04-08-2008, 02:02 PM
Meat Shield Extraordinair
 
Join Date: Mar 2008
Posts: 99
Thanks for taking the time to put this together, but I can't get it to seem to work, i have installed ruby and when i run the file i just get a cmd window up with no prompt for an input. Is there a special way I need to activate it? Would very much like to start calculating my TPS properly as want to work out whats improving of hampering my performance.

Regards,

Silthias
Reply With Quote
  #3  
Old 04-08-2008, 02:10 PM
Registrant
 
Join Date: Jan 2008
Posts: 46
took me a while to figure out, but run it like this:

ruby wws-tps.rb <url>

where <url> is the full URL to the WWS of your specific character over the fights you want to analyze. Also, a slight caveat but it barfs on the URLs sometimes unless you put quotation marks around the URL.

Also, I've still seen a few WWS parses where it seems to give you total threat over the entire fight instead of TPS.
Reply With Quote
  #4  
Old 04-08-2008, 04:11 PM
Call me Ms. Tank
 
Join Date: Aug 2007
Posts: 176
Source: duvar
took me a while to figure out, but run it like this:

ruby wws-tps.rb <url>

where <url> is the full URL to the WWS of your specific character over the fights you want to analyze. Also, a slight caveat but it barfs on the URLs sometimes unless you put quotation marks around the URL.
That's an issue with command line interpreters in general -- they all have a few magic characters that they tend to get excited about if you don't quote them. I'm used to dealing with UNIX shells myself, so I forgot to mention it.

Also, I've still seen a few WWS parses where it seems to give you total threat over the entire fight instead of TPS.
Quite possible. If the script can't extract the duration from the HTML, then it'll just give you the total threat. So, a minor format change in WWS output or other reasons can throw it for a loop. Even if it gives you TPS, it will also give you total threat, too. If you can point me to such URLs, I'll see what I can do

The main idea for this, to be honest, is to give somebody else the basic framework to run with it and provide a "pretty" or online version with more bells and whistles. This may be a bit lazy, but I don't use WWS for my own purposes, so I can only spare so much time for a tool I don't really use.
__________________
Cat — 70 warrior. Elinor — 70 priestess.
Warriors are tank/DPS/debuff hybrids.
Reply With Quote
  #5  
Old 04-09-2008, 12:58 AM
Meat Shield Extraordinair
 
Join Date: Mar 2008
Posts: 99
Got it to work now, thanks for the great little tool And for teh help getting it working.

Regards,

Silthias
__________________
Reply With Quote
  #6  
Old 04-09-2008, 09:15 AM
Community Author
 
Join Date: Oct 2007
Posts: 46
Entered this in from a command prompt (DOS box) and tried using the "Run" command line window, and neither approach worked. Both prompted the window to confirm what kind of file it was.
__________________
Malignus Armory
Reply With Quote
  #7  
Old 04-09-2008, 09:29 AM
Registrant
 
Join Date: Jan 2008
Posts: 46
did you install ruby?
Reply With Quote
  #8  
Old 04-09-2008, 12:29 PM
Signu's Avatar
Tank
 
Join Date: Aug 2007
Location: Waynesboro, VA
Posts: 165
Blog Entries: 2
EDIT:

I think it was related to the firewall. I used the file method and it worked fine.
__________________


Last edited by Signu; 04-09-2008 at 01:06 PM.
Reply With Quote
  #9  
Old 04-09-2008, 12:32 PM
gardek's Avatar
Registrant
 
Join Date: Mar 2007
Posts: 69
Blog Entries: 3
Good stuffs!

Any chance to add more detailed ability break downs?
Right now it basically just says
C:\tps>ruby wws-tps.rb "http://wowwebstats.com/glilaatlynpmm?s=5329-5573&a=3"

Devastate | 32363 ( 11.9%)

etc.

Any chance to see how many Devasates there were, how many crit, how many missed and so on?

Thanks!
__________________
Reply With Quote
  #10  
Old 04-09-2008, 12:36 PM
gardek's Avatar
Registrant
 
Join Date: Mar 2007
Posts: 69
Blog Entries: 3
@Signu
1.8.6 is the version I'm using, and it works fine. Maybe you set it up incorrectly? Did you try the one step windows installer?
http://rubyforge.org/frs/download.ph...ruby186-26.exe

For your input, I get this output:

C:\tps>ruby wws-tps.rb "http://wowwebstats.com/bstrj2bmep2bw?s=1490-2115&a=12"
Devastate | 63734 ( 22.5%)
Shield Slam | 60943 ( 21.5%)
Revenge | 720 ( 0.3%)
Thunder Clap | 3848 ( 1.4%)
Heroic Strike | 69051 ( 24.4%)
Shoot | 354 ( 0.1%)
Swing | 43157 ( 15.2%)
Earth Shield | 25595 ( 9.0%)
Lifebloom | 16137 ( 5.7%)
-----------------------------------------
ABILITIES | 241810
HEALS | 41732
TOTAL | 283543
-----------------------------------------
ABILITY TPS | 386
HEAL TPS | 66
TPS | 452
__________________
Reply With Quote
Reply

Bookmarks


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

World of Warcraft™ and Blizzard Entertainment® are all trademarks or registered trademarks of Blizzard Entertainment in the United States and/or other countries. These terms and all related materials, logos, and images are copyright © Blizzard Entertainment. This site is in no way associated with or endorsed by Blizzard Entertainment®.