Armageddon General Discussion Board

General => Code Discussion => Topic started by: Zoan on September 02, 2013, 11:36:34 PM

Title: The Mudlet Thread.
Post by: Zoan on September 02, 2013, 11:36:34 PM
Ask me anything about Mudlet. The more basic the question, the better ('How do I make it so I can automatically switch between different weapons with a single macro?' is a good example of a 'simple' thing). I'll not only help design you it, but I'll explain why I did it that particular way, and how I did it so you'll be able to do it yourself in more advanced extrapolations in future.

I'm doing this to raise awareness of scripting in our community, which is always a good thing, as well as encourage me to do more basic coding (I'm in a slump, and I find myself coding more to help others than to work on my own projects). So I'd not only imagine you'd appreciate the help, I'd appreciate the work.

Bear in mind I work full-time, so I'll likely gather a compilation of questions daily and answer them all off-peak, so check in occasionally to see if I answered you. If I haven't yet after a few days, send me a PM with a link to your question and I'll prioritize it.
Title: Re: The Mudlet Thread.
Post by: slvrmoontiger on September 03, 2013, 01:25:52 AM
Oooh I've got one that I've been trying to figure out... Well two now that I think of it:

1) How do I get the beep when something dies? I thought I set it up right and still no go.

2) Help me to design an Infobar that has at least the following components: name, status (standing, sitting, sleeping, etc), travel speed (walking, running, sneaking), Riding or not, hit points (max and current), stamina (max and current), stun (max and current), time of day.

Thank You!!!!!
Title: Re: The Mudlet Thread.
Post by: LauraMars on September 03, 2013, 02:07:16 AM
Is there any way that you know of to modify logging options?
Title: Re: The Mudlet Thread.
Post by: Zoan on September 03, 2013, 03:47:01 AM
Quote from: slvrmoontiger on September 03, 2013, 01:25:52 AM
Oooh I've got one that I've been trying to figure out... Well two now that I think of it:

1) How do I get the beep when something dies? I thought I set it up right and still no go.

2) Help me to design an Infobar that has at least the following components: name, status (standing, sitting, sleeping, etc), travel speed (walking, running, sneaking), Riding or not, hit points (max and current), stamina (max and current), stun (max and current), time of day.

Thank You!!!!!

You'll need to use the Geyser layout organizer for that - it's pretty complicated and difficult to make something without having the same native resolution as you (there's ways but too complicated to explain simply). The geyser API is here: http://wiki.mudlet.org/w/Manual:Geyser (http://wiki.mudlet.org/w/Manual:Geyser)

Quote from: LauraMars on September 03, 2013, 02:07:16 AM
Is there any way that you know of to modify logging options?

At the moment there's no way to modify logging options save the choice to make it a HTML or text format. There's been some scripts designed to log differently but it's not a local function in-built into the client itself. Afraid you'll have to wait on that, but if you have a specific idea in mind there may be a script that exists to do it.
Title: Re: The Mudlet Thread.
Post by: Zoan on September 03, 2013, 03:52:24 AM
Bear in mind, I'm happy to design these things for you if you want. I need to know specifics though. And they may take time (especially the infobar thing, Geyser's complicated).
Title: Re: The Mudlet Thread.
Post by: slvrmoontiger on September 03, 2013, 04:48:39 AM
What about the sound when something dies or is killed? How do I make that work? It might be as simple as only a certain type of sound file being compatible I've run into that in the past. I'm on linux so the sound files are all .ogg files, there are some .wav files I haven't tried that yet.
Title: Re: The Mudlet Thread.
Post by: Barsook on September 03, 2013, 06:24:17 AM
Quote from: slvrmoontiger on September 03, 2013, 04:48:39 AM
What about the sound when something dies or is killed? How do I make that work? It might be as simple as only a certain type of sound file being compatible I've run into that in the past. I'm on linux so the sound files are all .ogg files, there are some .wav files I haven't tried that yet.

You don't have the Third Party software for those codecs?
Title: Re: The Mudlet Thread.
Post by: Zoan on September 03, 2013, 06:27:46 AM
Theoretically, the #beep command sent through the telnet prompt should do it, but it doesn't. I noticed it as well and ddin't care enough to try and fix it.

I suppose a way to do it would do this (change directory as appropriate) on the beep-related messages (like a dying person, or someone beeping you):
playSoundFile([[./sounds/beep.mp3]])

The 'beep' noise can be downloaded here: http://soundbible.com/tags-alert.html (http://soundbible.com/tags-alert.html)

So, you'd make a trigger like thus (as perl regex):

^(.+) beeps you.$

And the reaction:

playSoundFile([[./sounds/beep.mp3]])

As for the dying person bit, I know that when someone dies in my Mudlet, a weird little dot thing shows instead of the beep. Maybe that can be triggered (I'm not sure, I'd need to see). Remember you don't need to make multiple triggers, just several lines for the one reaction.
Title: Re: The Mudlet Thread.
Post by: Blur on September 03, 2013, 06:31:49 AM
My only problem with mudlet is I can't seem to change the color of the bolded/highlighted text the mud sends to the client

