Treant Combat System

by Unknown

Back to Mechanic's Corner.

Unknown2009-07-22 11:08:25
QUOTE (Zarquan @ Jul 22 2009, 10:39 AM) <{POST_SNAPBACK}>
You really should stop posting here and just buy a support contract. smile.gif


Seriously. I don't bother Iasmos a lot with my inane nub coding questions and or general failness, but when I do, sometimes he answers back with a solution in a matter of minutes. Maybe it's my time zone, or maybe I'm lucky, but I'm fairly positive he either doesn't sleep, or receiving emails from people who have bought contracts send a few thousand volts through alligator clips attached to his nipples until he hits the reply button.
Unknown2009-07-22 17:05:34
I plan to as soon as I can afford it. Since I clearly need it.
Zallafar2009-07-26 01:08:59
So Zarquan, how long have you been working on your system? I decided at some point to do a full-fledged system for Mac/TinyFugue and it seems like I have put an extraordinary amount of time into it over the last 9 months. I have about 14,000 lines of code and it seems like maybe I'm only half done! And by full-fledged I only mean that supports my skills; I'm not trying to be general enough for anyone to use it.

Unknown2009-07-26 04:33:53
It took me about 3-4 months to develop the first version. I've been upgrading and maintaining it for about 8-9 months now. It's made more difficult with the whole "generalized for everyone to use" thing, but any system takes a lot of dedication, skill, and free time to build properly.
Unknown2009-07-26 13:09:43
I've been wondering, how come Treant doesn't properly defup my alt character or even properly light and smoke the pipes. I've gone into the variables and it all looks fine or at least identical to my main. sad.gif
Unknown2009-07-26 13:15:26
Misconfiguration is generally the cause. Sometimes things are missing in Treant, however, because no one's asked me to add them.
Unknown2009-07-26 13:48:14
How would I go about fixing the misconfiguration?
Unknown2009-07-26 13:50:14
Option 1: Read all included documentation and pore over the code to find anything else that might be undocumented.
Option 2: Buy a support contract and e-mail me.
Razenth2009-07-26 17:14:24
Do you have left right arm balance configed to show on your prompt?
Unknown2009-07-26 17:46:13
Its fixed. biggrin.gif Thanks to whoever took time to read and figure out.
Unknown2009-07-29 16:21:02
Hi, I followed all the instructions from the website and I think I have it working but I'm getting the following message in place of my prompt.

Trigger function "treant_prompt_decorate" not found or had a previous error

The GUI status bars are working fine but would also be nice to have a prompt. Anyone know how to fix it please?
Unknown2009-07-29 16:23:49
Reload the script. It's a MUSHclient quirk I recently learned about.
Unknown2009-07-29 16:27:40
Huzzah! Thanks
Razenth2009-08-03 22:35:55
Does anyone have a timestamp module that can be integrated into Treant, any version?
Chade2009-08-03 22:37:45
Speak to Gregori about his prompt replacement module, it costs credits but its a nice design which includes more than just timestamp. Can customise prompt with it very easily too, although I must admit I don't use it currently.
Unknown2009-08-04 00:14:36
Did you scroll up to post 655?



I've released version 1.27 now, too! See the history for changes. And, if you are getting the "script error, function not found" (or whatever it actually says) error, then just reload your script or world after you've installed the new version. It's a feature of MUSHclient brought out by my method of importing everything from XML.



On another note, I need a few candidates to help me test my monstrous new creation: a mapper module written purely in Lua. It's based entirely on the LMTS code, so it's 100% compatible with the file format, but it's still lacking a few of the lesser used aliases. I'm afraid that not just anyone will be chosen to help me test this, however, as it is a big script with lots to see and do. In order to be considered, you must meet the following qualifications: current support contract for Treant, skilled with Lua, very familiar with the MudBot mapper commands, and a patient tester/debugger. (I already have a few names in mind, but I wanted to see who was really interested in this script before I started approaching people.) E-mail me, if interested. Thanks.
Razenth2009-08-04 01:35:20
Someone wanted a 'prettier' timestamp so this is adapted from Iasmos's post 655.

Just copy and paste the code below into your script file.

CODE


function timestamper()
  local time_ms = GetInfo(232)
  local minutes = math.floor(time_ms/60)
  local seconds = math.floor(time_ms%60)
  local milli = ((time_ms%60)-seconds)*100
  ColourTell("dimgray", "", string.format(" ", minutes, seconds, milli))
  queue:add(function () treant:suffix(timestamper) end)
end

treant:suffix(timestamper)


That's for the timestamp AFTER your normal prompt.

CODE


function timestamper()
  local time_ms = GetInfo(232)
  local minutes = math.floor(time_ms/60)
  local seconds = math.floor(time_ms%60)
  local milli = ((time_ms%60)-seconds)*100
  ColourTell("dimgray", "", string.format(" ", minutes, seconds, milli))
  queue:add(function () treant:prefix(timestamper) end)
end

treant:prefix(timestamper)


That's for the stamps BEFORE your normal prompt.

If you don't like the color, change the first field in the ColourTell, which is normally "dimgrey", to something else.
Everiine2009-08-04 01:41:38
Do we have to update MUSH from 4.40 to 4.41 as well? Though the link on your page works, the Downloads page for MUSH still only has 4.40, and so far 4.40 seems to be working for me.
Unknown2009-08-04 01:44:12
You need 4.37 to 4.41. Just don't use 4.42, as it breaks the "match-on-color" triggers.
Lawliet2009-08-05 00:18:57
I seem to be getting this:

104 : = true
105 : }
106 : --]]
107 :
108*: require "treant"
109 :
110 : require "gui"
111 : gui:Init()
112 :


And I also get:

Line 446: C:\\Program Files\\MUSHclient\\worlds\\plugins\\treant_plugin_atcp.xml was not found. (include file not loaded)
Line 447: C:\\Program Files\\MUSHclient\\worlds\\plugins\\treant_plugin_map.xml was not found. (include file not loaded)

On something called XML import warnings

Little help?