[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Miniwindows
. . -> [Subject]  MiniWindow Channel Capture
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?
(New message)
Subject: MiniWindow Channel Capture
Name:
Your forum user name.
Register forum user name
Password:
Your forum password.
Forgotten password?
Message:
Message to be posted (in English, please)
Maximum of 6000 characters. Text only please, no HTML.
Forum codes:
Check this if your message uses 'forum codes' or templates (auto-detected for new posts).
Forum codes Templates

Save this message ...


Subject review (reverse sequence)

Pages: 1  2  3 

Posted by Fiendish   USA  (942 posts)  [Biography] bio   Global Moderator
Date Fri 16 Mar 2012 11:22 PM (UTC)  quote  ]
Message
Curtis_D said:

Oh no! Without the use of a readily available input box it makes the use of a pager worthless
I think it should be possible to build one from scratch. But it may not be easy.

http://aardwolfclientpackage.googlecode.com/
https://github.com/fiendish/aardwolfclientpackage
[Go to top] top

Posted by Curtis_D   (32 posts)  [Biography] bio
Date Thu 15 Mar 2012 05:24 AM (UTC)  quote  ]
Message
Oh no! Without the use of a readily available input box it makes the use of a pager worthless, at least for what I wanted to use it for. I’ll try to research the Text edit dialog box thing to see if maybe I can manipulate it in some way to make it still do what I need it to do.
What I really need to do is find some time to just sit down with the help file and really dig into how things work. That’s how I taught myself how to use many other IS programs, like Excel, Monarch, InfoPath, etc.
While at work I have the next best thing – the forum FAQ and I believe I saw a glossary somewhere once or something like it.

[Go to top] top

Posted by Nick Gammon   Australia  (19,188 posts)  [Biography] bio   Forum Administrator
Date Wed 14 Mar 2012 08:58 PM (UTC)  quote  ]
Message
You can save details like the player name easily enough (eg. a table keyed by miniwindow ID).

But miniwindows don't support individual input areas. You could have a "reply" button (eg. square box) which pops up a text-edit dialog box, which you have to type into and dismiss.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Curtis_D   (32 posts)  [Biography] bio
Date Wed 14 Mar 2012 07:44 PM (UTC)  quote  ]
Message
This concept is really similar to what I want to try and come up with.

Instead of redirecting channel lines, I'm trying to allow the creation of many miniwindows for players you page.

But the most important part would be that each window needs to have a local var that remembers the name of the user I'm paging
For instance if I type "Pager Jonah" it would create a miniwindow for Jonah. I was hoping to make it so that each pager window would have its own input block, and when send pages through them it would send it with "page *" where * is the name of the person being paged.

Of course lines that pertain to the pager would need to be directed to it.

for instance,

<Page> You page-pose, "Curtis waves." (Sent to Jonah)
<Page> You page, "How are you?" (Sent to Jonah)
<Page> In a page-pose to you, Jonah waves back. (Sent to Curtis)
<Page> Jonah pages, "I'm doing great." (Sent to Curtis)


And hopefully I can add the scroll up/down a page buttons too since page data is kind of important at times.

Is this doable? What do you think?
[Go to top] top

Posted by Fiendish   USA  (942 posts)  [Biography] bio   Global Moderator
Date Sat 03 Mar 2012 03:00 AM (UTC)  quote  ]
Message
Couto said:

I'm interested in this. Is it possible to upload a screenshot or something similar to get an impression how this window with some chats looks for you?


http://code.google.com/p/aardwolfclientpackage/wiki/ChannelCapture

http://aardwolfclientpackage.googlecode.com/
https://github.com/fiendish/aardwolfclientpackage
[Go to top] top

Posted by Couto   (15 posts)  [Biography] bio
Date Sat 25 Feb 2012 04:56 PM (UTC)  quote  ]
Message
I'm interested in this. Is it possible to upload a screenshot or something similar to get an impression how this window with some chats looks for you?

My mud provides all chat channels over ATCP. So i dont need extra triggers to catch them and now i think about getting a miniwindow with all chats. But i'm not much of a coder and i'll need a template to start with.
[Go to top] top

