Elitist Jerks
Register
Blogs
Chat
Forums
New Posts


Go Back   Elitist Jerks > Public Discussion > User Interface and AddOns

Welcome to Elitist Jerks
If this is your first visit, please be sure to check out the FAQ and the forum rules. Users must register to post and new registrations are subject to a one day "mute" period to get acquainted with the community. To start viewing messages, select the forum that you want to visit from the selection below.

Reply
 
LinkBack (3) Thread Tools
Old 02/14/08, 4:11 PM   3 links from elsewhere to this Post. Click to view. #1 (permalink)
And It's Delicious
 
Kalman's Avatar
 
Orc Shaman
 
Mal'Ganis
MATLAB-based logfile parser for 2.4 combat logs

Well, I was bored, so I wrote a quick and dirty log parser to pull data into MATLAB and split it out appropriately. It doesn't "do" anything yet, because I haven't created any subsidiary functions (things like - show me person N's total damage dealt, for example), but it gets the data in in a raw format where you can manipulate the data to your hearts content.

For example, after running the importer on a 5 hour log of Kalecgos attempts I was provided with, I could filter out Spectral Blast debuffs, retrieve the times when a Blast event was received, calculate the delta between blasts, filter out very short (to remove splash blasts) and long (to remove 'inside' and wipe deltas), and get a very reliable value for time between portals (which is not fixed, for the record).

Or for amusement, maybe I want to check how many 'not enough rage' messages my tank Teepz generates, typically.

sum(find(strcmp(sourcename(find((strcmp(aura,'SPELL_CAST_FAILED')))),'Teepz')) ~= 0)

As it turns out, over ~5 hours, he generated 4537 of these. Or roughly 1 per 4 seconds. Of course, that includes wipe and recovery time. I don't have parsing functions created to generate values for those.

Or, after pulling it in, if I want the more traditional things like "How much damage did player N do with autoattack", I'd do the following.

teepz = find(strcmp(sourcename,'Teepz'));
swings = find(strcmp(aura,'SWING_DAMAGE'));
c = intersect(teepz,swings);
cellamt = amount(c)';
teepzdmg = 0;
for i = 1:size(cellamt,1)
     teepzdmg = teepzdmg + str2num(cellamt{i});
end
teepzdmg
It's by no means a WWS replacement as is, but it'd be easy enough to write one - however, for the MATLAB savvy, you may find it useful for looking for more abstract things, things that WWS doesn't track, and fight analysis on new content where you may be more interested in "When did event N occur?", etc.

Anyway. Play with it - if you get something useful, post it.

(Rename the attached file to .m in order to get MATLAB to recognize it as a script, of course.)
Attached Files
File Type: txt readlog.txt (8.4 KB, 233 views)

http://mmorchive.net

The WoW forums, explained:
Originally Posted by Vontre
Oh, nah, I just type things for the sake of typing things. ^_^
 
User is offline.
Reply With Quote
Old 02/24/08, 1:35 PM   #2 (permalink)
Bald Bull
 
Night Elf Druid
 
Stormreaver
Interesting!

Now if only someone wrote a MATLAB style addon for WoW.

I need to do something useless.
 
User is offline.
Reply With Quote
Old 02/24/08, 7:45 PM   #3 (permalink)
Piston Honda
 
funkydude's Avatar
 
Dwarf Priest
 
Silvermoon (EU)
Originally Posted by Cryect View Post
Interesting!

Now if only someone wrote a MATLAB style addon for WoW.
Would be a godsend for writing boss modules I tell you that!

Nice work Kalman.

Author of BadBoy, BigWigs & Plugins, StatBlockCore & Plugins, BasicChatMods, BasicComboPoints, BasicMinimap, BasicBuffs, fdFrames, LightQueue & FreeMe

WowAce.com Admin
Rogue Idle UI | Rogue Raid UI
Used Addons
 
User is offline.
Reply With Quote
Old 02/24/08, 8:35 PM   #4 (permalink)
Still alive
 
Antiarc's Avatar
 
Human Rogue
 
Cenarion Circle
You are a crazy, wonderful man.
 
User is offline.
Reply With Quote
Reply

Go Back   Elitist Jerks > Public Discussion > User Interface and AddOns

Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Data Parsing, Combat Logs and What to do? Zesmar Class Mechanics 4 05/12/07 12:16 PM
Combat logs and information analysis MIzpah Public Discussion 25 10/02/06 5:15 AM
Huhuran Combat Logs Neige Public Discussion 17 09/07/06 9:35 PM
Combat Logs Malan Public Discussion 13 08/18/06 8:29 AM