With mushclient, i can change the bolded (or highlighted whatever the case might be)  combat text that we recieve from the mud to red making it much more clearer.

I'm not sure if its broken or not implemented but if i could just be able to change the bolded color to something else i would use mudlet since i do like its command box and spellchecker.
Title: Re: The Mudlet Thread.
Post by: Zoan on September 03, 2013, 06:38:08 AM
Not my work, but I got it from someone else I've kept in my system from a different game. Perhaps you can use it. cecho() is also an option:

color_table = {
        snow                  = {255, 250, 250},
        ghost_white           = {248, 248, 255},
        GhostWhite            = {248, 248, 255},
        white_smoke           = {245, 245, 245},
        WhiteSmoke            = {245, 245, 245},
        gainsboro             = {220, 220, 220},
        floral_white          = {255, 250, 240},
        FloralWhite           = {255, 250, 240},
        old_lace              = {253, 245, 230},
        OldLace               = {253, 245, 230},
        linen                 = {250, 240, 230},
        antique_white         = {250, 235, 215},
        AntiqueWhite          = {250, 235, 215},
        papaya_whip           = {255, 239, 213},
        PapayaWhip            = {255, 239, 213},
        blanched_almond       = {255, 235, 205},
        BlanchedAlmond        = {255, 235, 205},
        bisque                = {255, 228, 196},
        peach_puff            = {255, 218, 185},
        PeachPuff             = {255, 218, 185},
        navajo_white          = {255, 222, 173},
        NavajoWhite           = {255, 222, 173},
        moccasin              = {255, 228, 181},
        cornsilk              = {255, 248, 220},
        ivory                 = {255, 255, 240},
        lemon_chiffon         = {255, 250, 205},
        LemonChiffon          = {255, 250, 205},
        seashell              = {255, 245, 238},
        honeydew              = {240, 255, 240},
        mint_cream            = {245, 255, 250},
        MintCream             = {245, 255, 250},
        azure                 = {240, 255, 255},
        alice_blue            = {240, 248, 255},
        AliceBlue             = {240, 248, 255},
        lavender              = {230, 230, 250},
        lavender_blush        = {255, 240, 245},
        LavenderBlush         = {255, 240, 245},
        misty_rose            = {255, 228, 225},
        MistyRose             = {255, 228, 225},
        white                 = {255, 255, 255},
        black                 = {0, 0, 0},
        dark_slate_gray       = {47, 79, 79},
        DarkSlateGray         = {47, 79, 79},
        dark_slate_grey       = {47, 79, 79},
        DarkSlateGrey         = {47, 79, 79},
        dim_gray              = {105, 105, 105},
        DimGray               = {105, 105, 105},
        dim_grey              = {105, 105, 105},
        DimGrey               = {105, 105, 105},
        slate_gray            = {112, 128, 144},
        SlateGray             = {112, 128, 144},
        slate_grey            = {112, 128, 144},
        SlateGrey             = {112, 128, 144},
        light_slate_gray      = {119, 136, 153},
        LightSlateGray        = {119, 136, 153},
        light_slate_grey      = {119, 136, 153},
        LightSlateGrey        = {119, 136, 153},
        gray                  = {190, 190, 190},
        grey                  = {190, 190, 190},
        light_grey            = {211, 211, 211},
        LightGrey             = {211, 211, 211},
        light_gray            = {211, 211, 211},
        LightGray             = {211, 211, 211},
        midnight_blue         = {25, 25, 112},
        MidnightBlue          = {25, 25, 112},
        navy                  = {0, 0, 128},
        navy_blue             = {0, 0, 128},
        NavyBlue              = {0, 0, 128},
        cornflower_blue       = {100, 149, 237},
        CornflowerBlue        = {100, 149, 237},
        dark_slate_blue       = {72, 61, 139},
        DarkSlateBlue         = {72, 61, 139},
        slate_blue            = {106, 90, 205},
        SlateBlue             = {106, 90, 205},
        medium_slate_blue     = {123, 104, 238},
        MediumSlateBlue       = {123, 104, 238},
        light_slate_blue      = {132, 112, 255},
        LightSlateBlue        = {132, 112, 255},
        medium_blue           = {0, 0, 205},
        MediumBlue            = {0, 0, 205},
        royal_blue            = {65, 105, 225},
        RoyalBlue             = {65, 105, 225},
        blue                  = {0, 0, 255},
        dodger_blue           = {30, 144, 255},
        DodgerBlue            = {30, 144, 255},
        deep_sky_blue         = {0, 191, 255},
        DeepSkyBlue           = {0, 191, 255},
        sky_blue              = {135, 206, 235},
        SkyBlue               = {135, 206, 235},
        light_sky_blue        = {135, 206, 250},
        LightSkyBlue          = {135, 206, 250},
        steel_blue            = {70, 130, 180},
        SteelBlue             = {70, 130, 180},
        light_steel_blue      = {176, 196, 222},
        LightSteelBlue        = {176, 196, 222},
        light_blue            = {173, 216, 230},
        LightBlue             = {173, 216, 230},
        powder_blue           = {176, 224, 230},
        PowderBlue            = {176, 224, 230},
        pale_turquoise        = {175, 238, 238},
        PaleTurquoise         = {175, 238, 238},
        dark_turquoise        = {0, 206, 209},
        DarkTurquoise         = {0, 206, 209},
        medium_turquoise      = {72, 209, 204},
        MediumTurquoise       = {72, 209, 204},
        turquoise             = {64, 224, 208},
        cyan                  = {0, 255, 255},
        light_cyan            = {224, 255, 255},
        LightCyan             = {224, 255, 255},
        cadet_blue            = {95, 158, 160},
        CadetBlue             = {95, 158, 160},
        medium_aquamarine     = {102, 205, 170},
        MediumAquamarine      = {102, 205, 170},
        aquamarine            = {127, 255, 212},
        dark_green            = {0, 100, 0},
        DarkGreen             = {0, 100, 0},
        dark_olive_green      = {85, 107, 47},
        DarkOliveGreen        = {85, 107, 47},
        dark_sea_green        = {143, 188, 143},
        DarkSeaGreen          = {143, 188, 143},
        sea_green             = {46, 139, 87},
        SeaGreen              = {46, 139, 87},
        medium_sea_green      = {60, 179, 113},
        MediumSeaGreen        = {60, 179, 113},
        light_sea_green       = {32, 178, 170},
        LightSeaGreen         = {32, 178, 170},
        pale_green            = {152, 251, 152},
        PaleGreen             = {152, 251, 152},
        spring_green          = {0, 255, 127},
        SpringGreen           = {0, 255, 127},
        lawn_green            = {124, 252, 0},
        LawnGreen             = {124, 252, 0},
        green                 = {0, 255, 0},
        chartreuse            = {127, 255, 0},
        medium_spring_green   = {0, 250, 154},
        MediumSpringGreen     = {0, 250, 154},
        green_yellow          = {173, 255, 47},
        GreenYellow           = {173, 255, 47},
        lime_green            = {50, 205, 50},
        LimeGreen             = {50, 205, 50},
        yellow_green          = {154, 205, 50},
        YellowGreen           = {154, 205, 50},
        forest_green          = {34, 139, 34},
        ForestGreen           = {34, 139, 34},
        olive_drab            = {107, 142, 35},
        OliveDrab             = {107, 142, 35},
        dark_khaki            = {189, 183, 107},
        DarkKhaki             = {189, 183, 107},
        khaki                 = {240, 230, 140},
        pale_goldenrod        = {238, 232, 170},
        PaleGoldenrod         = {238, 232, 170},
        light_goldenrod_yellow= {250, 250, 210},
        LightGoldenrodYellow  = {250, 250, 210},
        light_yellow          = {255, 255, 224},
        LightYellow           = {255, 255, 224},
        yellow                = {255, 255, 0},
        gold                  = {255, 215, 0},
        light_goldenrod       = {238, 221, 130},
        LightGoldenrod        = {238, 221, 130},
        goldenrod             = {218, 165, 32},
        dark_goldenrod        = {184, 134, 11},
        DarkGoldenrod         = {184, 134, 11},
        rosy_brown            = {188, 143, 143},
        RosyBrown             = {188, 143, 143},
        indian_red            = {205, 92, 92},
        IndianRed             = {205, 92, 92},
        saddle_brown          = {139, 69, 19},
        SaddleBrown           = {139, 69, 19},
        sienna                = {160, 82, 45},
        peru                  = {205, 133, 63},
        burlywood             = {222, 184, 135},
        beige                 = {245, 245, 220},
        wheat                 = {245, 222, 179},
        sandy_brown           = {244, 164, 96},
        SandyBrown            = {244, 164, 96},
        tan                   = {210, 180, 140},
        chocolate             = {210, 105, 30},
        firebrick             = {178, 34, 34},
        brown                 = {165, 42, 42},
        dark_salmon           = {233, 150, 122},
        DarkSalmon            = {233, 150, 122},
        salmon                = {250, 128, 114},
        light_salmon          = {255, 160, 122},
        LightSalmon           = {255, 160, 122},
        orange                = {255, 165, 0},
        dark_orange           = {255, 140, 0},
        DarkOrange            = {255, 140, 0},
        coral                 = {255, 127, 80},
        light_coral           = {240, 128, 128},
        LightCoral            = {240, 128, 128},
        tomato                = {255, 99, 71},
        orange_red            = {255, 69, 0},
        OrangeRed             = {255, 69, 0},
        red                   = {255, 0, 0},
        hot_pink              = {255, 105, 180},
        HotPink               = {255, 105, 180},
        deep_pink             = {255, 20, 147},
        DeepPink              = {255, 20, 147},
        pink                  = {255, 192, 203},
        light_pink            = {255, 182, 193},
        LightPink             = {255, 182, 193},
        pale_violet_red       = {219, 112, 147},
        PaleVioletRed         = {219, 112, 147},
        maroon                = {176, 48, 96},
        medium_violet_red     = {199, 21, 133},
        MediumVioletRed       = {199, 21, 133},
        violet_red            = {208, 32, 144},
        VioletRed             = {208, 32, 144},
        magenta               = {255, 0, 255},
        violet                = {238, 130, 238},
        plum                  = {221, 160, 221},
        orchid                = {218, 112, 214},
        medium_orchid         = {186, 85, 211},
        MediumOrchid          = {186, 85, 211},
        dark_orchid           = {153, 50, 204},
        DarkOrchid            = {153, 50, 204},
        dark_violet           = {148, 0, 211},
        DarkViolet            = {148, 0, 211},
        blue_violet           = {138, 43, 226},
        BlueViolet            = {138, 43, 226},
        purple                = {160, 32, 240},
        medium_purple         = {147, 112, 219},
        MediumPurple          = {147, 112, 219},
        thistle               = {216, 191, 216},

-- CHECK IT OUT! Aetolia colors!
        a_darkred             = {128, 0, 0},
        a_darkgreen           = {0, 179, 0},
        a_brown               = {128, 128, 0},
        a_darkblue            = {0, 0, 128},
        a_darkmagenta         = {128, 0, 128},
        a_darkcyan            = {0, 128, 128},
        a_grey                = {192, 192, 192},
        a_darkgrey            = {128, 128, 128},
        a_red                 = {255, 0, 0},
        a_green               = {0, 255, 0},
        a_yellow              = {255, 255, 0},
        a_blue                = {0, 85, 255},
        a_magenta             = {255, 0, 255},
        a_cyan                = {0, 255, 255},
        a_white               = {255, 255, 255},

  chat_bg   = {25, 25, 25},
}