Posted by Fiendish   USA  (942 posts)  [Biography] bio   Global Moderator
Date Sun 29 Jan 2012 09:20 PM (UTC)  quote  ]

Amended on Sun 29 Jan 2012 09:21 PM (UTC) by Fiendish

Message
Jadinna said:

Fiendish said:
...


Sorry, those links are no longer valid. As I developed the Aardwolf MUSHclient package more, I (unfortunately for you) made it rather more difficult for someone else to move over to another MUD.

For the latest versions you'll want to see
http://code.google.com/p/aardwolfclientpackage/source/browse/trunk/MUSHclient/worlds/plugins/aard_channels_fiendish.xml
and
http://code.google.com/p/aardwolfclientpackage/source/browse/trunk/MUSHclient/worlds/plugins/aard_chat_echo.xml

For the version around at the time of that thread post, you'll want to look back into the repository history from before I changed the whole file structure...
http://code.google.com/p/aardwolfclientpackage/source/browse/trunk/Aardwolf_Chat_Capture_mw.xml?spec=svn65&r=41

http://aardwolfclientpackage.googlecode.com/
https://github.com/fiendish/aardwolfclientpackage
[Go to top] top

Posted by Jadinna   Australia  (8 posts)  [Biography] bio
Date Sat 28 Jan 2012 05:04 PM (UTC)  quote  ]
Message
Fiendish said:

By the way, there's a new version of my script available at:
http://code.google.com/p/aardwolfclientpackage/source/browse/trunk/Aardwolf_Chat_Capture_mw.xml
Don't forget to customize it for your MUD.

It now also requires this file to be put into your plugins folder. It deals with converting style runs to plain text with injected color codes. The contents of this file are customized for Aardwolf. In order to get color-code copying to work for your MUD you may have to change it.
http://aardwolfclientpackage.googlecode.com/files/aardwolf_colors.lua

Share and enjoy.
[Go to top] top

Posted by Vicarious   (1 post)  [Biography] bio
Date Wed 21 Sep 2011 02:45 AM (UTC)  quote  ]
Message
is anyone still on the forum that could help me edit this to my mud?
[Go to top] top

Posted by Fiendish   USA  (942 posts)  [Biography] bio   Global Moderator
Date Fri 15 Oct 2010 06:15 PM (UTC)  quote  ]

Amended on Fri 15 Oct 2010 06:16 PM (UTC) by Fiendish

Message
I'm back to updating this script again.
There's a new version available that gets rid of the second window hack for resizing, now that we can nondestructively resize miniwindows. It also now relies on yet another file (feature creep!) available at
http://aardwolfclientpackage.googlecode.com/files/mw_theme_base.lua
This enables cross-plugin color theme unification as long as everyone plays nice. See the comment at the top of mw_theme_base.lua for details.

http://aardwolfclientpackage.googlecode.com/
https://github.com/fiendish/aardwolfclientpackage
[Go to top] top

Posted by Nick Gammon   Australia  (19,188 posts)  [Biography] bio   Forum Administrator
Date Thu 22 Jul 2010 12:44 AM (UTC)  quote  ]
Message
Fiendish said:

I was like, "Yeah, but here I only get pixels and text and mouse events!"


You don't get "only pixels" - you can draw whole lines of text, you can draw filled or outlined shapes, including Bezier curves, rectangles, ellipses etc.

You can draw images from .PNG files. You can flood-fill areas.

So it is under-stating the library a bit to say you only get pixels to work with.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Nick Gammon   Australia  (19,188 posts)  [Biography] bio   Forum Administrator
Date Wed 21 Jul 2010 10:55 PM (UTC)  quote  ]
Message
Fiendish said:

And srsly, we need the simplicity of spawning efficient resizable scrolling (real) windows that aren't hacks on top of a very base layer to get serious about development. The whole time I spent on the capture window my girlfriend was bugging me "Don't operating systems usually give that stuff (window dressing) to you already?" I was like, "Yeah, but here I only get pixels and text and mouse events!"


Even in the core MUSHclient code (the C++ stuff) I don't attempt to rewrap if you resize the output window. Recalculating wrap boundaries for potentially hundreds of thousands of lines is going to be slow, in any language.

