Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ Tips and tricks ➜ Drow language

Drow language

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Ranthony   (12 posts)  Bio
Date Fri 16 May 2003 02:36 AM (UTC)
Message
I'm looking for a method to translate what I speak into drow. I have a text file that's in this format:


abban=ally
abbil=friend
abbil=comrade

Looking to be able to maybe alias dsay to call the script to convert what I typed to drow, and say that. So for example, I'd type: dsay Hello
and the script would parse the text file for hello, grab the drow word, and say that. would this be tough?


Also,(heh, I know, another linux idiot) I'm running debian potato with codeweavers rpm of wine version 20020904 and mushclient version 3.42. After the splash screen loads, the timed delay counts. As soon as the count is over, and I click the number.. mushclient crashes. I've sent the dump to a few of the email addresses of the wine developers. Tried changing the config file for wine as well. I always use the /wine flag though. I'm going to try to set up wine to use a partition with windows installed, maybe that will work. I'll let you know what comes of it. :-P
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #1 on Fri 16 May 2003 04:42 AM (UTC)
Message
The wine version doesn't support scripting so yes, it will be hard. :)

That is because it requires the Microsoft script interface which didn't seem to exist in Wine when I tested it.

As for the crashes, it did that a couple of times for me, but once it "got over it" it seemed to go OK after that.

I used codeweavers-wine-20020904-7.i386.rpm - did you have that exact one? You didn't mention the -7 suffix.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Ranthony   (12 posts)  Bio
Date Reply #2 on Fri 16 May 2003 12:47 PM (UTC)

Amended on Fri 16 May 2003 12:48 PM (UTC) by Ranthony

Message
Hmm, no scripting then... guess I'm going to have to install vmware and just run it from there. Probably be easier than messing with wine. here's what I had.

[zion@mars zion]$ ls *.rpm
codeweavers-wine-20020904-7.i386.rpm

So yup, had the -7 suffix. No worries though, I can just use vmware until there is a version for linux. I've found some good clients in linux, some have mappers, some have scripting, some have good timer, alias and macro implementations. But not a single one has all of them. My current client gmudix can't log, and doesn't support scripting. kmud has an automapper and speedwalking, but no scripting, and the triggers can only be disabled by deleting them, or changing the trigger so that nothing matches it... not good for rolling. gnome-mud has funky triggers that sometimes work, and sometimes don't. scrolling works, as long nothing else is added to the buffer, if anything changes on the screen, it tries to scroll VERY slowly back to the bottom. So, in short. There are a number of clients for linux, but so far, none of them has it all.... not like mushclient.

Thanks again for all your help Nick.
Ray

oh, btw. once I get it installed on windows, how would I do the drow translation?
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #3 on Fri 16 May 2003 08:53 PM (UTC)

Amended on Fri 16 May 2003 08:54 PM (UTC) by Nick Gammon

Message
It should work fine under VMware for you. I actually type these messages in on my Mac usually and have MUSHclient running in the background (another window) on the Mac version of VMware. Slightly slow perhaps, but that is the cost of an emulator. Fortunately because MUSHclient is fast you won't notice any big delays in the client per se, just VMware in general.

(I do use normal Windows on a dedicated PC for development, doing development on an emulator would be a bit much!).

To do the translation a bit would depend on what language you chose, and in MUSHclient you can use any of VBscript, Jscript, Perlscript, and Python, and even mix them if you put what you want to do in a plugin.

One approach would be to read in your file of word equivalents (using the FileSystem object in the script language would be a simple way), store them in an array, and then break up your line (eg. using Split in VB) look up each word in the array, and replace with the equivalent. I think Perl or Python have better string and array handling so they might be better for that.

Another approach would be to use a database and store your words there. This would be faster initially (because you don't need to scan the word file at the start) however databases can be a bit slower. Could work, depending on the machine configuration and how often you do it. There are two example plugins that show using databases, just adapt one of them.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Ranthony   (12 posts)  Bio
Date Reply #4 on Fri 16 May 2003 10:34 PM (UTC)
Message
Thanks again for the tips! Works beautifully in vmware. a little slow until I threw it into fullscreen, no speed problems. :-D Guess it's time to pick up my perl book and start experimenting.

Cheers.
Top

Posted by SaraLy279   USA  (1 post)  Bio
Date Reply #5 on Fri 08 Jul 2005 08:54 AM (UTC)
Message
Is there any chance at all that I might be able to get a copy of that script if it was completed? I've been searching high and low for a script for english-to-drow, and haven't found one, and I've no idea how to make scripts.

../sara\..
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


25,386 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.