Search found 52 matches

by Lucky24
Mon Feb 28, 2011 7:13 am
Forum: Help Forum
Topic: Simulating incoming text for testing
Replies: 3
Views: 1615

Simulating incoming text for testing

I tried to search, but couldn't find anything.

Is there a way to simulate incoming text from a MUD to test triggers/scripts?
by Lucky24
Wed Jan 12, 2011 11:26 am
Forum: General Forum
Topic: What Mud do you play?!
Replies: 26
Views: 10793

Re: What Mud do you play?!

by Lucky24
Tue Dec 21, 2010 9:10 am
Forum: Mudlet Development
Topic: [Bug] script compile errors not shown on load
Replies: 3
Views: 1702

Re: [Bug] script compile errors not shown on load

It looks like this is a problem with my saving and loading tables. Apparently table functions aren't saved by the saveVars() function. That's why I'm not getting runtime errors - the scripts are loading fine, but the tables are being overwritten with loadVars(), and losing the function definitions. ...
by Lucky24
Mon Dec 20, 2010 4:18 am
Forum: Mudlet Development
Topic: [Bug] script compile errors not shown on load
Replies: 3
Views: 1702

[Bug] script compile errors not shown on load

I'm having a hard time tracking down some compile errors, as they only seem to happen on first load, but mudlet doesn't show the little bug icon on first connect (as the profile hasn't been loaded I assume), and doesn't seem I think it has to do with some variables not being defined or some such, bu...
by Lucky24
Tue Nov 16, 2010 11:44 am
Forum: Help Forum
Topic: Starting a chat miniconsole
Replies: 5
Views: 2079

Re: Starting a chat miniconsole

so, global_width is not defined, or defined with a nil (nothing) value. search for "global_width", and see where the variable is being defined (or not being defined), which should happen before the Chat script where it is being used.
by Lucky24
Tue Nov 16, 2010 11:28 am
Forum: Help Forum
Topic: Nesting temptriggers
Replies: 5
Views: 2358

Re: Nesting temptriggers

My guess would be the multiple [[ ]] brackets and the carriage returns make the complier confused. When using tempTrigger() and tempTimer(), and I need to use more than one set of [[ ]], I either put all the lua in one line (with semicolons separating the statements), which works fine, or create a n...
by Lucky24
Mon Nov 15, 2010 2:40 pm
Forum: Help Forum
Topic: Basic trigger script
Replies: 4
Views: 1828

Re: Basic trigger script

Also, I usually go for a "try to find the target string anywhere in matches[2]", with a string.find(matches[2],target). Putting it together would look like: string.find(string.lower(matches[2]),target) This returns true (actually the start and end position) if the target string can be foun...
by Lucky24
Mon Nov 15, 2010 2:33 pm
Forum: Help Forum
Topic: house member miniconsole
Replies: 5
Views: 1972

Re: house member miniconsole

You can also always just scroll a miniconsole by hovering over it and using the mouse scroll wheel to scroll up and down if there's too many lines to display (works just like the main window)
by Lucky24
Sat Nov 13, 2010 12:19 am
Forum: Help Forum
Topic: LUA: Passing a local table to a function (for tempTriggers)
Replies: 3
Views: 2152

Re: LUA: Passing a local table to a function (for tempTriggers)

Just a followup on what I actually did to solve this problem for future reference: I decided *not* to use serialization because I don't want to pass all of the properties of the object forward in time to the tempTrigger; I want to actually pass the object, so that any state changes between when the ...
by Lucky24
Tue Nov 09, 2010 4:52 pm
Forum: Help Forum
Topic: LUA: Passing a local table to a function (for tempTriggers)
Replies: 3
Views: 2152

Re: LUA: Passing a local table to a function (for tempTriggers)

Ah, thank you. "Serialization" is the verb I needed to know :)

For reference, here's the wiki page for lua serialization:

Lua-Users Wiki Table Serialization