function fgcolor(color)
setFgColor(color_table[color][1], color_table[color][2], color_table[color][3])
end

function bgcolor(color)
setBgColor(color_table[color][1], color_table[color][2], color_table[color][3])
end

function cfgcolor(console, color)
setFgColor(console, color_table[color][1], color_table[color][2], color_table[color][3])
end

function cbgcolor(console, color)
setBgColor(console, color_table[color][1], color_table[color][2], color_table[color][3])
end
Title: Re: The Mudlet Thread.
Post by: Barzalene on September 03, 2013, 07:58:47 AM
How can I get mudlet to login automatically on Arm?
Title: Re: The Mudlet Thread.
Post by: KankWhisperer on September 03, 2013, 08:46:37 AM
Quote from: Barzalene on September 03, 2013, 07:58:47 AM
How can I get mudlet to login automatically on Arm?

Do you mean when you start mudlet that it automatically opens your arm profile and logs in or when you select your profile it automatically logs you in?
Title: Re: The Mudlet Thread.
Post by: Barzalene on September 03, 2013, 08:51:37 AM
I created a profile and entered my account info, but it doesn't log me in. The doesn't seem to be any way to account for the c.
Title: Re: The Mudlet Thread.
Post by: KankWhisperer on September 03, 2013, 09:44:36 AM
Yeah, arm will need a custom scrips as far as I know.
Title: Re: The Mudlet Thread.
Post by: KankWhisperer on September 03, 2013, 09:14:56 PM
Could use a trigger maybe?

