Treant Combat System

by Unknown

Back to Mechanic's Corner.

Unknown2009-09-24 04:02:46
Reinstalling to try and fix a persistent failsafe issue where I doublesip. (And explinations that I get, while I am greatful, may as well be "ok, go to the moon, and bring the moonman a Snapple").

Getting the same error as Kante above:

QUOTE
Run-time error
World: Treant
Immediate execution
:1: module 'treant' not found:
no field package.preload
no file '.\\treant.lua'
no file 'C:\\Program Files\\MUSHclient\\lua\\treant.lua'
no file 'C:\\Program Files\\MUSHclient\\lua\\treant\\init.lua'
no file 'C:\\Program Files\\MUSHclient\\treant.lua'
no file 'C:\\Program Files\\MUSHclient\\treant\\init.lua'
stack traceback:
: in function 'require'
:1: in main chunk
Error context in script:
1*: require "treant"
2 : require "gui"
3 : gui:Init()


I've gone through the instructions slowly and carefully, three times, and still get this. Going to try the delete everything and redownload it.

Also getting that can't find Treant.lua popup when I install, but the file is definitely in the treant folder.
Unknown2009-09-24 04:55:37
You need the line treant:Init() after require "treant".
Everiine2009-09-24 10:29:26
Not anymore, technically.
Gregori2009-09-24 10:41:44
This may or may not cure your problem, but one thing I have found is mushclient is stupid. Sometimes these "can't find blah" errors can be solved by going to where you select your script file, clicking the browse button, then selecting your script file again.

For some reason Mushclient forgets where things are and myself and a couple others have found a few times that reminding it is all it takes to fix it.

Hope that helps... someone.
Unknown2009-09-24 13:48:54
QUOTE
(House of Shadows): You say, "Ok, I got it sorta working now, but I'm getting "Trigger function "treant_prompt_decorate" not found or had a previous error."
Trigger function "treant_prompt_decorate" not found or had a previous error.


(Market): Dysolis says, "Buying magic ink."
Trigger function "treant_prompt_decorate" not found or had a previous error.


A squirrel skitters through the treetops somewhere above.
Trigger function "treant_prompt_decorate" not found or had a previous error.

clt instead of a prompt
(House of Shadows): You say, "Instead of a prompt."
Trigger function "treant_prompt_decorate" not found or had a previous error.


(House of Shadows): Gregori (from the Aetherways) says, "/treant:Install() again."
Trigger function "treant_prompt_decorate" not found or had a previous error.


I did, and its still doing this tongue.gif


Edit: Ok, seems to be working-ish now, thanks Gregori.
Unknown2009-09-24 13:51:50
Gregori gave you bad advice. See Xavim's answer above (or you could e-mail me these things, since you're Serenguard tongue.gif ).
Unknown2009-09-24 14:05:45
Oh, no, Greg gave me the right advice after the advice in the quote failed to work. Thank you though!
Unknown2009-09-24 14:11:57
Since enough people have been having this trouble of late, I've added a one-shot timer to the installation that reloads the script file automatically when you install the updates. smile.gif
Unknown2009-09-24 18:15:29
This may sound rather stupid but how do we uncomment something in the lua script?
Aerotan2009-09-24 18:19:32
-- is the comment flag, I believe. Just delete that.
Unknown2009-09-25 08:22:18
Well, I am, as per what seems to be my usual state of mind, somewhat baffled. I've got version 1.28 and whatnot running just fine, that's not the issue. Earlier today, I switched Ila over to the Serenguard, and I revamped his startup alias. Nothing major, just changing the defenses a bit. The alias is now...


name="fdef__"
match="^\\s*startup\\s*$"
enabled="y"
regexp="y"
send_to="12"
ignore_case="y"
sequence="100"
>
my_defup = {
= php:Table(),
= php:Table(),
= php:Table(),
= php:Table()
}

my_defup = "insomnia"
my_defup = "thirdeye"
my_defup = "rub perfection"
my_defup = "rub kingdom"
my_defup = "rub mercy"
my_defup = "rub beauty"
my_defup = "weathering"
my_defup = "nightsight"
my_defup = "resistance"
my_defup = "combatstyle concentrated"

my_defup = "read protection"
my_defup = "deathsense"
my_defup = "invoke red"
my_defup = "breathe deep"
my_defup = "grip"
my_defup = "regeneration on"
my_defup = "vitality"
my_defup = "staghide"

defs:def_up(my_defup)




But whenever I send it, it doesn't do anything. No echo in the output, no defenses, it just doesn't do anything. I've tried everything I can think of. I've TCONFIG SKILLS'd, reloaded the script, reloaded the world, reinstalled, RESET, and restarted MUSH.

Also, in the vein of weird things suddenly not working, despite being an herbalist, it won't harvest. Auto herbs are on, and it does the 'X coltsfoot queued up for harvesting' but then doesn't actually havest.
Gregori2009-09-25 09:03:42
If you don't display armbalance on your prompt make sure that the variable treant_armbalance is set to 0.

Unknown2009-09-25 09:15:58
Perfect, thanks. All fixed.
Unknown2009-09-30 05:23:37
Sorry for the double post.

Quick question, and it doesn't involve me being a moron this time around.

Is there a way to utilize health potions if you have a medicine bag in your inventory? If you're trying to conserve your bag, for example? If you put your bag in your pack or something it tries to keep touching it instead of switching to health potion.
Gregori2009-09-30 05:53:20
setvar treant_medbag 0
Unknown2009-09-30 05:55:44
Poifect (again). Thankee.
Unknown2009-09-30 10:55:36
P.S. You're Serenguard now, so you can e-mail me directly to ask things like this!
Unknown2009-09-30 19:38:18
Oh, cool. Heh, I can stop bugging everybody.
Unknown2009-10-25 21:52:59
I know it's been some time since I released a new version of Treant. Very busy at work, and then went on vacation to unwind. Plus, some of the changes were large and difficult. I still have plenty of things on my Treant to-do list yet, so thanks to those who've sent in bug reports and/or feature suggestions.

You will find version 1.29 available on the web site now.
Unknown2009-10-25 22:34:38
OH MY GOD YES THANKS ZARQUAN/IASMOS YOU'RE MY HERO.