495 exception if you enter a character 1 lvl
495 exception if you enter a character 1 lvl
Only because in groups it is possible to run GRs. That error only exists in a group setting, you cannot do GR until you have a key and are level 70 solo. Basic rule of the game.
For anyone interested in fixing it themselves before I release an update: to correct the issue when your character doesn't have a kanai's cube or one with the armor slot filled, open up RunStats_UptimeHelper.cs in a text editor and add a question mark ? after CubeSnoItem2 and before the .Sno on lines 80 and 93. In other words,
becomesCode:Hud.Game.Me.CubeSnoItem2.Sno ==
If you added any custom code for more uptime tracking, make sure you add that question mark if you're checking cube contents as well!Code:Hud.Game.Me.CubeSnoItem2?.Sno ==
You can see "run"-specific stat summaries if you press F5. A table with numbers recorded by TH will appear. This feature is built into Hud, but run-specific stats are not accessible by plugins currently (there is some indication in TH's code that it will be accessible to plugins in the future).
Gold and gold per hour is another one I would like, but in my testing, I have the wrong code. Appreciate having the right code and for g/hr, ShortNumber is fine.
My code (wrong) :
The placeholder is there, but the relevant code above is the part that needs help.Code:TextFunc = () => string.Format("{0} ({1}/h)", Hud.Tracker.Session.DropGold, Hud.Tracker.Session.DropGoldPerHour.ToString("F1")),
Last edited by Vern1701; 06-12-2019 at 04:14 AM.
the Damage and Xp numbers are "exploding" sometimes. Xp numbers are used to explode in others plugins, is it a plugin issue or TH ?
Screenshot_5.png
Last edited by Saico; 06-12-2019 at 03:17 PM.
That's definitely a TH issue and has been documented before.
If you can see the effect of it in your F5 stat table when it happens, then it would be a TH issue. I'm not an expert on this sort of stuff, so I can only guess at what might be causing it. It seemed to me that it tended to happen when the number being handled gets too big in some way. When I dabbled in Normal difficulty while writing and testing unrelated plugins, the Time To Paragon dropdown menu would become very largely negative because the time required to get to my next paragon level (when I was reasonably high paragon level already) while killing monsters in Normal difficulty was probably astronomically high.
This should do it, but I'll test it in about an hour or so. Do you see anything wrong?Code:TextFunc = () => string.Format("{0} ({1}/h)", Hud.Tracker.Session.GainedGold, ValueToString(hud.Tracker.Session.GainedGold, ValueFormat.ShortNumber) Hud.Tracker.Session.GainedGoldPerHour, ValueToString(hud.Tracker.Session.GainedGoldPerHour, ValueFormat.ShortNumber)),
In testing, gold/hr works, but gold is a straight number without commas (so far). Calculation is off, so there is something wrong, but I'll wait for a reply.
Last edited by Vern1701; 06-13-2019 at 02:38 AM. Reason: Early testing results
You are providing 4 bits of data to string.Format() but only printing out two. I am surprised that statement even compiled, as it is missing some essential punctuation.
Code:TextFunc = () => string.Format("{0} ({1}/h)", Hud.Tracker.Session.GainedGold, //delete this ValueToString(hud.Tracker.Session.GainedGold, ValueFormat.ShortNumber) //add a comma after this Hud.Tracker.Session.GainedGoldPerHour, //delete this ValueToString(hud.Tracker.Session.GainedGoldPerHour, ValueFormat.ShortNumber) ),
Im a bonobo when it come to coding ..... is there any way you can add a death breaths per hour tracker ?