Issue in EQ2 English Parser with attackers and abilities that contain apostrophes and miss
Hello,
In the current version of the EQ2 English parser, I think there might be an issue the way the parser matches on lines with Player names and an ability which will contain an apostrophe that miss their target.
For example this logged line,
Soandso's unswerving hammer tries to crush Paragon of the Overlord, but Paragon of the Overlord dodges.When this line is parsed, it creates a unique combatant in the fight called "Sosandso's unswerving hammer". That unique combatant is parsed with just failed "swings" at the mob. Successful attacks are credited to the ability (in this case "unswerving hammer") under the proper player's name (in this case, "Soandso").
This occurs for as far as I can tell on any abilities where it misses and contains the string "tries".
For example,
Soandso's aery assassin tries to crush Paragon of the Overlord, but Paragon of the Overlord dodges.
Soandso's shadow tries to crush Paragon of the Overlord, but Paragon of the Overlord dodges the multi attack.
I believe the line where this might be happening is this one from the .CS file
regexArray[3] = new Regex(logTimeStampRegexStr + @"(?<attacker>.+?) (?:try|tries) to (?<attackType>[^ ]+) (?<victimAndSkill>.+?), but (?<why>.+)\.", RegexOptions.Compiled);
Is it as simple of a fix as changing it from "attacker" to "attackerAndSkill" so that attacker and skill string is split on the apostrophe?
If you need any additional information, please let me know.
Thanks for taking a look at this - and - thank you for an amazing tool for EQ2 players!
Halls_of_Fate.Dellmon
Comments
Aditu's unswerving hammer hits Tin Overseer Omega for a critical of 73331 crushing damage.
Solange's Lunar Attendant's Oracle's Blessing heals YOU for 2018 hit points.
Roxylee's Faerie Ally's Faerie Aid heals Kenlow's shadow for 10 hit points.