Unknown2007-12-22 06:25:30
Alright, so I'm having a pretty big problem with my system. I've been working on it for a long time, and it works pretty good in 1v1 spars, or in fights where I don't build up an overwhelming number of afflictions. I've been wondering what was getting it so off track, and I've been looking through a few logs trying to figure out what it is. It seems like all of my checks are detecting the value of variables too slow.
For example, sometimes when I log in, I will eat faeleaf to get sixthsense, and my system will automatically eat earwort instead of waiting for herb balance to actually come back. This doesn't happen every time, though. Also, I will sometimes drink fire and frost one after the other, instead of waiting for potionbalance. I'm going to post a few pieces of code and a few logs for you guys to better help me out. I am using zmud 7.21.
3676h, 4278m, 4512e, 10p, 14830en, 19439w xkdb- 1 0 1 1 0-
You may eat or smoke another herb.
outr horehound
eat horehound
You have recovered equilibrium.
3676h, 4278m, 4512e, 10p, 14830en, 19439w exkdb- 1 2 1 1 0-
A sudden headache makes you rub your temples for relief.
Now would be a good time to have focus mind.
3676h, 4278m, 4512e, 10p, 14830en, 19439w exkdb- 1 2 1 1 0-
You eat a horehound blossom.
Prudence rules your psyche once again.
2788h, 3603m, 3823e, 6p, 14830en, 19439w exkdb-
Zacc's eyes lose their focus suddenly.
2788h, 3603m, 3823e, 6p, 14830en, 19439w exkdb-
Dregar's aura of weapons rebounding disappears.
Dregar cracks a battered tahto staff precisely into your right arm, causing
smoke 145539
spasms to numb your stiffening side.
Dregar cracks a battered tahto staff precisely into your left arm, causing
spasms to numb your stiffening side.
A prickly stinging overcomes your body, fading away into numbness.
focus body
With a quick spin, Dregar kicks you in the chest with his left foot.
1947h, 3603m, 3823e, 6p, 14830en, 19439w exkdbp- 1 2 1 1 0-|Restr!drink health
read 69892
You take a long drag off your pipe.
The plant has no effect.
1947h, 3603m, 3823e, 6p, 14830en, 19439w exkdbp- 2 0 1 1 0-|Restr!
Okay, to explain my prompt, I echo all of my current balances, and if I'm aeoned, in the form of numbers. This is mainly there for debugging, so I can see where my system usually messes up at. It's a good thing I had this too, or I would not have picked up this problem so fast. the second number over, the one I bolded, is my herbbalance. It's 2 right after trying something.
Notice how the first time, while I have recklessness, it eats horehound perfectly, right after I get herb balance back. Next I get hemiplegy from Dregar, and I try to smoke myrtle to cure it. This should not happen, since I don't have herb balance back.
This is the first part of my pipequeue
#if (@judgeblock=0 and @asthma=0 and @herbbalance=1 and @sap=0 and @choke=0 and @asleep=0 and @stunned=0 and @aeon=0)
This is my alias for eating horehound:
#if (@herbbalance=1) {
#va herbbalance 2
#va tryingHorehound 1
outr horehound
eat horehound
}
#alarm +2 {
#if (@herbbalance=2) {
#va herbbalance 1
#va tryingHorehound 0
}
}
How the heck am I supposed to account for this?
For example, sometimes when I log in, I will eat faeleaf to get sixthsense, and my system will automatically eat earwort instead of waiting for herb balance to actually come back. This doesn't happen every time, though. Also, I will sometimes drink fire and frost one after the other, instead of waiting for potionbalance. I'm going to post a few pieces of code and a few logs for you guys to better help me out. I am using zmud 7.21.
QUOTE
3676h, 4278m, 4512e, 10p, 14830en, 19439w xkdb- 1 0 1 1 0-
You may eat or smoke another herb.
outr horehound
eat horehound
You have recovered equilibrium.
3676h, 4278m, 4512e, 10p, 14830en, 19439w exkdb- 1 2 1 1 0-
A sudden headache makes you rub your temples for relief.
Now would be a good time to have focus mind.
3676h, 4278m, 4512e, 10p, 14830en, 19439w exkdb- 1 2 1 1 0-
You eat a horehound blossom.
Prudence rules your psyche once again.
2788h, 3603m, 3823e, 6p, 14830en, 19439w exkdb-
Zacc's eyes lose their focus suddenly.
2788h, 3603m, 3823e, 6p, 14830en, 19439w exkdb-
Dregar's aura of weapons rebounding disappears.
Dregar cracks a battered tahto staff precisely into your right arm, causing
smoke 145539
spasms to numb your stiffening side.
Dregar cracks a battered tahto staff precisely into your left arm, causing
spasms to numb your stiffening side.
A prickly stinging overcomes your body, fading away into numbness.
focus body
With a quick spin, Dregar kicks you in the chest with his left foot.
1947h, 3603m, 3823e, 6p, 14830en, 19439w exkdbp- 1 2 1 1 0-|Restr!drink health
read 69892
You take a long drag off your pipe.
The plant has no effect.
1947h, 3603m, 3823e, 6p, 14830en, 19439w exkdbp- 2 0 1 1 0-|Restr!
Okay, to explain my prompt, I echo all of my current balances, and if I'm aeoned, in the form of numbers. This is mainly there for debugging, so I can see where my system usually messes up at. It's a good thing I had this too, or I would not have picked up this problem so fast. the second number over, the one I bolded, is my herbbalance. It's 2 right after trying something.
Notice how the first time, while I have recklessness, it eats horehound perfectly, right after I get herb balance back. Next I get hemiplegy from Dregar, and I try to smoke myrtle to cure it. This should not happen, since I don't have herb balance back.
This is the first part of my pipequeue
#if (@judgeblock=0 and @asthma=0 and @herbbalance=1 and @sap=0 and @choke=0 and @asleep=0 and @stunned=0 and @aeon=0)
This is my alias for eating horehound:
#if (@herbbalance=1) {
#va herbbalance 2
#va tryingHorehound 1
outr horehound
eat horehound
}
#alarm +2 {
#if (@herbbalance=2) {
#va herbbalance 1
#va tryingHorehound 0
}
}
How the heck am I supposed to account for this?
Xavius2007-12-22 06:53:48
Your system acknowledged no herb balance right after it got the failed herb message. That's not a slow uptake. Are you sure that eating horehound was properly turning off your herb balance at all?
Unknown2007-12-22 07:11:56
That's what Im saying, sometimes it's slow and sometimes it's not.
You can see my horehound alias right there, it HAS to set herbbalance to 2 if it's eating it.
Also notice my prompt stops spitting out information for a second to, like it's too fast to read anything.
You can see my horehound alias right there, it HAS to set herbbalance to 2 if it's eating it.
Also notice my prompt stops spitting out information for a second to, like it's too fast to read anything.
Xavius2007-12-22 07:13:12
QUOTE(Deschain @ Dec 22 2007, 01:11 AM) 469235
That's what Im saying, sometimes it's slow and sometimes it's not.
You can see my horehound alias right there, it HAS to set herbbalance to 2 if it's eating it.
You can see my horehound alias right there, it HAS to set herbbalance to 2 if it's eating it.
And it looks like it did. Second number, right?
Unknown2007-12-22 07:17:08
QUOTE(Xavius @ Dec 22 2007, 02:13 AM) 469236
And it looks like it did. Second number, right?
Yes, but then I smoked myrtle anyway, which, as you can see from my pipequeue, should not have happened. It should only smoke if my herbbalance is 1.
Xavius2007-12-22 07:19:54
QUOTE(Deschain @ Dec 22 2007, 01:17 AM) 469237
Yes, but then I smoked myrtle anyway, which, as you can see from my pipequeue, should not have happened. It should only smoke if my herbbalance is 1.
But it sets itself to 1 after two seconds if it doesn't go to zero. It never went to zero. You only have output on the prompt, so, if your system is running the herb check continuously, you'll never see it go to 1.
EDIT: Also, #alarm doesn't care if the variable hits 0 at any point other than when it checks. That means, two seconds after every check to see if you have herb balance or not, if that variable says 2, it's going to go back to 1, even if it went from 1 to 2 just a fraction of a second earlier. With that setup, you need to make sure the variable goes to 0 every single time.
Unknown2007-12-22 07:25:54
Yes, but it takes 2 seconds to get herbbalance back anyway, which is why it's doing that. Also, I'm an Elfen, so really I should be getting herbbalance back even faster.
Do you think I should change my alarm to 2.5 seconds to be safe?
Do you think I should change my alarm to 2.5 seconds to be safe?
Xavius2007-12-22 07:27:03
QUOTE(Deschain @ Dec 22 2007, 01:25 AM) 469240
Yes, but it takes 2 seconds to get herbbalance back anyway, which is why it's doing that. Also, I'm an Elfen, so really I should be getting herbbalance back even faster.
Do you think I should change my alarm to 2.5 seconds to be safe?
Do you think I should change my alarm to 2.5 seconds to be safe?
No, I think you should make sure eating properly turns off herb balance.
Unknown2007-12-22 07:28:23
Pattern: You eat a horehound blossom.
Value:
#if (@tryingHorehound=1) {
#va herbbalance 0
#va ateHorehound 1
#va tryingHorehound 0
}
There's also a second state on that trigger, which checks to see if the prompt comes immediatly after:
#if (@ateHorehound=1) {
#va achromaticaura 0
#va egovice 0
#va manabarbs 0
#va healthleech 0
#va powerspikes 0
#va recklessness 0
#va ateHorehound 0
}
Value:
#if (@tryingHorehound=1) {
#va herbbalance 0
#va ateHorehound 1
#va tryingHorehound 0
}
There's also a second state on that trigger, which checks to see if the prompt comes immediatly after:
#if (@ateHorehound=1) {
#va achromaticaura 0
#va egovice 0
#va manabarbs 0
#va healthleech 0
#va powerspikes 0
#va recklessness 0
#va ateHorehound 0
}
Xavius2007-12-22 07:37:38
Hrm. You've got me stumped there. It fixed itself right away when the pipe was smoked, though. Are you sure the trigger is enabled and in an enabled class?
Unknown2007-12-22 07:40:31
Yeah. All of my classes are enabled except some old ones I used with Alban when he was a Druid, but all of those are class specific.
There are certain triggers I turn off and on for illusion protection, but those are stored in a completely different class, and do not effect my balances at all. I'm looking through them, and I see a few of my older created triggers I did this
variable=value
instead of
#va variable value
Is that first method slower?
There are certain triggers I turn off and on for illusion protection, but those are stored in a completely different class, and do not effect my balances at all. I'm looking through them, and I see a few of my older created triggers I did this
variable=value
instead of
#va variable value
Is that first method slower?
Xavius2007-12-22 07:41:23
QUOTE(Deschain @ Dec 22 2007, 01:40 AM) 469248
Yeah. All of my classes are enabled except some old ones I used with Alban when he was a Druid, but all of those are class specific.
There are certain triggers I turn off and on for illusion protection, but those are stored in a completely different class, and do not effect my balances at all. I'm looking through them, and I see a few of my older created triggers I did this
variable=value
instead of
#va variable value
Is that first method slower?
There are certain triggers I turn off and on for illusion protection, but those are stored in a completely different class, and do not effect my balances at all. I'm looking through them, and I see a few of my older created triggers I did this
variable=value
instead of
#va variable value
Is that first method slower?
No. Plus, you're not showing signs of system lag. That's not your issue.
EDIT: Do you have multiple copies of the involved variables? Sometimes, triggers and aliases will create and reference variables in different classes. Just search for the variable name to check.
Unknown2007-12-22 07:45:37
I did a filter for it, and only found one variable when I searched for herbbalance.
Xavius2007-12-22 07:46:06
QUOTE(Deschain @ Dec 22 2007, 01:45 AM) 469252
I did a filter for it, and only found one variable when I searched for herbbalance.
What about tryingHorehound?
Unknown2007-12-22 07:48:20
Just one.
Xavius2007-12-22 07:50:08
Ok, now try this: manually set tryingHorehound to 1, then eat a piece of horehound. If your herb balance doesn't go to zero, that trigger isn't being called properly. If your herb balance does go to 0, reset it so your system doesn't stop working on you, then do a filter search for tryingHorehound again.
Unknown2007-12-22 07:53:27
Okay, after setting tryingHorehound to 1.
3676h, 4278m, 4512e, 10p, 14830en, 19510w exdb- 1 1 1 1 0-outr horehound
eat horehound
3676h, 4278m, 4512e, 10p, 14830en, 19510w exdb- 1 2 1 1 0-
You eat a horehound blossom.
3676h, 4278m, 4512e, 10p, 14830en, 19510w exdb- 1 0 1 1 0-
You may eat or smoke another herb.
3676h, 4278m, 4512e, 10p, 14830en, 19510w exdb- 1 1 1 1 0-
3676h, 4278m, 4512e, 10p, 14830en, 19510w exdb- 1 1 1 1 0-outr horehound
eat horehound
3676h, 4278m, 4512e, 10p, 14830en, 19510w exdb- 1 2 1 1 0-
You eat a horehound blossom.
3676h, 4278m, 4512e, 10p, 14830en, 19510w exdb- 1 0 1 1 0-
You may eat or smoke another herb.
3676h, 4278m, 4512e, 10p, 14830en, 19510w exdb- 1 1 1 1 0-
Xavius2007-12-22 07:55:26
QUOTE(Deschain @ Dec 22 2007, 01:53 AM) 469258
Okay, after setting tryingHorehound to 1.
3676h, 4278m, 4512e, 10p, 14830en, 19510w exdb- 1 1 1 1 0-outr horehound
eat horehound
3676h, 4278m, 4512e, 10p, 14830en, 19510w exdb- 1 2 1 1 0-
You eat a horehound blossom.
3676h, 4278m, 4512e, 10p, 14830en, 19510w exdb- 1 0 1 1 0-
You may eat or smoke another herb.
3676h, 4278m, 4512e, 10p, 14830en, 19510w exdb- 1 1 1 1 0-
3676h, 4278m, 4512e, 10p, 14830en, 19510w exdb- 1 1 1 1 0-outr horehound
eat horehound
3676h, 4278m, 4512e, 10p, 14830en, 19510w exdb- 1 2 1 1 0-
You eat a horehound blossom.
3676h, 4278m, 4512e, 10p, 14830en, 19510w exdb- 1 0 1 1 0-
You may eat or smoke another herb.
3676h, 4278m, 4512e, 10p, 14830en, 19510w exdb- 1 1 1 1 0-
Hrm.
How's your recklessness curing triggered?
Unknown2007-12-22 08:00:25
^Prudence rules your psyche once again.$
recklessness=0
herbqueue
pipequeue
salvequeue
potionqueue
recklessness=0
herbqueue
pipequeue
salvequeue
potionqueue
Xavius2007-12-22 08:03:42
QUOTE(Deschain @ Dec 22 2007, 02:00 AM) 469261
^Prudence rules your psyche once again.$
recklessness=0
herbqueue
pipequeue
salvequeue
potionqueue
recklessness=0
herbqueue
pipequeue
salvequeue
potionqueue
Nothing to do with the rest, eh?
I give up. Hopefully someone else will have better ideas in the morning.