Page 1 of 1

Cross-client compatibility Suggestion

Posted: Thu Dec 24, 2009 6:30 am
by forral
Hey guys,

I just have a quick suggestion. I'm really only holding onto Windows to use MUSH/Portal to MUD, but since I heard about this client I'm anxious to switch over to Linux.

As such, I'd like to see support for importing configuation files/settings/aliases/macros/triggers from other file formats, namely the MUSHClient format (.mct) and Portal (.tkp). BOTH are now open source so it'll be alot easier to edit, and I think you guys have the capabilities to make it happen. Portal is older and quite a bit outdated, but MUSH has alot of scripting languages (like Lua) and is easier, in my opinion, to port over its settings. If I were a better programmer I'd help, but unfortunately I'm not.

I'm really looking forward to seeing how Mudlet progresses, since using MUSH through Wine on Linux is, at best, buggy, and Portal doesn't work well enough to use.

Many thanks,
Forral

(Look me up on Materia Magica if anyone wants to MUD! Forral is my character name!)

Re: Cross-client compatibility Suggestion

Posted: Thu Dec 24, 2009 2:05 pm
by Vadi
While it definitely is easier, it's a ton of work. Someone was working on making just an XML Mush importer (so the scripts wouldn't be adjusted for Lua funtions, which are different... just that you wouldn't need to input every new trigger manually) but I'm not sure on the progress of that.

Not the highest priority atm for the core development of the client (new display and mxp are the next programming goal, improved ui/manual and etc are the auxiliaries), but anyone willing is welcome to give a hand with this as it is useful.

Re: Cross-client compatibility Suggestion

Posted: Fri Dec 25, 2009 10:00 pm
by forral
Thanks for your reply Vadi. It's absolutely understandable that this would be a low priority, as other things are much more important. Best of luck on the client, and I can't wait to see the new features!

Re: Cross-client compatibility Suggestion

Posted: Tue Jun 08, 2010 10:48 pm
by Vadi
See https://blueprints.launchpad.net/mudlet ... lient-port, Naftali and I made some functions which emulate MUSH ones - so porting the Lua part of scripts is easier.

Re: Cross-client compatibility Suggestion

Posted: Fri Aug 27, 2010 12:50 am
by Trilliana
Ok, Nub question. Just take the script on the link, put it in a word processor, save as xml and import? (God I feel so dumb if that's right)

Re: Cross-client compatibility Suggestion

Posted: Fri Aug 27, 2010 1:04 am
by Heiko
No, just copy the code and paste it into a new script item. That's it.

Re: Cross-client compatibility Suggestion

Posted: Fri Aug 27, 2010 3:25 am
by Iocun
One also should realize that such a conversion would in all likelihood not work optimally. Some things simply work differently in, say, Mush than in Mudlet and while it would generally be possible to directly translate one into the other, the result might be a lot uglier and less efficient than if the same thing was written for Mudlet in the first place.

I think the best one can do, as a user, is to try to keep pure Lua code and client-specific code somewhat apart, to make such translations easier. For instance, the whole "bowels" of a curing system, i.e. the part that decides what action you take in a certain state, can be written in Lua only, without requiring any send/echo/timer/trigger/other client-specific thing. Personally, I even use my own self-defined functions as variations of send/echo in my curing system, so that the actual commands send() and echo() are only actually called within the functions where I define my own variants.

This would make changing to another Lua-based client relatively easy, since I'd have to change the client-specific commands only in a few, selected places.