Step 1: Make a trigger.
Step 2: I triggered off this Perlregex (line 0 and 1)

^\(N\) Create a new account
^Reconnected.$


Then this goes in the script window.


account_name = "amos"
account_password = "mudsexy"

if matches[1] ~= "Reconnected." then
tempTimer( 0.5, [[send("c")]] )
tempTimer( 1.0, [[send(account_name)]] )
tempTimer( 1.5, [[send(account_password)]] )
timer_a = tempTimer( 3.0, [[send("\n")]] )
timer_b = tempTimer( 3.5, [[send("e")]] )
timer_c = tempTimer( 4.0, [[send("\n")]] )
else
killTimer(timer_a)
killTimer(timer_b)
killTimer(timer_c)
end



Only problem I see is that if someone knew you were using the trigger they could type in em (N) Create a new account , @ is here and get your char to move east maybe. Also apparently goes bonkers if you don't put in the right account name according to friend I made it for.

Title: Re: The Mudlet Thread.
Post by: Kankman on September 08, 2013, 10:18:38 PM
If I don't care about mapping (because that's cheating) is Mudlet better than tintin++?
Title: Re: The Mudlet Thread.
Post by: KankWhisperer on September 08, 2013, 10:49:14 PM
A lot easier to code in since it uses a real language Lua. In my opinion.
Title: Re: The Mudlet Thread.
Post by: Cabooze on September 09, 2013, 09:26:15 PM
Quote from: Barzalene on September 03, 2013, 08:51:37 AM
I created a profile and entered my account info, but it doesn't log me in. The doesn't seem to be any way to account for the c.

A quick solution: where you put the connection entry you put in c for character name and then your username for the password. From there, you can make a trigger by going into the triggers, making a new one and  putting "Password:" on line 0 and then your password where it says "send plain text" on the top right.
Title: Re: The Mudlet Thread.
Post by: slvrmoontiger on September 10, 2013, 04:25:30 AM
Quote from: Cabooze on September 09, 2013, 09:26:15 PM
Quote from: Barzalene on September 03, 2013, 08:51:37 AM
I created a profile and entered my account info, but it doesn't log me in. The doesn't seem to be any way to account for the c.

A quick solution: where you put the connection entry you put in c for character name and then your username for the password. From there, you can make a trigger by going into the triggers, making a new one and  putting "Password:" on line 0 and then your password where it says "send plain text" on the top right.

