Search found 14 matches

by derekperrault
Sat Jul 11, 2009 3:16 am
Forum: Mudlet Development
Topic: Displaying variables
Replies: 8
Views: 3226

Re: Displaying variables

I think Cmud provides a list display using only a two column table. The problem with trying to generalize this could result in tables of tables... the interface would look too ugly. Why not just run a "pretty printer" on the variable contents? That seems like it'd work out just fine to me. People us...
by derekperrault
Mon Jul 06, 2009 1:07 am
Forum: Howtos, FAQs and Tips & Tricks
Topic: Combining tables
Replies: 2
Views: 2027

Re: Combining tables

You can implement a "poor man's Set" and make use of speedy O(1) key look-ups. enemies = {} enemies['bob'] = 'bob' enemies['charles'] = 'charles' If you attempt to access an enemy that doesn't exist, "nil" is returned, which is a nice handy false value for your if-statement. In this way, you'll only...
by derekperrault
Fri Jun 05, 2009 7:11 pm
Forum: Howtos, FAQs and Tips & Tricks
Topic: Doing computer notifications from Mudlet
Replies: 7
Views: 5639

Re: Doing computer notifications from Mudlet

Actually, Perl (currently v5.8.8) does come pre-installed with Mac OS X.

And, yes, AppleScript (ugh) can be executed from the terminal using the osascript command.
by derekperrault
Fri Jun 05, 2009 5:14 am
Forum: Howtos, FAQs and Tips & Tricks
Topic: Doing computer notifications from Mudlet
Replies: 7
Views: 5639

Re: Doing computer notifications from Mudlet

Vadi, there's nothing native for Mac OSX, but the most popular third-party app for providing notifications is Growl.

I'm not sure if a Lua binding actually exists at the moment.
http://growl.info/documentation/developer/
by derekperrault
Fri Jun 05, 2009 3:23 am
Forum: Mudlet Development
Topic: Last requests before feature freeze
Replies: 46
Views: 15688

Re: Last requests before feature freeze

Heiko wrote:That is true. We should discuss what additional Lua packages we should include. PCRE or LPeg? Maybe even SQLLite.
SQLite would definitely be nice. I also ran into stdlib, which provides a whole host of awesomeness.
by derekperrault
Fri Jun 05, 2009 3:14 am
Forum: Mudlet Development
Topic: Last requests before feature freeze
Replies: 46
Views: 15688

Re: Last requests before feature freeze

Lua Rocks did (eventually) work, but it didn't "just work". In order to install lrexlib, I had to do: luarocks install lrexlib-pcre PCRE_INCDIR=/opt/local/include PCRE_LIBDIR=/opt/local/lib Prior to setting PCRE_INCDIR and PCRE_LIBDIR, the error I was getting was... Error: Could not find expected fi...
by derekperrault
Thu Jun 04, 2009 2:42 pm
Forum: Mudlet Development
Topic: Last requests before feature freeze
Replies: 46
Views: 15688

Re: Last requests before feature freeze

Heiko, absolutely true. As a matter of fact, I built lrexlib yesterday. It was a bear, because there were some undocumented problems I encountered (maybe the way MacPorts installs luarocks borked something... I dunno). The whole time, I kept thinking, "Man, why isn't regexps packaged with Mudlet?" T...
by derekperrault
Thu Jun 04, 2009 12:31 am
Forum: Mudlet Development
Topic: Last requests before feature freeze
Replies: 46
Views: 15688

Re: Last requests before feature freeze

Would it be possible to get PCRE as part of the global API?

Like mushclient? http://www.mushclient.com/scripts/doc.p ... al=lua_rex
by derekperrault
Mon Jun 01, 2009 5:52 pm
Forum: Mudlet Development
Topic: Last requests before feature freeze
Replies: 46
Views: 15688

Re: Last requests before feature freeze

Caled, good call. I completely forgot about path slow-walking as it related to the mapper. I certainly wasn't suggesting paths be utilized by the system as strings... just instantiated using strings. p = path.new('s2w3e') => Path object with attribute: {'s', 'w', 'w', 'e', 'e', 'e'} Then you get all...
by derekperrault
Sun May 31, 2009 9:34 pm
Forum: Mudlet Development
Topic: Last requests before feature freeze
Replies: 46
Views: 15688

Re: Last requests before feature freeze

I see. I was only explaining zMud path features and not making a solid persuasive argument, though. :) I've actually written a scripting engine in Ruby, and after much deliberation, decided to put zMud-style paths in. The deciding factor was I wanted to provide a system-level method of composing dir...