I tried to search, but couldn't find anything.
Is there a way to simulate incoming text from a MUD to test triggers/scripts?
Search found 52 matches
- Mon Feb 28, 2011 7:13 am
- Forum: Help Forum
- Topic: Simulating incoming text for testing
- Replies: 3
- Views: 2895
- Wed Jan 12, 2011 11:26 am
- Forum: General Forum
- Topic: What Mud do you play?!
- Replies: 26
- Views: 19580
- Tue Dec 21, 2010 9:10 am
- Forum: Mudlet Development
- Topic: [Bug] script compile errors not shown on load
- Replies: 3
- Views: 3131
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. ...
- Mon Dec 20, 2010 4:18 am
- Forum: Mudlet Development
- Topic: [Bug] script compile errors not shown on load
- Replies: 3
- Views: 3131
[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...
- Tue Nov 16, 2010 11:44 am
- Forum: Help Forum
- Topic: Starting a chat miniconsole
- Replies: 5
- Views: 3623
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.
- Tue Nov 16, 2010 11:28 am
- Forum: Help Forum
- Topic: Nesting temptriggers
- Replies: 5
- Views: 3993
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...
- Mon Nov 15, 2010 2:40 pm
- Forum: Help Forum
- Topic: Basic trigger script
- Replies: 4
- Views: 3636
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...
- Mon Nov 15, 2010 2:33 pm
- Forum: Help Forum
- Topic: house member miniconsole
- Replies: 5
- Views: 3864
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)
- Sat Nov 13, 2010 12:19 am
- Forum: Help Forum
- Topic: LUA: Passing a local table to a function (for tempTriggers)
- Replies: 3
- Views: 3778
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 ...
- Tue Nov 09, 2010 4:52 pm
- Forum: Help Forum
- Topic: LUA: Passing a local table to a function (for tempTriggers)
- Replies: 3
- Views: 3778
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
For reference, here's the wiki page for lua serialization:
Lua-Users Wiki Table Serialization