Display issues (doubling and delays).
Posted: Mon Dec 21, 2009 7:33 pm
First off, love the client. I'm learning Lua by coding both in Mudlet and making AddOns in World of Warcraft, so I'm finding this a complete blast. That being said and done, I have a few simple qualms I hope you folks can help me straighten out.
First off, my display seems to be... doubling, I guess is what you can call it. This happens usually if I've tabbed out of Mudlet and tab in again -- I'll see a few lines that look like they've echoed twice, like:
Scrolling down with my mouse will fix the issue, restoring it to normal.
My second problem is my prompt trigger itself. It fires absolutely fine, but it seems to be choosing if and when it does so! It is currently set up to simply track the value of my stats, and then update my gauges with the appropriate values.
As an aside, I'd love to know if I'm doing this right. Lua doesn't seem terribly hard but it's good to make sure everything's optimized.
Anyhoo, this trigger actually functions pretty nicely, but my gauges seem to only update every fifth prompt or so, it's very bizarre.
Thanks in advance for the help!
First off, my display seems to be... doubling, I guess is what you can call it. This happens usually if I've tabbed out of Mudlet and tab in again -- I'll see a few lines that look like they've echoed twice, like:
Code: Select all
(Bloodloch): Desian says, "However, it is the Keeper's job, and therefore I did it. For nearly 50
(Bloodloch): Desian says, "However, it is the Keeper's job, and therefore I did it. For nearly 50
years now."
H:312/489 M:293/612 E:1263/1263 XP:2580/20052 [] [] [eb]
My second problem is my prompt trigger itself. It fires absolutely fine, but it seems to be choosing if and when it does so! It is currently set up to simply track the value of my stats, and then update my gauges with the appropriate values.
Code: Select all
Pattern:
^H:(\d+)/(\d+) M:(\d+)/(\d+) E:(\d+)/(\d+) XP:(\d+)/(\d+) \[(.*)\] \[(.*)\] \[(\w+)\]$
Script:
HP = matches[2]
MaxHP = matches[3]
MP = matches[4]
MaxMP = matches[5]
End = matches[6]
MaxEnd = matches[7]
XP = matches[8]
MaxXP = matches[9]
Pose = matches[10]
Stats = matches[11]
Balances = matches[12]
if string.find(matches[12],"e") == nil
then EQ = 0
else EQ = 1
end;
if string.find(matches[12],"b") == nil
then BAL = 0
else BAL = 1
end;
setGauge("healthBar", HP, MaxHP, " Health: " .. HP .. "/" .. MaxHP)
setGauge("manaBar", MP, MaxMP, " Mana: " .. MP .. "/" .. MaxMP)
setGauge("enduranceBar", End, MaxEnd, " Endurance: " .. End .. "/" .. MaxEnd)
setGauge("experienceBar", XP, MaxXP, " Experience: " .. XP .. "/" .. MaxXP)
Anyhoo, this trigger actually functions pretty nicely, but my gauges seem to only update every fifth prompt or so, it's very bizarre.
Thanks in advance for the help!