• Peter: Combat Log

    Characters: Rittal[85] Mieville[80] Terlan[80] Caltera[67] Dynia[67]
    Created: 2008-09-05 10:50:53

    irb(main):002:0> a = Syndicate::CombatLog::CombatLog.new
    => #<Syndicate::CombatLog::CombatLog:0x7fb8da1f3e80 @year=2008, @units={}>
    irb(main):003:0> a.from_file(File.open("/home/peter/Sethekk-Halls-Heroic.txt"))
    => nil
    irb(main):008:0> a.units
    => {"0xF130004B06000619"=>#<Syndicate::CombatLog::Unit:0x7fb8d895d150 @id="0xF130004B06000619", @name="\"Syth Shadow Elemental\"", @flags=2600>, "0xF1401859FA000005"=>#<Syndicate::CombatLog::Unit:0x7fb8d8a0df78 @id="0xF1401859FA000005", @name="\"Gakloz\"", @flags=4648>, "0xF130004B05000609"=>#<Syndicate::CombatLog::Unit:0x7fb8d8744d78 @id="0xF130004B05000609", @name="\"Syth Arcane Elemental\"", @flags=2600>, "0xF1401859FA000006"=>#<Syndicate::CombatLog::Unit:0x7fb8da1ebdc0 @id="0xF1401859FA000006", @name="\"Gakloz\"", @flags=4648>, "0xF13000478F000242"=>#<Syndicate::CombatLog::Unit:0x7fb8d89c7c30 @id="0xF13000478F000242", @name="\"Time-Lost Scryer\"", @flags=2632>, "0xF130004792000232"=>#<Syndicate::CombatLog::Unit:0x7fb8d88e11b8 @id="0xF130004792000232", @name="\"Sethekk Ravenguard\"", @flags=67111496>, "0xF130000FEC00026E"=>#<Syndicate::CombatLog::Unit:0x7fb8d891a350 @id="0xF130000FEC00026E", @name="\"Roach\"", @flags=2600>


    "Things" are being worked on...

    P.
    "I may not have gone where I intended to go, but I think I have ended up where I needed to be." -- Douglas Adams
    • Peter: Re: Combat Log

      Characters: Rittal[85] Mieville[80] Terlan[80] Caltera[67] Dynia[67]
      Created: 2008-09-05 19:18:57 Edited: 2009-04-11 00:17:55

      http://redmine.midnightsyndicate.eu/documents/show/1

      Well gee, I've been having a jolly good think about this. It's perfectly possible, however in order to do it I'm going to have to implement a state machine in Ruby which is then used to "replay" the combat log and see what's happened at the end.

      If any of the devs want a go there is a new repo for this, it's just a separate project at the moment.

      git clone ssh://midnightsyndicate.eu/home/git/syndicate-combatlog

      Very useful documents are:
      CombatLog Event Format
      Explaination of targets and flags on units.
      Good Discussion On When Combat Starts

      I've not given up don't get me wrong, but right at this very moment, it seems like it'll require a lot of work. Could be fun. Other questions are should this just be harmonised into a database structure which can be queried easily?

      I pondered a unit table, which had encounters linking two units, and then spells that where used in that encounter. Or at least when a boss went into combat, and then users linked to that combat session via actions, spells and casts?

      Sample combat log is: http://midnightsyndicate.eu/~sara/Sethekk-Halls-Heroic.txt

      P.
      "I may not have gone where I intended to go, but I think I have ended up where I needed to be." -- Douglas Adams