Armageddon MUD General Discussion Board

General => Player Collaboration => Topic started by: azuriolinist on May 09, 2018, 08:50:21 AM

Title: Mudlet Graphical Prompt
Post by: azuriolinist on May 09, 2018, 08:50:21 AM
(https://vgy.me/KuJfOM.png)

(https://vgy.me/pzjN0b.png)

Updated 2018-09-20: Updated to fix images under Windows and use an empty line instead of the prompt to end inventory/equipment capture.

I've been tinkering with Mudlet for a bit and got this prompt bar up. I'm planning on writing a mapping script to go along with it (some day) and to (potentially!) combine the two into a profile resembling a GUI for Mudlet.

Installing it should be fairly straightforward besides the font and the background colors.

Installation

Paste one of these one-liners into Mudlet to install the package:

Prompt
Code: [Select]
lua function d(a,b)if not b:find("arm_prompt",1,true)then return end installPackage(b)os.remove(b)cecho("<lime_green>Package installed!\n")end registerAnonymousEventHandler("sysDownloadDone","d")downloadFile(getMudletHomeDir().."/arm_prompt.zip","https://raw.githubusercontent.com/azuriolinist/armageddon-mudlet/master/arm_prompt.zip")
With sidebar
Code: [Select]
lua function d(a,b)if not b:find("arm_gui",1,true)then return end installPackage(b)os.remove(b)cecho("<lime_green>Package installed!\n")end registerAnonymousEventHandler("sysDownloadDone","d")downloadFile(getMudletHomeDir().."/arm_gui.zip","https://raw.githubusercontent.com/azuriolinist/armageddon-mudlet/master/arm_gui.zip")
Alternatively, if that doesn't work, use the links below to download the package. Open Mudlet and navigate to the Package Manager (this is also found under Toolbox > Package manager).

Press Install and select the downloaded .zip file.

Setting the prompt
In game, you will have to set your prompt to %h/%H|%v/%V|%t/%T|%m/%M|%A|%w|%S|%a|%o|%d|%e|%E|%p|%P|%O|%n>. The alias setprompt does this for you.

Setting the background color
Because Mudlet does not (AFAIK) support setting the background color through a script, you will have to set it yourself through the preferences. Otherwise, you're left with a weird brown outline around the main console and behind the prompt!

In the Profile preferences window, open the tab Color view and change the background colors (Background, Command line background, and Command background) to #16130F.

Alternatively, you can keep the background black. Modify arm_prompt.xml within the zip file and change the line setBorderColor(22,19,15) to setBorderColor(0,0,0).

If you have any feedback, those would be appreciated!

Download (https://github.com/azuriolinist/armageddon-mudlet/raw/master/arm_prompt.zip)
Download (with sidebar) (https://github.com/azuriolinist/armageddon-mudlet/raw/master/arm_gui.zip)
Title: Re: Mudlet Graphical Prompt
Post by: chrisdcoulombe on May 09, 2018, 12:43:10 PM
Tek has 930 hp no wonder
Title: Re: Mudlet Graphical Prompt
Post by: Jihelu on May 09, 2018, 04:51:37 PM
This is very cool

So I uninstalled it for a moment and this seems to be stuck, how do I get rid of this massive gap?

https://imgur.com/a/EFqNSVP
Title: Re: Mudlet Graphical Prompt
Post by: chrisdcoulombe on May 09, 2018, 05:17:38 PM
Okay what am I doing wrong, its not gagging the prompt or putting the prompt into the boxes.
Title: Re: Mudlet Graphical Prompt
Post by: azuriolinist on May 09, 2018, 09:22:41 PM
So I uninstalled it for a moment and this seems to be stuck, how do I get rid of this massive gap?

https://imgur.com/a/EFqNSVP

Huh, it must have saved the border setting. Open up Preferences and click on the Main display tab. You can set the size of the Display border through there (so you probably want Border bottom height at 0).

Okay what am I doing wrong, its not gagging the prompt or putting the prompt into the boxes.

Praise Tektolnes!

Also, huh. Did you try setting your prompt to %h/%H|%v/%V|%t/%T|%m/%M|%A|%w|%S|%a|%o|%d|%e|%E|%p|%P|%O|%n>?
Title: Re: Mudlet Graphical Prompt
Post by: Jihelu on May 09, 2018, 09:26:59 PM
Thanks!

Occasionally, I'll enter a room and it wont give the description of the room. Just "You are in x room [N, E, S] and no description. This, of course, only happening when using your prompt.
Title: Re: Mudlet Graphical Prompt
Post by: azuriolinist on May 09, 2018, 10:02:44 PM
That's odd. Thanks for pointing it out! I'll try to pin that down.
Title: Re: Mudlet Graphical Prompt
Post by: chrisdcoulombe on May 10, 2018, 12:04:47 PM
Whoops that had character info in it.
Title: Re: Mudlet Graphical Prompt
Post by: chrisdcoulombe on May 10, 2018, 12:11:41 PM
And yeah I put the prompt in.  I did a screen shot and posted it and then realized it had my character info in it so I deleted it.
Title: Re: Mudlet Graphical Prompt
Post by: azuriolinist on May 10, 2018, 01:42:16 PM
Weird. How did you go about installing the package? Version shouldn't a problem AFAIK (unless your at any version before 3.0), but what version are you at?

There should be a catchprompt trigger in the Triggers area, too. Mind checking out if it's in there?

I appreciate your feedback a lot, by the way! <3
Title: Re: Mudlet Graphical Prompt
Post by: chrisdcoulombe on May 10, 2018, 03:19:30 PM
Hmm, I installed it using the package manager, Maybe thats what it is the catch promt trigger.  Yeah Version 3.0.  I installed my old one back, but I wanted to check yours out.  I will try again and check the Catch trigger.
Title: Re: Mudlet Graphical Prompt
Post by: chrisdcoulombe on May 10, 2018, 07:47:04 PM
I got it I didn't close the prompt with >
Title: Re: Mudlet Graphical Prompt
Post by: chrisdcoulombe on May 10, 2018, 08:15:29 PM
The pics of the sword, the boot, the chest and the clock are not showing now.
Title: Re: Mudlet Graphical Prompt
Post by: stoicreader on May 10, 2018, 10:20:16 PM
OooOO I can't wait to try it!
Title: Re: Mudlet Graphical Prompt
Post by: azuriolinist on May 10, 2018, 10:47:55 PM
The pics of the sword, the boot, the chest and the clock are not showing now.

Darn it. Mind trying to reinstall it from the .zip file?
Title: Re: Mudlet Graphical Prompt
Post by: stoicreader on May 16, 2018, 05:35:40 PM
Everything works, but the prompt is WAY too small. I got  a keyboard just now for my Surface Pro.
Title: Re: Mudlet Graphical Prompt
Post by: azuriolinist on May 17, 2018, 05:10:01 AM
Everything works, but the prompt is WAY too small. I got  a keyboard just now for my Surface Pro.

Awesome! Mind showing how it looks on your screen (during startup, so no one sees any sekrit details)? I was hoping to make the prompt info easy to absorb, but not take too much attention from the MUD's text on the main window.
Title: Re: Mudlet Graphical Prompt
Post by: Pheo on May 18, 2018, 11:51:38 AM
The pics of the sword, the boot, the chest and the clock are not showing now.

Darn it. Mind trying to reinstall it from the .zip file?

This appears to be happening on Windows.
getMudletHomeDir() returns a string with backslash ('\')
:setStyleSheet mandates use of forward slash ('/')

Dirty change to getMudletHomeDir():gsub('\\', '/') does the trick for me.

Many many thanks for sharing this.
Title: Re: Mudlet Graphical Prompt
Post by: stoicreader on May 18, 2018, 10:47:01 PM

Everything works, but the prompt is WAY too small. I got  a keyboard just now for my Surface Pro.

Awesome! Mind showing how it looks on your screen (during startup, so no one sees any sekrit details)? I was hoping to make the prompt info easy to absorb, but not take too much attention from the MUD's text on the main window.

I had a beloved character lose connection on his final march to the arena. So I was stored by the staff. :(

Before I discovered it was my child playing with one of our routers I uninstalled mush client and bought a keyboard for my surface pro 3 tablet. This solved my travel problem but created a mudlet problem.

Surface pro 3 and mudlet are not friends. Every thing is out of proportion. QuickBooks too among other programs that don't scale to different resolutions well.

I tried changing the resolution, but nothing works. I can't even make alias triggers or gags because the font and box sizes aren't proportional.

For example "name" for alias tool says "ame" because the box is so squished. Don't yet know how to do screenshots on surface pro. My keyboard doesn't have a print screen button.
Title: Re: Mudlet Graphical Prompt
Post by: azuriolinist on May 19, 2018, 07:36:05 AM
The pics of the sword, the boot, the chest and the clock are not showing now.

Darn it. Mind trying to reinstall it from the .zip file?

This appears to be happening on Windows.
getMudletHomeDir() returns a string with backslash ('\')
:setStyleSheet mandates use of forward slash ('/')

Dirty change to getMudletHomeDir():gsub('\\', '/') does the trick for me.

Many many thanks for sharing this.

Huh. I see. Thanks for letting me know! I wonder if there's a way to handle that through the package so it's compatible throughout OSes.

...

I'm so sorry to hear about your character. I've felt the same. Also, what you said about mudlet may be good feedback to forward to Mudlet's developers. They may look into it!
Title: Re: Mudlet Graphical Prompt
Post by: azuriolinist on May 19, 2018, 09:19:59 PM
Updated to use :gsub on the image stylesheets, as Pheo mentioned above. Hopefully that works out the kinks on Windows.
Title: Re: Mudlet Graphical Prompt
Post by: kroack on July 05, 2018, 04:18:52 PM
This creation is splendid, good work.
Title: Re: Mudlet Graphical Prompt
Post by: Inky on July 10, 2018, 04:49:28 PM
This is really useful.

What would also be really sweet is an auto-updating inventory and equipment list. If that's even possible.
Title: Re: Mudlet Graphical Prompt
Post by: azuriolinist on July 11, 2018, 01:14:29 PM
I have been meaning to add a couple more things. I haven't been able to figure out the mapper, though. One of these days, I'll strap myself down to it.

Putting in an auto-updating inventory and equipment list proved to be really hack-y. I tried having Mudlet send "i" and "eq" to the MUD every time the prompt showed up. Kept running into the risk of it becoming an endless loop of "i"s and "eq"s, what with the prompt showing up after the inventory/equipment list.

Went with timers, instead, and manually updating the inventory/equipment list by typing in the commands. Also, I changed the look to incorporate more graphics. The color of the time of day now adjusts according to said time, while the weight bar also adjusts depending on how heavy it is. I was jealous of RiftTalon's MUSHClient set-up. Sue me!

(https://vgy.me/RQcVtx.png)

Feedback's always appreciated. You can download the package here (https://drive.google.com/open?id=1JGaVWMArgleDwk3nBn-PVhVyiiw3mZa9). Same instructions as those in the OP to set it up.
Title: Re: Mudlet Graphical Prompt
Post by: deskoft on July 11, 2018, 02:20:54 PM
Goodness, I always wished I could code stuff like this...
Title: Re: Mudlet Graphical Prompt
Post by: deskoft on July 11, 2018, 03:09:20 PM
Okay, so the inventory list isn't showing properly for me. It's spread out in many lines. For some reason, my char's name isn't showing properly -- this is in the new update. The original one does work fantastically well. Maybe also including colors for the EQ and I would be cool, like a color for the <across back> tag and then the equipment. I would be all for reducing the font size.
Title: Re: Mudlet Graphical Prompt
Post by: azuriolinist on July 11, 2018, 10:18:40 PM
That's odd. Can you try entering the command 'setprompt' so that it sets the prompt for you?
Title: Re: Mudlet Graphical Prompt
Post by: Heade on August 09, 2018, 12:32:51 PM
Is the using/carrying window optional? Is there a way to turn it off?

This looks awesome but that window is a bit large for my tastes.
Title: Re: Mudlet Graphical Prompt
Post by: azuriolinist on August 09, 2018, 07:36:51 PM
Yeah, definitely.

You can turn it off by, firstly, opening up the script editor. In Triggers, deactivate the 'sidebar' trigger group under 'arm_gui'. Make sure 'catchprompt' is still activated. You can move it out of the trigger group, if need be.

Disable the script 'sidebar' under Scripts, and the timer group 'sidebar' under Timers. You probably might have to save the profile and restart Mudlet.
Title: Re: Mudlet Graphical Prompt
Post by: azuriolinist on September 10, 2018, 12:27:17 AM
I updated the OP to include two download links -- one with a sidebar and one without. Plus, you shouldn't need to manually install the Fondamento font anymore.

ALSO, Mudlet's dev featured a screenshot of this over at https://www.mudlet.org/ (https://www.mudlet.org/)!!!
Title: Re: Mudlet Graphical Prompt
Post by: Inky on September 14, 2018, 06:10:13 PM
It does not seem to be capturing the equipment list. I've tried reinstalling the package with a fresh profile too.
Title: Re: Mudlet Graphical Prompt
Post by: Veselka on September 19, 2018, 02:53:14 PM
I can get the bar to work (Shows health, etc.) but none of the image files show up. I'm using a Mac, so I can't select the zip file, it just shows up as a folder when I try to install.
Title: Re: Mudlet Graphical Prompt
Post by: azuriolinist on September 19, 2018, 09:43:39 PM
It does not seem to be capturing the equipment list. I've tried reinstalling the package with a fresh profile too.


Can you see whether the trigger 'begininventory' under arm_gui/sidebar is activated?

I can get the bar to work (Shows health, etc.) but none of the image files show up. I'm using a Mac, so I can't select the zip file, it just shows up as a folder when I try to install.

Huh. Were you installing it through the Package Manager?

Alternatively, try pasting one of these one-liners into Mudlet to install the package:

Prompt
Code: [Select]
lua function d(a,b)if not b:find("arm_prompt",1,true)then return end installPackage(b)os.remove(b)cecho("<lime_green>Package installed!\n")end registerAnonymousEventHandler("sysDownloadDone","d")downloadFile(getMudletHomeDir().."/arm_prompt.zip","https://raw.githubusercontent.com/azuriolinist/armageddon-mudlet/master/arm_prompt.zip")
With sidebar
Code: [Select]
lua function d(a,b)if not b:find("arm_gui",1,true)then return end installPackage(b)os.remove(b)cecho("<lime_green>Package installed!\n")end registerAnonymousEventHandler("sysDownloadDone","d")downloadFile(getMudletHomeDir().."/arm_gui.zip","https://raw.githubusercontent.com/azuriolinist/armageddon-mudlet/master/arm_gui.zip")
Title: Re: Mudlet Graphical Prompt
Post by: Veselka on September 19, 2018, 10:46:25 PM
Wow, that 100% worked. The inventory is showing, but not equipment, though. This is a beautiful setup, thank you!

EDIT:
I can see it trying to make the EQ function work...It spits out my EQ every so often randomly, but doesn't capture it to the sidebar.

Also sometimes the room description shows up in the inventory screen until I refresh it with 'I'.
Title: Re: Mudlet Graphical Prompt
Post by: azuriolinist on September 20, 2018, 04:23:35 AM
Wow, that 100% worked. The inventory is showing, but not equipment, though. This is a beautiful setup, thank you!

EDIT:
I can see it trying to make the EQ function work...It spits out my EQ every so often randomly, but doesn't capture it to the sidebar.

Also sometimes the room description shows up in the inventory screen until I refresh it with 'I'.

That's odd. The issue with the EQ might have to do with how I'd exported the package. The bug with the room descriptions and other text showing up in the inventory screen is caused by the function relying on the prompt to stop. It's a little hacky, admittedly.

I updated the script, which should work out those kinks. Could you see whether uninstalling the package through the Package Manager and re-installing it with the one-liner works?
Title: Re: Mudlet Graphical Prompt
Post by: Veselka on September 20, 2018, 11:08:12 PM
Wow, that 100% worked. The inventory is showing, but not equipment, though. This is a beautiful setup, thank you!

EDIT:
I can see it trying to make the EQ function work...It spits out my EQ every so often randomly, but doesn't capture it to the sidebar.

Also sometimes the room description shows up in the inventory screen until I refresh it with 'I'.

That's odd. The issue with the EQ might have to do with how I'd exported the package. The bug with the room descriptions and other text showing up in the inventory screen is caused by the function relying on the prompt to stop. It's a little hacky, admittedly.

I updated the script, which should work out those kinks. Could you see whether uninstalling the package through the Package Manager and re-installing it with the one-liner works?

Uninstalled and reinstalled, still the same. EQ doesn't function but Inventory works out swell.
Title: Re: Mudlet Graphical Prompt
Post by: Veselka on September 21, 2018, 06:31:30 PM
Is there a way to make the inventory the only thing on the sidebar? I realized the game outputting "EQ" every few minutes can actually break hide, so it has some affect on gameplay.
Title: Re: Mudlet Graphical Prompt
Post by: Delirium on September 21, 2018, 06:49:41 PM
I wonder if it's possible to change "EQ" to "look self" and get similar output? That would fix that problem.
Title: Re: Mudlet Graphical Prompt
Post by: Veselka on September 22, 2018, 10:22:16 PM
Ended up going for the non sidebar version and I'm happy. I'm used to seeing my inventory in the main screen anyways, and it removes the EQ-prompting problem.
Title: Re: Mudlet Graphical Prompt
Post by: azuriolinist on September 24, 2018, 02:00:30 AM
Huh. Yeah, I'll try and figure it out. It's weird, because I haven't been able to replicate the bug.

Edit:

Minor update! I separated the scan and listen prompts into toggle-able buttons, plus added gauges for the hunger and thirst level. The hunger and thirst gauges may not be completely accurate, just yet. I'm not exactly sure if I have the different hunger and thirst levels right.

For the meantime, I have thirst at this order: dehydrated, parched, very thirsty, thirsty, little thirsty, not thirsty. Hunger, on the other hand, goes in this order: starving, famished, very hungry, hungry, little hungry, peckish, satisfied, full, stuffed.

You can install it by pasting one of these one-liners into Mudlet:
Prompt:
Code: [Select]
lua function d(a,b)if not b:find("arm_prompt",1,true)then return end installPackage(b)os.remove(b)cecho("<lime_green>Package installed!\n")end registerAnonymousEventHandler("sysDownloadDone","d")downloadFile(getMudletHomeDir().."/arm_prompt.zip","https://raw.githubusercontent.com/azuriolinist/armageddon-mudlet/staging/arm_prompt.zip")
Prompt (with sidebar):
Code: [Select]
lua function d(a,b)if not b:find("arm_gui",1,true)then return end installPackage(b)os.remove(b)cecho("<lime_green>Package installed!\n")end registerAnonymousEventHandler("sysDownloadDone","d")downloadFile(getMudletHomeDir().."/arm_gui.zip","https://raw.githubusercontent.com/azuriolinist/armageddon-mudlet/staging/arm_gui.zip")
(https://vgy.me/r5lrvi.png)
Title: Re: Mudlet Graphical Prompt
Post by: Veselka on September 24, 2018, 01:37:20 PM
This left a bunch of fields blank/not responding. Health shows as 30/125, stun just shows ST and won't update, accent shows as 'accent' and language as 'language', and the food/thirst meters aren't present as well as listen not being present.
Title: Re: Mudlet Graphical Prompt
Post by: azuriolinist on September 24, 2018, 07:40:25 PM
Ah, right. Can you set your prompt to prompt %h/%H|%v/%V|%t/%T|%m/%M|%A|%w|%S|%a|%o|%d|%e|%E|%p|%P|%O|%n|%u|%U>? (or just type in 'setprompt'). That should add the parameters for hunger and thirst.