New Version of DropStats


AgentMountaineer

 

Posted

For those of you who are interested in tracking drops and drop rates ...

I've just released version 0.5 of DropStats.

This version can process multiple files including all files in several directories if you want. It also enables you to analyse a single toon or a particular test run. (Handy if you're investigating a theory.)

This version also contains a tweak that should mean that the heuristic checks continue to work during the double XP period. I haven't been able to test it though so I can't be sure.

Enjoy.

(I apologise to those who aren't interested. This seemed like the best place to announce it.)


 

Posted

Awesome, thanks Archie.

The new options are great



@Catwhoorg "Rule of Three - Finale" Arc# 1984
@Mr Falkland Islands"A Nation Goes Rogue" Arc# 2369 "Toasters and Pop Tarts" Arc#116617

 

Posted

Let us know how drops are. Since 16 ive only gotten 1 purp. And today was the worst. I ran a BM farm of 52's with my 2 accounts. On both runs i got 1, one, uno invention drop. Yes, that's including both toons. It seems 16 didn't increase any rates. At least on my accounts. lol.


 

Posted

Code:
C:\City of Heroes\logs\game>dropstats.pl "sent stats.txt"
Error in file or directory options:-
  C:\Program Files\City of Heroes\logs\game is not a valid directory
Tell it to add the directory only if the file I'm asking for is not already in the current directory, please. I know I can set the directory in the preferences, but it should be common sense that if the file I'm asking for is in the current directory, it shouldn't go looking in another place.


www.SaveCOH.com: Calls to Action and Events Calendar
This is what 3700 heroes in a single zone looks like.
Thanks to @EnsonsDeath for the GVE code that made me VIP again!

 

Posted

I'm glad to see that it's not just me having problems.

There seems to be a problem when CoH isn't in the default spot. Here's an error I got.

Code:
perl dropstats.pl  -dir  "D:\CoH\logs\game\"
Cannot chdir to D:\CoH\logs\game": No such file or directory at Module/Settings.pm line 352


Global @StarGeek
ParagonWiki.com-The original is still the best!
My Hero Merit rolls
Accuracy needed for 95% ToHit spreadsheet
Forum font change stripper for Firefox/Opera/Chrome. No more dealing with poor color choices, weird fonts or microscopic text
Search Wiki Patch notes, add site:ParagonWiki.com inurl:patch_notes to your Google Search

 

Posted

Quote:
Originally Posted by Leandro View Post
Code:
C:\City of Heroes\logs\game>dropstats.pl "sent stats.txt"
Error in file or directory options:-
  C:\Program Files\City of Heroes\logs\game is not a valid directory
Tell it to add the directory only if the file I'm asking for is not already in the current directory, please. I know I can set the directory in the preferences, but it should be common sense that if the file I'm asking for is in the current directory, it shouldn't go looking in another place.
It doesn't display the error because it can't find your file, it displays it because the option in the preferences file is invalid. As far as it knows, you might have just added that dir option, in which case you'd almost certainly want to know that there's a problem. (Especially if you'd put it on the command line and not in a file.) It's annoying when you didn't add it and don't care, though.

Of course, the reason doesn't really matter if it annoys you.

Maybe what it should do, is print a warning and continue when it doesn't need to use the directory. It could use the current behaviour when it does need to search your directories.

What do you think?


 

Posted

Quote:
Originally Posted by StarGeek View Post
I'm glad to see that it's not just me having problems.

There seems to be a problem when CoH isn't in the default spot. Here's an error I got.
This is a bug. Thanks for reporting it.

It only happens when the directory name ends with a \ and is also surrounded by quotes. You don't need the final slash, so just leave it out and it should work Ok. e.g.

Code:
perl dropstats.pl  -dir  "D:\CoH\logs\game"
I'll fix this in the next release.


 

Posted

My apologies, I should have expanded more. I get that error when I add the slash. Without the slash I get the error that Leandro gets.

Code:
perl dropstats.pl  -dir  "D:\CoH\logs\game"
Error in file or directory options:-
  C:\Program Files\City of Heroes\logs\game is not a valid directory


Global @StarGeek
ParagonWiki.com-The original is still the best!
My Hero Merit rolls
Accuracy needed for 95% ToHit spreadsheet
Forum font change stripper for Firefox/Opera/Chrome. No more dealing with poor color choices, weird fonts or microscopic text
Search Wiki Patch notes, add site:ParagonWiki.com inurl:patch_notes to your Google Search

 

Posted

Quote:
Originally Posted by StarGeek View Post
My apologies, I should have expanded more. I get that error when I add the slash. Without the slash I get the error that Leandro gets.
Ok. You need to edit your preferences.txt file. It's in your DropStats folder.

Please change the line which says:-
Code:
dir=C:\Program Files\City of Heroes\logs\game
to
Code:
dir=D:\CoH\logs\game
It should then work without you having to specify the directory every time. If you want it to do that then just delete the line completely.


 

Posted

Wow...I get the distinct feeling this is supposed to be simple.

I'm kinda lost. Even the instructions like "Open a Command Prompt and change to the drive and directory where you unzipped DropStats." confuses me because I have no idea what to do there. My command prompt says "C:\Documents and Settings\Administrator>" with no option to backspace and type in "H:\>C:
C:\>cd C:\DropStats
C:\DropStats>perl dropstats.pl" .

I tried typing all those in and it laughed at me. (I heard it!)

I obviously don't work with the command prompt very often. (Like never...lol)


 

Posted

Ok...got my computer savy brother to show me...all is well.


 

Posted

Quote:
Originally Posted by JeetKuneDo View Post
I obviously don't work with the command prompt very often. (Like never...lol)
You're not alone. Most Windows users have never even seen a Command Prompt let alone used one.

If anyone else is having the same trouble, please have look at the guide to Using the Command Prompt that I wrote. It's just a quick intro that covers the bare minimum needed to use DropStats.

Ideally DropStats would have a nice shiney windowed interface that would be more familiar to everyone. Sadly I don't have the time at the moment. Maybe one day...


 

Posted

Quote:
Originally Posted by Archie Gremlin View Post
You're not alone. Most Windows users have never even seen a Command Prompt let alone used one.

If anyone else is having the same trouble, please have look at the guide to Using the Command Prompt that I wrote. It's just a quick intro that covers the bare minimum needed to use DropStats.

Ideally DropStats would have a nice shiney windowed interface that would be more familiar to everyone. Sadly I don't have the time at the moment. Maybe one day...
By the way....awesome program. I'm still getting comfortable with it but it's very nice to have those numbers set up like that to look at. And you brought me some luck....one Armagedon and one respec recipe in two runs.

I did actually try the "Using the Command Prompt" thing but for some reason that didn't help me. But no complaints here.


 

Posted

Quote:
Originally Posted by Archie Gremlin View Post
You're not alone. Most Windows users have never even seen a Command Prompt let alone used one.
I know I'm not the most senior of many players of this game, but I do remember the time before windows when everything I did was on the command prompt on a DOS operating system. Thankfully, this experience has me comfortable with using the prompt to run this script.

I was actually surprised when I typed something invalid and I didn't get the standard "Bad command or file name" when I did something wrong. Ah, the memories.


 

Posted

Quote:
Originally Posted by Archie Gremlin View Post
Maybe what it should do, is print a warning and continue when it doesn't need to use the directory.
Sounds good to me. Anything as long as it just opens the file and does its job. Though I personally would either leave the default as "." for the current directory, or leave it empty and have DropStats fill it with info from the registry if empty; could easily be done by adding these to preferences.txt:

use Win32::TieRegistry;
$dir = $Registry->{'HKEY_CURRENT_USER\Software\Cryptic\Coh\Installa tion Directory'} if $dir eq '';


Note there's no space in "Installation", that's just the board software splitting the word.


www.SaveCOH.com: Calls to Action and Events Calendar
This is what 3700 heroes in a single zone looks like.
Thanks to @EnsonsDeath for the GVE code that made me VIP again!

 

Posted

Quote:
Originally Posted by Leandro View Post
use Win32::TieRegistry;
$dir = $Registry->{'HKEY_CURRENT_USER\Software\Cryptic\Coh\Installa tion Directory'} if $dir eq '';
Interesting. Thanks for the tip.

I'll have to be careful that it doesn't break on other operating systems though.


 

Posted

I've just release a new version of DropStats. (Version 0.5.1)

The only changes are:

  • Now displays 95% confidence interval for drop rates in the "Range" column.
  • Now displays drop rates for minions, lieutenants and bosses as well as the overall drop rate for Pool A and Salvage.

The drop rate table now looks like this:
Code:
Pool       Drop Rate         Range   Drops        Expected    Mobs
-------------------------------------------------------------------------------
Pool A         3.13%   2.22%-4.27%      38           23-45   1,214 min. equiv.
  minion       3.19%   2.20%-4.45%      33           19-39   1,035 minions
  lieutenant   6.58%  2.17%-14.69%       5            2-10      76 LTs & snprs
Salvage        8.42%  6.89%-10.16%      98          77-113   1,164 min. equiv.
  minion       8.12%   6.53%-9.95%      84          67-101   1,035 minions
  lieutenant  17.11%  9.43%-27.47%      13            4-15      76 LTs & snprs
  boss        11.11%  0.28%-48.25%       1             1-5       9 bosses & EBs
-------------------------------------------------------------------------------
I've also fixed a couple of bugs
  • fixed a crash that happened if the command line contained a dir option with a value that was both in quotes and ended with a /. e.g. -dir "c:/test/"
  • fixed bug that caused -run to fail if chat channel has a color definition


 

Posted

Great work. Really appreciated

Thanks!


Member of Top Ten since 2005
Arc 98079: Hay Fever hits Heroes Hard
Arc 53357: Family Business is not Men-only

 

Posted

Hmmmm....I wondered why I had so many failed heuristic rank checks. Looks like the inf rewards have been altered with the new patch. Fun times!


 

Posted

Quote:
Originally Posted by eryq2 View Post
Let us know how drops are. Since 16 ive only gotten 1 purp. And today was the worst. I ran a BM farm of 52's with my 2 accounts. On both runs i got 1, one, uno invention drop. Yes, that's including both toons. It seems 16 didn't increase any rates. At least on my accounts. lol.
From my experience, the best drop rates have come while solo farming (0/8 settings). When I run 2 accounts or have the difficulty higher than 0, the drop rates go WAY down.


 

Posted

Quote:
Originally Posted by AgentMountaineer View Post
Hmmmm....I wondered why I had so many failed heuristic rank checks. Looks like the inf rewards have been altered with the new patch. Fun times!
I was kind of expecting that.

I'll aim to get a new release out by the end of the weekend.


 

Posted

Quote:
Originally Posted by eryq2 View Post
Let us know how drops are. Since 16 ive only gotten 1 purp. And today was the worst. I ran a BM farm of 52's with my 2 accounts. On both runs i got 1, one, uno invention drop. Yes, that's including both toons. It seems 16 didn't increase any rates. At least on my accounts. lol.
I'm tracking drop rates in this thread.


 

Posted

Any possibility to get it working with a german client?

Even changing language to english doesn't change the server messages. Mob names yes, "you defeated"-message no...


 

Posted

Quote:
Originally Posted by DarkDestroyer View Post
Any possibility to get it working with a german client?

Even changing language to english doesn't change the server messages. Mob names yes, "you defeated"-message no...
Maybe. Particularly if it's acceptable for the mob names and the output to remain in English. Otherwise, someone will have to translate for me.

I'll need a sample log file with certain entries in it. Would you be prepared to carry out certain tasks for me and then send me the log file? It would be things like "Defeat a mob when you have debt."


 

Posted

Of course.

Just tell me what you need exactly.
And I think, it would be better to translate completely. I don't know the source code but not everybody is willing to change the language. For example because of binds or what else.

But I would also help translating... No problem.