Might be an easy and quick way for doing it. But, please note that security is at a risk since your password is available to anyone that uses the computer.
Title: Re: The Mudlet Thread.
Post by: Blur on September 11, 2013, 10:56:57 AM
Yeah.

Its a real shame you can't change the bolded colors you receive from the mud automatically like you can with Mushclient. Otherwise this client would be perfect.  Even changing light colors under setting does not seem to work.

Unfortunately, using this client would make me go blind if I played any sort of combat oriented character. :(
Title: Re: The Mudlet Thread.
Post by: Zoan on September 14, 2013, 07:57:16 PM
I once did a lazyhack for a login and wound up somehow changing my email. I couldn't play for 2 weeks until Nyr finally offered clemency for my stupidity and reset my email.

Lazyhacks are bad, mmkay.
Title: Re: The Mudlet Thread.
Post by: charas on October 02, 2013, 06:55:17 AM
An infobar like Agent_137 (http://gdb.armageddon.org/index.php/topic,34979.msg695145.html#msg695145) did for Mushclient would be awesome, possibly with gauges/bars. Ultimately a neat graphical infobar in a Zalanthan style and packaged with GMCP would be the shit.
Title: Re: The Mudlet Thread.
Post by: slvrmoontiger on October 02, 2013, 11:14:33 AM
Quote from: charas on October 02, 2013, 06:55:17 AM
An infobar like Agent_137 (http://gdb.armageddon.org/index.php/topic,34979.msg695145.html#msg695145) did for Mushclient would be awesome, possibly with gauges/bars. Ultimately a neat graphical infobar in a Zalanthan style and packaged with GMCP would be the shit.

Been waiting a long time for this.
I think the GMCP stuff was pulled a while back due to problems it was causing with some clients and information not getting to the server and causing commands not to be recognized. I could be wrong. I do remember I disabled GMCP option in Mudlet for that reason a few months ago.
Title: Re: The Mudlet Thread.
Post by: Agent_137 on October 02, 2013, 02:23:26 PM
Quote from: charas on October 02, 2013, 06:55:17 AM
An infobar like Agent_137 (http://gdb.armageddon.org/index.php/topic,34979.msg695145.html#msg695145) did for Mushclient would be awesome, possibly with gauges/bars. Ultimately a neat graphical infobar in a Zalanthan style and packaged with GMCP would be the shit.

you can actually do this in MUSHclient too, it's called a miniwindow. one day i'll get around to converting the infobar to it.

http://www.mushclient.com/mushclient/mw_creation.htm

Title: Re: The Mudlet Thread.
Post by: Omn on October 02, 2013, 02:24:01 PM
Is it possible to get the mapper working? I've been stuck on that.
Title: Re: The Mudlet Thread.
Post by: slvrmoontiger on October 02, 2013, 03:18:14 PM
I've tried the mapper 5 times and every time I tried it it crashed Mudclient. Others have said that the mapper works pretty well with exception to some of the over-lapping type rooms.
Title: Re: The Mudlet Thread.
Post by: Barzalene on March 24, 2014, 05:08:49 PM
Will someone be willing to answer all my questions in a messenger or in teamspeak? I need a little hand holding, but I'm strongly considering.
Title: Re: The Mudlet Thread.
Post by: slvrmoontiger on March 25, 2014, 01:35:23 PM
I'm not like a mudlet geek, but I'd be happy to assist. If you'd like me to send me a PM and I'll send my AIM.
Title: Re: The Mudlet Thread.
Post by: Zoan on April 10, 2014, 02:41:12 AM
I've been working on a mapper, of sorts. It's one of my side-projects I'll get around to.

It's harder than you'd think due to strange messages you get when you move sometimes, like 'Sparse sands scatter in your path.' or whatever it is, and more exotic ones.
Title: Re: The Mudlet Thread.
Post by: slvrmoontiger on April 10, 2014, 08:27:46 AM
Mapper causes mudlet to crash on my computer, not sure if its because its linux or just my old computer that's the problem. I tried it one a windows computer and I got it started, but had no idea what to do with it or get it to work.
Title: Re: The Mudlet Thread.
Post by: Barzalene on April 10, 2014, 09:12:42 AM
Still dont understand how to highlight entire lines or whether I can convert my zmud XML file somehow.
Title: Re: The Mudlet Thread.
Post by: Brytta LĂ©ofa on April 10, 2014, 10:08:23 AM
Quote from: Zoan on April 10, 2014, 02:41:12 AM
I've been working on a mapper, of sorts. It's one of my side-projects I'll get around to.

It's harder than you'd think due to strange messages you get when you move sometimes, like 'Sparse sands scatter in your path.' or whatever it is, and more exotic ones.

Try keying on the room title, with its mystic square brackets [NSEW Leave Save Quit].
Title: Re: The Mudlet Thread.
Post by: Zoan on April 11, 2014, 01:11:48 AM
Yeah, I guess I'm just more used to IRE-style maps.
Title: Re: The Mudlet Thread.
Post by: Barsook on June 29, 2014, 09:06:00 PM
Is it me, or is Mudlet on Ubuntu Linux 14.04 (or any other versions) has a mind of it's own or is not responsive?  The earlier happened today and the latter happened twice on me before.  And was there any updates on it as of April 2014?
Title: Re: The Mudlet Thread.
Post by: Nameless Face on October 10, 2014, 10:29:48 PM
I am not figuring out how to get the spellcheck to work on Windows 7 with Mudlet.  M I a dope?
Title: Re: The Mudlet Thread.
Post by: Barzalene on October 11, 2014, 03:00:40 AM
Did you download Beta? Because it didn't work for me in beta. I had to go with the older version. Then in settings, input line, check enable spellcheck.
Title: Re: The Mudlet Thread.
Post by: Nameless Face on October 11, 2014, 03:28:07 PM
Yes.  3.0.0 Beta.  I feel less stupid.  Thank you.
Title: Re: The Mudlet Thread.
Post by: Barzalene on October 11, 2014, 03:55:56 PM
No problem
The logs are a terrible problem for me.
Last night it stopped logging randomly in the middle of my session. Because the buffer is so small I couldn't even go back and recapture it. And the logs themselves are big old walls of text. The logs make me sad.
Title: Re: The Mudlet Thread.
Post by: Nameless Face on October 11, 2014, 04:14:19 PM
Barzalene,

You are not filling me with confidence in this journey.
Title: Re: The Mudlet Thread.
Post by: Barzalene on October 11, 2014, 04:20:02 PM
Yeah. If mushclient had spellcheck I might just switch. Though, I have a hard time walking away from the split screen option.
Title: Re: The Mudlet Thread.
Post by: Barzalene on October 11, 2014, 04:22:00 PM
Wait. That's not true.
I find I really like mudlet. Let's assume I've done something wrong or there was a glitch, or that there is a setting I don't know about. If that is the case, Mudlet is pretty neat. It's easy to use. I find the people on their forums to be really helpful.
Title: Re: The Mudlet Thread.
Post by: Barzalene on October 11, 2014, 06:15:28 PM
Fixed. Use wordpad instead of notepad. Do not use html
Title: Re: The Mudlet Thread.
Post by: Barsook on October 12, 2014, 08:33:50 AM
Quote from: Barzalene on October 11, 2014, 03:55:56 PM
No problem
The logs are a terrible problem for me.
Last night it stopped logging randomly in the middle of my session. Because the buffer is so small I couldn't even go back and recapture it. And the logs themselves are big old walls of text. The logs make me sad.

Yeah, logging on Mudlet is bad.  And mine is somehow off and I can't remember how to turn it back on.  Either I need to update it or switch to some other Linux based one.
Title: Re: The Mudlet Thread.
Post by: Barsook on November 05, 2014, 01:55:58 PM
Okay, i finally figured out how to log in 2.1, but is there a way to auto-log every time that I log on to Arm?
Title: Re: The Mudlet Thread.
Post by: Nameless Face on November 05, 2014, 03:18:29 PM
Quote from: Barzalene on October 11, 2014, 06:15:28 PM
Do not use html

Yeah... what's up with that?   This would be great feature if it worked.  I am still setting up my triggers and colorization.  If it logged how things actually looked when they appeared on my screen that would be good.  The way it just pretends to log a bit and then just devours the rest into a sneaky black hole... dirty trick.
Title: Re: The Mudlet Thread.
Post by: LucildaHunta on November 06, 2014, 08:03:16 AM
I'm glad this came up again. I just dl'd the latest version and I'm having a hard time setting up triggers so that I can see something that's happening to me in spam. I'm used to mushclient, but the latest version has been really wonky for me, so I want to try something else.

I'm not a codey person, but if someone can give me an example for say "so and so looks at you" I'd be grateful and can take it from there. The whole setup for making triggers just has me confused.
Title: Re: The Mudlet Thread.
Post by: Barsook on November 06, 2014, 04:58:03 PM
Quote from: Barsook on November 05, 2014, 01:55:58 PM
Okay, i finally figured out how to log in 2.1, but is there a way to auto-log every time that I log on to Arm?

Answered my question:

It's simple, you just don't turn of logging after you turn it on.  When you are ready to close the Mudlet window, say, "yes", to save the profile of the ArmMUD one.

Quote from: LucildaHunta on November 06, 2014, 08:03:16 AM
I'm glad this came up again. I just dl'd the latest version and I'm having a hard time setting up triggers so that I can see something that's happening to me in spam. I'm used to mushclient, but the latest version has been really wonky for me, so I want to try something else.

I'm not a codey person, but if someone can give me an example for say "so and so looks at you" I'd be grateful and can take it from there. The whole setup for making triggers just has me confused.

2.1 or the 3.0.0 beta?
Title: Re: The Mudlet Thread.
Post by: LucildaHunta on November 06, 2014, 06:11:08 PM
Quote from: Barsook on November 06, 2014, 04:58:03 PM
Quote from: Barsook on November 05, 2014, 01:55:58 PM
Okay, i finally figured out how to log in 2.1, but is there a way to auto-log every time that I log on to Arm?

Answered my question:

It's simple, you just don't turn of logging after you turn it on.  When you are ready to close the Mudlet window, say, "yes", to save the profile of the ArmMUD one.

Quote from: LucildaHunta on November 06, 2014, 08:03:16 AM
I'm glad this came up again. I just dl'd the latest version and I'm having a hard time setting up triggers so that I can see something that's happening to me in spam. I'm used to mushclient, but the latest version has been really wonky for me, so I want to try something else.

I'm not a codey person, but if someone can give me an example for say "so and so looks at you" I'd be grateful and can take it from there. The whole setup for making triggers just has me confused.

2.1 or the 3.0.0 beta?

3.0 beta
Title: Re: The Mudlet Thread.
Post by: Barzalene on November 06, 2014, 10:12:04 PM
I don't know how to make triggers work with variables but this may work in the meanwhile

(http://4.bp.blogspot.com/-e0XrqGehjac/U6N1C_gXo_I/AAAAAAAAAM8/UAlyEiDiF5I/s1600/Not+right.jpg)



[lua]
selectCurrentLine()
fg("green")
deselect()
resetFormat()
[/lua]

What this does is select the line the trigger has matched on, sets the foreground (or text) color to green, then clears the selection and resets format so your next triggers/lines come out looking as intended and you don't accidentally bleed into other text.
Instead of overhear you'd use "Looks at you"
Title: Re: The Mudlet Thread.
Post by: LucildaHunta on November 06, 2014, 11:15:50 PM
Thanks, that looks easier than I thought it would look!
Title: Re: The Mudlet Thread.
Post by: Drone on November 07, 2014, 03:18:05 AM
Quote from: Barzalene on October 11, 2014, 06:15:28 PM
Fixed. Use wordpad instead of notepad. Do not use html

You mean use Wordpad to view the log, or to create them? I had the issue yesterday where my log got cut off in the middle of my session (and right as things were getting good!).

Formatting-wise though, the log itself looks beautiful. It's just that it cuts content and I would like to fix it.
Title: Re: The Mudlet Thread.
Post by: Barzalene on November 07, 2014, 08:14:50 AM
wordpad to read. But the html is bugged. Use the text option
Title: Re: The Mudlet Thread.
Post by: aeglaeca on November 21, 2014, 08:25:30 PM
Hi! I'm trying to capture the time from my prompt to a label. Here's my prompt match:


^(before dawn|dawn|early morning|late morning|high sun|early afternoon|late afternoon|late at night|dusk) (Ocandra|Terrin|Abid|Cingel|Nekrete|Waleuk|Yochem|Huegel|Dzeda|Barani|Detal) (.*) (armed|unarmed)\>$


and the trigger pattern:

findTime(matches[2])



function findTime(currentTime)
  if currentTime then
    if currentTime == "before dawn" then
    Time:echo(currentTime, "slate_blue", "c")
    elseif currentTime == "dawn" then
    Time:echo(currentTime, "light_salmon", "c")
    elseif currentTime == "early morning" then
    Time:echo(currentTime, "lemon_chiffon", "c")
    elseif currentTime == "late morning" then
    Time:echo(currentTime, "light_goldenrod", "c")
    elseif currentTime == "high sun" then
    Time:echo(currentTime, "yellow", "c")
    elseif currentTime == "early afternoon" then
    Time:echo(currentTime, "dark_orange", "c")
    elseif currentTime == "late afternoon" then
    Time:echo(currentTime, "orange_red", "c")
    elseif currentTime == "dusk" then
    Time:echo(currentTime, "a_darkmagenta", "c")
    elseif currentTime == "late at night" then
    Time:echo(currentTime, "midnight_blue", "c")
    else
    Time:echo("Unknown!", "white", "c")
    end
  end
end


It works for everything except dusk. Does anyone have any idea what the issue is?
Title: Re: The Mudlet Thread.
Post by: MeTekillot on November 21, 2014, 11:07:58 PM
Your prompt match is out of order.
Title: Re: The Mudlet Thread.
Post by: aeglaeca on November 21, 2014, 11:26:01 PM
Oh, I figured out what it was >.< the color I was using didn't exist. Thanks though!
Title: Re: The Mudlet Thread.
Post by: aeglaeca on December 30, 2014, 02:13:50 AM
So I guess I'm not the only one running into mudlet eating say/psi commands every so often? It seems to handle other commands just fine, like I haven't had any problems in combat. Does anyone know what the root cause is and/or how to fix the problem?
Title: Re: The Mudlet Thread.
Post by: slvrmoontiger on December 30, 2014, 02:57:13 AM
Actually, that was an old problem that happened quite a while ago. It was some sort of change that was made to the Armageddon code to try and facilitate a new way of handling different requests. Lots of people were having problems with that and the code got reverted. I every once in a blue moon still have a problem, but for the most part it's VERY rare. What operating system and version of Mudlet are you using?
Title: Re: The Mudlet Thread.
Post by: aeglaeca on December 30, 2014, 03:11:17 AM
OSX 10.10.1 and Mudlet 2.1. Mudlet 3.0 beta has an odd window resizing bug on OSX, so I don't use it. I've had a hard time pinning down the circumstances that lead to commands being eaten, but I want to say it's usually specifically say or psi inputted after a command that has built-in lag of some sort (e.g., trying to speak during/after combat skills like kick or disarm and sending psi commands after initial contact.) It's really odd behavior because it only happens every once in awhile, and I don't have any triggers/aliases/scripts that have anything to do with either say or psi commands outside of coloring the "" blocks.
Title: Re: The Mudlet Thread.
Post by: slvrmoontiger on December 30, 2014, 03:25:32 AM
Okay so here's what I would suggest first:
1) In Settings General Tab I would uncheck the box Enable GCMP if it's checked.
2) Under Settings Special Options Tab make sure everything is unchecked. If you need to uncheck everything make sure you quit out fully and open back up.

I would disable all scripts/triggers/aliases just until you can reproduce it without them. If a long period time goes by without any problems try enabling a few at a time until you start having problems. Or a while goes without problems then keep adding a few until either you have a problem or they are all added.

Might be a library issue, but I doubt that.

If it was a problem with your internet other commands would get lost too, so I doubt that's a problem.

Try taking a note of if it happens at a certain time or in a certain room. See if there is a room echo when it happens. Various things like that.

If all else fails, try logging onto their IRC channel and seeing if someone can help you with more steps to debug it. Try to take down notes of everything you have tried and what seems to cause the problems, because you will be asked that.
Title: Re: The Mudlet Thread.
Post by: aeglaeca on December 30, 2014, 03:55:11 AM
GMCP is (by default) off. Everything under Special Options is (also by default) off.

The bulk of my scripts are a very large prompt capture that converts everything to colored format above my command line and a selectString replacement of intros to help me remember names, also in colored format. A few other things are colored, like my previously mentioned quote blocks. There is no room echo when I input these commands AFAIK (at least, no one has ever responded to them), just a blank line for me.

To my knowledge, there is no particular set time when it happens, but I would have to reproduce it to know for sure. It is a fairly rare thing for me, maybe once or twice every few days of play? Rare enough it's a long time to run without scripts.

I'll run the debugger when I play in the future to see if it catches anything. If I have to I'll disable the scripts, but they're sort of a colored crutch for me >_> Thanks for the help! :)
Title: Re: The Mudlet Thread.
Post by: slvrmoontiger on December 30, 2014, 01:03:21 PM
I'm currently running the scripts that Cutthroat created for Mudlet that gives the infobar (If that is what you are referring to) That's about the only thing that I use for scripts/aliases/triggers. I'm wondering if the scripts to put names in might be causing a problem as I don't use them. However, if this only happen every few days I don't see them as being a problem. Try to see if you are using says/tells/psi's with certain names that you have in the aliases when this problem happens. The problems I have happen about as rarely as yours does and even moreso. However, I don't have to issue the command more than twice for it to be recognized, it always works 2nd time through. With the infrequency that it happens for me it's a very tiny minor annoyance and I have decided it's not really worth time that I could playing to figure it out. I think the debugger and logging stuff to see if you can narrow down any commonalities that causes this to happen are the best places to start at this point. Keep me posted. If you'd like I can also help you read through the debugging logs of when it happens and try to help you pinpoint it. If you're going to provide debugging logs feel free to email me (it's in my profile). Unfortunately, I don't have access to Personal Mail on the GDB.

Good Luck!
Title: Re: The Mudlet Thread.
Post by: aeglaeca on December 31, 2014, 12:50:20 AM
I did not know there was a prompt match script already available >_> so I'm using hacked together script of my own devising.

I just ran into this issue again. I am not getting a prompt return upon input (something I wasn't able to say for sure earlier) and the debugger isn't returning anything at all for entering this command multiple times, as in there are no lines with a matching timestamp from input until it actually goes through.

Wait, I completely lied/failed to read timestamps. Here we go, this is what's happening when my lines are getting eaten:


LUA OK anonymous Lua function ran without errors
LUA OK script WindowResizeEvent (handleWindowResizeEvent) ran without errors


Anyone know what this means?

On further reading it might be that my prompt script is screwing with it after all due to using labels and resizing the buffer, although nowhere do I have a written script that calls this function.
Title: Re: The Mudlet Thread.
Post by: slvrmoontiger on December 31, 2014, 10:32:50 AM
This is all that I'm running: http://gdb.armageddon.org/index.php/topic,46301.0.html

Besides the infobar there is a tweak that I think underlines the room name (I've tweaked mine to remove the underline and to bold it and color it a different color), it shows point values for playing darts, and it colorizes the skills list making it easier to read. Overall it's pretty nice. Wish I could figure out how to remove the mana field when I'm playing a PC that doesn't use mana, but its a minor annoyance and I'd rather use the time playing than fixing things that don't vex me much.

If you do run this, I'd recommend removing your custom scripts first otherwise you might cause problems and make a huge mess of things. You can then add back in the ones that are not similar, like the ones for helping you to remember names and such. I don't rely too much on the client for that I'd rather save things to a notepad. Makes it easier to go through something offline when I'm writing up character reports.
Title: Re: The Mudlet Thread.
Post by: Barsook on January 28, 2015, 08:52:13 PM
Mudlet has tab complete if anyone doesn't know.

(just found that out!)