Search found 52 matches

by Lucky24
Wed Jul 20, 2011 8:16 am
Forum: General Forum
Topic: Mudlet-2.0-test3 released
Replies: 11
Views: 5830

Re: Mudlet-2.0-test3 released

In this version on Windows 7 (Professional x64), any sound played continues playing even if another sound is started, and thus I'm not entirely sure how to stop a sound from playing once it's started...

The last version I used (rc3) would stop playing all previous sounds if a new sound was triggered.
by Lucky24
Wed Jul 20, 2011 5:44 am
Forum: General Forum
Topic: Mudlet-2.0 release candidates [latest: Mudlet 2.0 final]
Replies: 190
Views: 135183

Re: Mudlet-2.0 release candidates [latest: Mudlet-2.0-rc5+]

That would indeed be the problem.

I fixed it by doing:

arg = {...};

For other changes between Lua 5.0 and 5.1, I found this thread helpful:

http://www.gammon.com.au/forum/?id=7322

Thanks for the help.

BTW, this still works fine in RC3 and below...
by Lucky24
Tue Jul 19, 2011 5:53 am
Forum: General Forum
Topic: Mudlet-2.0 release candidates [latest: Mudlet 2.0 final]
Replies: 190
Views: 135183

Re: Mudlet-2.0 release candidates [latest: Mudlet-2.0-rc5+]

With test3, whenever my scripts try to use elipses (...) for variable length arguments, I get this error: Lua syntax error:[string "----------------------------------..."]:82: attempt to get length of global 'arg' (a nil value) If I assign a value to the arg global variable (say, a 1), the...
by Lucky24
Thu May 12, 2011 12:42 am
Forum: Help Forum
Topic: Creating, Loading and Saving Tables best practices
Replies: 5
Views: 2128

Re: Creating, Loading and Saving Tables best practices

I decided to post here instead of making a new thread, but not quite sure if it should go here. Anyway, table.save() and table.load() saves tables to files inside the Mudlet installation folder, not into the GetMudletHomeDir() folder (in windows: %userprofile%\.config\Mudlet\<ProfileName>) This mean...
by Lucky24
Fri Apr 22, 2011 5:24 am
Forum: Help Forum
Topic: database interface _unique not working
Replies: 4
Views: 1870

database interface _unique not working

I can't seem to get the _unique value for a sheet to work with the database interface: Here's my unit test: local params = { areas={ id="", name="", _index = { "id" }, _unique = { "id" }, _violations = "REPLACE" }, } local myval = db:create("map...
by Lucky24
Tue Mar 29, 2011 4:50 am
Forum: Help Forum
Topic: regex in string matching scripts
Replies: 2
Views: 1499

Re: regex in string matching scripts

Thanks! The programming in Lua book doesn't have any reference to this library, and a google search doesn't bring it up. Thanks.

And I should have quantified regular expressions as PCRE or POSIX.
by Lucky24
Tue Mar 29, 2011 3:58 am
Forum: Help Forum
Topic: Errors displaying lines
Replies: 4
Views: 2116

Re: Errors displaying lines

I sometimes am missing a line at the bottom of a scroll buffer, too, but I'm not running a GMCP or IRE mud. If a script sends lines, sometimes the buffer won't scroll, either. Haven't yet seen a rhyme or reason for it...
by Lucky24
Tue Mar 29, 2011 3:23 am
Forum: Help Forum
Topic: regex in string matching scripts
Replies: 2
Views: 1499

regex in string matching scripts

The built-in lua string library uses its own proprietary pattern matching code, for which I can't seem to find an OR (aka "|") regex equivalent. I would like a more elegant solution, such as regex support in scripts themselves, or a way to have an OR operator for string matches. Any sugges...
by Lucky24
Tue Mar 22, 2011 3:08 am
Forum: Help Forum
Topic: how to make a tick timer?
Replies: 2
Views: 2985

Re: how to make a tick timer?

There isn't much info on permTimers in the manual, but I've made re-occuring timers by encasing normal tempTimers in a function that calls itself when the timer completes. For example my playing toggle: If the function is passed a parameter of -1, it will fire again by calling the function again aft...
by Lucky24
Mon Feb 28, 2011 6:32 pm
Forum: Help Forum
Topic: Simulating incoming text for testing
Replies: 3
Views: 1702

Re: Simulating incoming text for testing

That's strange. I searched the manual for "feed" and only came up with one result, in the getLineNumber() function...

But your link seems to work...very strange.

Attached screenshot of non-existant "feed" in mudlet manual in Chrome.