Treant Combat System

by Unknown

Back to Mechanic's Corner.

Unknown2009-05-14 15:50:45
Just wondering, but are you updating your potions list anytime soon?
Unknown2009-05-14 15:52:53
Yup. Working on it and should have it released in a day or so. (Silly bottles...)
Kiradawea2009-05-14 19:37:56
What about now that there'll be custom bottles and vials? Will you wait with releasing until you see how it impacts the potionlist?
Unknown2009-05-14 19:39:53
It would be prudent of me, yes. If anyone can give me examples of the things you now see, I'd appreciate it. I'm actually not sure if it'll require much changes to my tracking, if any at all, because of the wildcards I'm already using to match the lines.
Unknown2009-05-15 21:14:49
Version 1.24 is now available! Please check the version history for the summary of what's been changed or added. (For those of you who asked about PSUM: yes, it's fixed now.) And, as always, send me an e-mail if you want updates to any paid scripts.

With this release, my new beast tracking add-in is available, too! See the web page for full details. (I'm rather proud of this one, really. smile.gif )
Unknown2009-05-23 18:47:16
Version 1.25 is now available! This is primarily for anyone who has had the misfortune of putting their potions in bottles and had their tracking screwed up as a result.
Furien2009-05-24 07:26:07
A sudden gust of wind catches you and blows you out of the tree.
You scream as you feel the force of the landing break both your legs.
Run-time error
World: Treant
Immediate execution
:1: attempt to call method 'limb_queue' (a nil value)
stack traceback:
:1: in main chunk


(moving south)
You cannot move as both your legs are crippled.
Run-time error
World: Treant
Immediate execution
:1: attempt to call method 'limb_queue' (a nil value)
stack traceback:
:1: in main chunk


Halp? Version 1.24. Randomly got into a fight, Malicia was wailing on me, I saw a lot of similar errors pop up, but MUSH itself crashed and I lost any logs of that. I don't think I've touched anything. sad.gif
Unknown2009-05-24 07:45:56
Gogo version 1.25! Dunno.
Unknown2009-05-24 11:00:04
When you upgrade, it requires three simple steps: save the new files over the old, reload your script (either by closing and opening your world or hitting Ctrl+Shift+R), and run the /treant:Install() function. Looks to me like you loaded the triggers and not the script.
Furien2009-05-24 20:29:42
QUOTE (Zarquan @ May 24 2009, 04:00 AM) <{POST_SNAPBACK}>
When you upgrade, it requires three simple steps: save the new files over the old, reload your script (either by closing and opening your world or hitting Ctrl+Shift+R), and run the /treant:Install() function. Looks to me like you loaded the triggers and not the script.


I went and upgraded to 1.25 in the meantime and I'm still running into the error. What I did:

1. Downloaded 1.25, saved over all of my files in the previous location.
2. Opened MUSH and my character, logged in, did Ctrl+Shift+R, got 'Initialized Version 1.25'.
3. Did /treant:Install(), got » Installation completed! » Use TCONFIG to set things up.

One example:

CODE
You reach upwards and concentrate on finding a sturdy branch, then lift yourself up with relative ease.
In the trees above an ancient shadowed grove.
The stars twinkle in the clear night sky. You see a single exit leading southeast.
6067h, 6057m, 6965e, 10p, 28153en, 28175w exk-

The chirping of crickets surrounds you in a medley of night-time music.
6067h, 6057m, 6965e, 10p, 28173en, 28175w exk-
» Installation completed!
» Use TCONFIG to set things up.
» Initialized version 1.25
def
Your health is under a Lesser Blessing of the Domotheos of Chaos.
» Defense Status Report:
»   insomnia
»   nightsight
»   kafe
»   frost
»   speed
»   fire
»   moonchilde
»   stance - legs
»   life domoth, minor, +2 constitution for your race
»   life domoth, major, Health regeneration on Prime non-enemy grounds
»   chaos domoth, major, Increased resistance to astral insanity
6067h, 6057m, 6965e, 10p, 28173en, 28175w xk-
unparry
parry head 100
date
time
You cease parrying.
6067h, 6057m, 6965e, 10p, 28173en, 28175w xk-

You adjust your attention spent parrying your head.
6067h, 6057m, 6965e, 10p, 28175en, 28175w xk-

Today is the 14th of Dvarsh, 236 years after the Coming of Estarra. The phase of the moon is that of the Waning Gibbous.

In your world it is Sunday, the 24th of May, in the year 2009.
6067h, 6057m, 6965e, 10p, 28175en, 28175w xk-

It is the middle of the night in Lusternia.
» Nighttime
The phase of the moon is that of the Waning Gibbous.

In your world, it is 2009/05/24 20:28:46 GMT.
See HELP GMT for an explanation of GMT.
6067h, 6057m, 6965e, 10p, 28175en, 28175w xk-

You have recovered equilibrium.
6067h, 6057m, 6965e, 10p, 28175en, 28175w exk-

A sudden gust of wind catches you and blows you out of the tree.
You scream as you feel the force of the landing break both your legs.
Run-time error
World: Treant
Immediate execution
:1: attempt to call method 'limb_queue' (a nil value)
stack traceback:
         :1: in main chunk
Unknown2009-05-24 20:36:04
I suspect then that you've saved the files in the wrong place because I assure you that it works as it should when installed properly. Double (or triple) check the files in your Treant working directory to see if the limb_queue function is in your affs.lua. Search your hard drive for other affs.lua files, if you must!
Furien2009-05-24 20:41:45
QUOTE (Zarquan @ May 24 2009, 01:36 PM) <{POST_SNAPBACK}>
I suspect then that you've saved the files in the wrong place because I assure you that it works as it should when installed properly. Double (or triple) check the files in your Treant working directory to see if the limb_queue function is in your affs.lua. Search your hard drive for other affs.lua files, if you must!


Did this, I see the problem. Between my versions you added that particular part into the affs file, and since I kept the old one to keep my usual curing priority, I missed it. Thanks for the help!
Unknown2009-05-24 20:43:12
Uh huh. That's why I put the modified files in the history, so you folks who insist on modifying my code directly (even though 9 times out of 10 there is a better way) can find what you need more easily. tongue.gif
Daved2009-05-31 20:00:29
smoke 163458
sleep
You take a long drag off your pipe.
Your mind relaxes and you feel as if you could sleep.
4726h, 2433m, 3381e, 10p, 20940en, 10275w elrxkdb-
insomnia
You close your eyes, curl up in a ball, and fall asleep.
4726h, 2433m, 3381e, 10p, 20940en, 10275w elrxkdbp-
stand
You are asleep and can do nothing. WAKE will attempt to wake you.
4726h, 2433m, 3381e, 10p, 20940en, 10275w elrxkdbp-
stand
You are asleep and can do nothing. WAKE will attempt to wake you.
4726h, 2433m, 3381e, 10p, 20940en, 10275w elrxkdbp-
stand
You are asleep and can do nothing. WAKE will attempt to wake you.
4726h, 2433m, 3381e, 10p, 20940en, 10275w elrxkdbp-

errr....
Unknown2009-05-31 21:16:59
AUTO INSOMNIA OFF tongue.gif
Daved2009-06-01 01:52:23
it was spamming stand as I slept, not insomnia
Unknown2009-06-01 02:08:57
Thank you. I'm not an idiot. I did see that. tongue.gif

It was spamming stand, my friend, after it sent insomnia and got that symptom message. Stop that and you fix your problem.

You're welcome.
Daved2009-06-01 02:33:22
» Auto insomnia DISABLED

smoke 163458
sleep
You take a long drag off your pipe.
Your mind relaxes and you feel as if you could sleep.
5182h, 3144m, 3381e, 10p, 20940en, 11551w elrxk-

You close your eyes, curl up in a ball, and fall asleep.
5182h, 3144m, 3381e, 10p, 20940en, 11551w elrxkp-
stand
You are asleep and can do nothing. WAKE will attempt to wake you.
5182h, 3144m, 3381e, 10p, 20940en, 11557w elrxkp-
stand
You are asleep and can do nothing. WAKE will attempt to wake you.
5182h, 3144m, 3381e, 10p, 20940en, 11557w elrxkp-
stand
You are asleep and can do nothing. WAKE will attempt to wake you.
5182h, 3144m, 3381e, 10p, 20940en, 11557w elrxkp-
stand
You are asleep and can do nothing. WAKE will attempt to wake you.
5182h, 3144m, 3381e, 10p, 20940en, 11557w elrxkp-
stand
You are asleep and can do nothing. WAKE will attempt to wake you.
5182h, 3144m, 3381e, 10p, 20940en, 11557w elrxkp-
stand
You are asleep and can do nothing. WAKE will attempt to wake you.
5182h, 3144m, 3381e, 10p, 20940en, 11557w elrxkp-

what's interesting is it didn't do this until the most recent release

When my pipes went out while asleep it also did this:

stand
light coltsfoot
light faeleaf
light myrtle

You are asleep and can do nothing. WAKE will attempt to wake you.
5182h, 3144m, 3381e, 10p, 20940en, 11683w elrxkp-
stand
light coltsfoot
light faeleaf
light myrtle

You are asleep and can do nothing. WAKE will attempt to wake you.

Here's some fun stuff:

You close your eyes, curl up in a ball, and fall asleep.
5182h, 3144m, 3381e, 10p, 19755en, 11829w elrxkp-
» Flag 'prone_check' set to 'table: 0446CA70'
» Affliction added - prone
» OnAfflict prone true
» Affliction added - asleep
» OnAfflict asleep true
» Flag 'prone_check' removed
» Checking whether able to 'act'
» Checking 3 queues...
» General scan
» Balance scan
» Checking whether able to 'stand'
» Flag 'stand_try' set to 'true'
» !! Failsafe setup with 1 second delay: stand
stand
» Checking whether able to 'stance'
» OnPrompt 5182 3144 3381 10 elrxkp-
You are asleep and can do nothing. WAKE will attempt to wake you.
» !! Failsafe executing: offbal_herb
» Disabled 'offbal_herb' failsafe
» OnBalanceGained herb
» !! Failsafe executing: stand
» Flag 'stand_try' removed
» Disabled 'stand' failsafe
» !! Failsafe executing: smoking
» Disabled 'smoking' failsafe
» !! Failsafe executing: herb
» Disabled 'herb' failsafe
5182h, 3144m, 3381e, 10p, 19755en, 11829w elrxkp-
» Affliction updated - asleep
» OnAfflict asleep true
» Checking whether able to 'act'
» Checking 3 queues...
» General scan
» Balance scan
» Checking whether able to 'stand'
» Flag 'stand_try' set to 'true'
» !! Failsafe setup with 1 second delay: stand
stand
» Checking whether able to 'stance'
» OnPrompt 5182 3144 3381 10 elrxkp-
You are asleep and can do nothing. WAKE will attempt to wake you.
Unknown2009-06-01 03:06:45
It's probably because pipes are still on, for the first part anyway.
Sylphas2009-06-01 04:14:05
QUOTE (Zarquan @ May 31 2009, 10:08 PM) <{POST_SNAPBACK}>
Thank you. I'm not an idiot. I did see that. tongue.gif

It was spamming stand, my friend, after it sent insomnia and got that symptom message. Stop that and you fix your problem.

You're welcome.


Sure it's the symptom message? I haven't looked in a while, but could it be the prone prompt kicking out the stand action?