Fiendish said:

Someone should request as a feature the ability to get the colors of captured text in a more efficient manner. Looping through loops of loops just because we don't have access to the color code for each character kinda sucks.


Actually, storing style runs is more efficient than storing a "color code for each character". For one thing, each character has a foreground colour (R/G/B which is 3 bytes) plus a background colour (another 3 bytes) plus bold/underline etc. So if you stored it "per character" you would be using something like 8 bytes per character (the character itself, + 3 foreground, +3 background, +1 style).

Then even if I gave you that information, per character, you would then have to replace calling WindowText once (for a whole lot of consecutive bytes, all the same colour) with lots of calls, which itself is slower. Imagine, instead of a single call to display 80 bytes, all white on black, you had to do 80 calls! And then that defeats text kerning, where the text output routines might kern and anti-alias based on adjacent letters.

So you may end up with a slower result, and one in which the text looked worse.

Remember, the miniwindows were initially designed to give scripters what they didn't have in the text client, namely:


  • Status bars
  • Action buttons
  • Pop-up windows (eg. inventory items)
  • Images (eg. maps)
  • Some text capability (eg. for labels)


Providing scrolling text, with text wrapping like a word processor, was not high on the design agenda.

And indeed Fiendish, you have demonstrated it can be done, and done very well. You don't have to wrap everything after all, just the visible parts. And the player probably won't resize every couple of seconds, so they may tolerate a brief delay if they do.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Fiendish   USA  (942 posts)  [Biography] bio   Global Moderator
Date Wed 21 Jul 2010 10:05 PM (UTC)  quote  ]

Amended on Wed 21 Jul 2010 10:17 PM (UTC) by Fiendish

Message
Cburke said:

Fiendish,

I just wanted to compliment you on your window design. It's really very nice indeed!

I play Achaea and I was able to get it up and capturing channels fairly easily. After working with it for a short time, I've already started thinking about other potential uses for such a scrollable window. That brings me to my question:

I'd like to have just the window functionality for general purpose use with other plugins (e.g. make it a library). I'd also like to contribute this back to the forum for others to use. How would you feel about this (of course giving you full credit for the window itself)?

Please let me know your thoughts.

-C


Sounds awesome. Do it. I wouldn't feel good about getting sole credit for something like this that has evolved from the work of others, though. Perhaps you'd could just give credit to the forums. :)

Tbh, I'd really like to see this stuff eventually make its way into the MUSHclient C++ code instead of being interpreted by Lua. Live text reflowing gets wicked slow if there is lots of text in the scrollback buffer. :( And srsly, we need the simplicity of spawning efficient resizable scrolling (real) windows that aren't hacks on top of a very base layer to get serious about development. The whole time I spent on the capture window my girlfriend was bugging me "Don't operating systems usually give that stuff (window dressing) to you already?" I was like, "Yeah, but here I only get pixels and text and mouse events!"

Speaking of such things...
Someone should request as a feature the ability to get the colors of captured text in a more efficient manner. Looping through loops of loops just because we don't have access to the color code for each character kinda sucks.

http://aardwolfclientpackage.googlecode.com/
https://github.com/fiendish/aardwolfclientpackage
[Go to top] top

Posted by Cburke   (11 posts)  [Biography] bio
Date Wed 14 Jul 2010 04:30 AM (UTC)  quote  ]
Message
Fiendish,

I just wanted to compliment you on your window design. It's really very nice indeed!

I play Achaea and I was able to get it up and capturing channels fairly easily. After working with it for a short time, I've already started thinking about other potential uses for such a scrollable window. That brings me to my question:

I'd like to have just the window functionality for general purpose use with other plugins (e.g. make it a library). I'd also like to contribute this back to the forum for others to use. How would you feel about this (of course giving you full credit for the window itself)?

Please let me know your thoughts.

-C
[Go to top] top

Posted by Bala   (5 posts)  [Biography] bio
Date Sat 22 May 2010 07:18 PM (UTC)  quote  ]
Message
Nevermind I found the file. I blame it on lack of sleep!
[Go to top] 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.


19,292 views.

This is page 3, subject is 3 pages long:  [Previous page]  1  2  3 

[New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]