mazurwiktor / albion-online-stats

Albion online stats is an extension to MMORPG game - Albion Online. It tracks network traffic and displays various statistics, such as damage and DPS meter calculated from in-game actions.
Apache License 2.0
196 stars 63 forks source link

FPH is calculated wrong. Example: Time 25min, Fane 273.69, FPH 182.09[BUG] #22

Closed 00kl0 closed 4 years ago

00kl0 commented 4 years ago

Describe the bug FPH is calculated wrong. Example: Time 25min, Fame 273.69, FPH 182.09

Log file 14:00:21 [ INFO] Found interfaces: [NetworkInterface { name: "\Device\NPF_{D4532103-D6C7-4733-8D4F-806D52B0284A}", index: 16, mac: Some(40:8d:5c:5c:17:50), ips: [V4(Ipv4Network { addr: 192.168.0.32, prefix: 24 })], flags: 0 }] 14:00:21 [ INFO] Listening to network packets... 14:00:54 [ INFO] NewCharacter parameters: {21: Integer(13073106), 15: Float(256.15594), 31: Integer(13073106), 45: Byte(0), 25: Integer(13073106), 10: String(""), 42: Float(-0.4), 20: Float(38.658684), 9: ByteArray([82, 248, 17, 77, 169, 16, 169, 79, 135, 201, 237, 88, 245, 146, 156, 195]), 13: Array([Float(4.205127), Float(46.074116)]), 41: Float(0.6), 22: Float(333.0), 14: Integer(13073106), 8: String("Fabelhaft"), 18: Float(2416.0), 43: String("VALON"), 36: Byte(6), 23: Float(333.0), 37: Byte(30), 32: Byte(2), 44: ByteArray([53, 220, 117, 243, 231, 176, 238, 77, 165, 93, 233, 69, 149, 74, 181, 151]), 48: Array([Short(-1), Short(-1), Short(37), Short(55), Short(78), Short(-1), Short(99)]), 252: Short(24), 6: ByteArray([0, 0, 14, 0, 5]), 11: String("veteran-starter"), 40: Integer(15775037), 1: String("Coecoenat"), 2: Byte(28), 35: Array([Short(1297), Short(1305), Short(1317), Short(1723), Short(1838), Short(1852), Short(-1), Short(-1), Short(-1), Short(-1), Short(-1), Short(-1), Short(2215), Short(2190)]), 38: Byte(2), 19: Float(2416.0), 24: Float(4.8256736), 30: Float(1984.3679), 33: Array([Short(4581), Short(0), Short(2288), Short(3334), Short(3063), Short(1787), Short(1665), Short(1901), Short(0), Short(0)]), 3: Byte(17), 5: ByteArray([0, 0, 2, 0, 4]), 16: Float(5.5), 12: Array([Float(4.205127), Float(46.074116)]), 7: ByteArray([90, 101, 13, 92, 151, 5, 224, 66, 176, 180, 233, 130, 28, 26, 38, 130]), 29: Integer(13073106), 39: Byte(4), 0: Short(8335)} 14:00:54 [ INFO] Found message NewCharacter(NewCharacter { source: 8335, character_name: "Coecoenat", health: 2416.0, max_health: 2416.0, energy: 333.0, max_energy: 333.0, items: Items { weapon: Some("T8_2H_CURSEDSTAFF"), offhand: None, helmet: Some("T7_HEAD_PLATE_SET3"), armor: Some("T4_ARMOR_CLOTH_MORGANA@3"), boots: Some("T7_SHOES_CLOTH_SET1"), bag: Some("T4_BAG@1"), cape: Some("T4_CAPEITEM_FW_THETFORD@3"), mount: Some("T5_MOUNT_ARMORED_HORSE"), potion: None, food: None } }) 14:00:54 [ INFO] New player (Coecoenat) registered without session, creating new session

To Reproduce Steps to reproduce the behavior: Just look at FPH

Expected behavior speaks for it self

Screenshots grafik

Desktop (please complete the following information):

mazurwiktor commented 4 years ago

Thanks for bug report.

Fixed in fee41b24bcf492fb8bb707890275b6271dfa54ca