Search found 30 matches

by Widjet
Tue Aug 14, 2012 5:29 am
Forum: Mudlet Development
Topic: External Packages for Mudlet
Replies: 4
Views: 2095

Re: External Packages for Mudlet

If you're referring to these sorts of modules, there are a couple of problems: The user has to reload them from a new zip file every time there's an update. Sometimes you end up with duplicates loaded in your profile. The modules cannot be easily edited/collaborated on since they are part of monolit...
by Widjet
Tue Aug 14, 2012 4:25 am
Forum: Mudlet Development
Topic: External Packages for Mudlet
Replies: 4
Views: 2095

External Packages for Mudlet

I've been toying with an idea to make script packages easier and more flexible for mudlet. My idea was that we could have 'external packages', which are sets of .lua files within a directory hierarchy that exist in some location separate from the rest of mudlet. The mudlet profile would have a list ...
by Widjet
Tue Aug 14, 2012 3:37 am
Forum: Mudlet Development
Topic: [Feature Request] SysDataUserCommandRequestEvent
Replies: 4
Views: 1493

Re: [Feature Request] SysDataUserCommandRequestEvent

One addendum to Oneymus' code though - make sure you don't run that code twice! Every time you run that code, you're wrapping send in an additional function, which will slow things down. Also, send() can take a second parameter, so you might want to pass that through as well (if you ever want to do ...
by Widjet
Tue Aug 14, 2012 12:15 am
Forum: Mudlet Development
Topic: [Feature Request] SysDataUserCommandRequestEvent
Replies: 4
Views: 1493

Re: [Feature Request] SysDataUserCommandRequestEvent

Could you not override the send function so that it toggled a flag for use with SysDataSendRequest? eg: function newSend(cmd) this_is_send_command = true send(cmd) end function onSysDataSendRequest() if this_is_send_command then --Send command. else --User command. end this_is_send_command = false e...
by Widjet
Thu Oct 27, 2011 5:47 am
Forum: General Forum
Topic: Mudlet features and API requests
Replies: 520
Views: 271440

Re: Mudlet API requests

Oh, I didn't realise. Thanks!

The command line functions are
appendCmdLine
printCmdLine
clearCmdLine
for anyone who's wondering.
by Widjet
Thu Oct 27, 2011 5:22 am
Forum: General Forum
Topic: Mudlet features and API requests
Replies: 520
Views: 271440

Re: Mudlet API requests

Any chance of a function that lets us set the contents of the command textbox? I often find myself wanting to work off an existing block of text - editing clothing designs, for example. At the moment, I have to select the text in the main buffer, paste it into the command line, and strip out the new...
by Widjet
Sun Aug 21, 2011 6:59 am
Forum: General Forum
Topic: Mudlet-2.0-test3 released
Replies: 11
Views: 3580

Re: Mudlet-2.0-test3 released

Git has latest code, it just hasn't been tagged. I don't think that message messes with it, rather mccp was adjusted recently. Post what exactly broke please. Oh good. Just testing again, and it seems the echo isn't messing with the text from the server. I could have sworn it was, maybe I'm working...
by Widjet
Sun Aug 21, 2011 6:28 am
Forum: General Forum
Topic: Mudlet-2.0-test3 released
Replies: 11
Views: 3580

Re: Mudlet-2.0-test3 released

I take it none of these test versions are available on Git? It seems the latest available there is rc5. Can someone please comment out line 1634 of ctelnet.cpp, which says mpHost->mpConsole->print("\n<starting MCCP data compression>\n") It messes with my login script, since it seems to overwrite the...
by Widjet
Sun Aug 21, 2011 3:53 am
Forum: General Forum
Topic: Mudlet-2.0 release candidates [latest: Mudlet 2.0 final]
Replies: 190
Views: 102872

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

Yes, it is, and that's great (I'm using it), but unregistering isn't supported yet, which is a problem for anything temporary. In addition, you can't register arbitrary functions, you register a string that gets executed in the global namespace, which means that you can't register locals with closur...
by Widjet
Sun Aug 21, 2011 2:58 am
Forum: General Forum
Topic: Mudlet-2.0 release candidates [latest: Mudlet 2.0 final]
Replies: 190
Views: 102872

Re: 2.0 snapshots [latest: Mudlet-2.0-rc3]

1. I can add that the function argument can also be provided as a function object. This would allow for pretty much anything. registerAnonymousEventHandler("foo", function coolFunc() my.namespace( "bla") end ) 2. I don't want to add a clear() function because this would be a problem in a multiple p...