[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]  Lua
. . -> [Subject]  Need help converting this Aardwolf zMUD script

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?
(New message)
Subject: Need help converting this Aardwolf zMUD script
Name:
Your forum user name.
Register forum user name
Password:
Your forum password.
Forgotten password?
Message:
Message to be posted (in English, please).
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 Worstje   Netherlands  (867 posts)  [Biography] bio
Date Tue 08 Jul 2008 10:44 PM (UTC)  quote  ]
Message
Thanks Nick, I'll give it a shot next time I restart MUSH. =)
[Go to top] top

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Sun 06 Jul 2008 03:53 AM (UTC)  quote  ]
Message
Quote:

When you have relatively length scripts that do relatively much, you get a drawing glitch like in hxxp://qs.merseine.nu/images/mush_bug_drawing.png


This problem should go away now in version 4.31, as that draws the output window in a different way. See:

http://www.gammon.com.au/forum/?id=8757

- Nick Gammon

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

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Mon 30 Jun 2008 06:31 AM (UTC)  quote  ]
Message
Quote:

Can't. It's not available for download. :D



See: http://www.gammon.com.au/forum/?id=8750

- Nick Gammon

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

Posted by Worstje   Netherlands  (867 posts)  [Biography] bio
Date Mon 30 Jun 2008 12:28 AM (UTC)  quote  ]
Message
Sorry, old habits die hard. Replace hxxp by http. I'm not too fond of having my personal stuff ending up indexed and I don't trust robots.txt to be foolproof either. =)
[Go to top] top

Posted by Fiendish   USA  (848 posts)  [Biography] bio   Global Moderator
Date Mon 30 Jun 2008 12:04 AM (UTC)  quote  ]
Message
> Let me know how 4.30 works for you.

Can't. It's not available for download. :D

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

Posted by Fiendish   USA  (848 posts)  [Biography] bio   Global Moderator
Date Sun 29 Jun 2008 11:57 PM (UTC)  quote  ]
Message
> Er, why does it need that? I just thought that if you had the "blue water" symbol you would replace that with something more "water-like".

Ok, so maybe "require" is a strong word. But what you propose is such a pain.

"Capture each line, check for color codes, then check for symbols, relate color codes to symbols, replace with appropriate new symbol."

or

"replace A with B"

I think my way makes the script so much nicer. ;)

> As for the bug report...

Ignore that. I thought about it some more, and the two issues aren't related.

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

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Sun 29 Jun 2008 11:11 PM (UTC)  quote  ]
Message
Quote:

This will require a special bigmap that uses a unique symbol for each sector type to be compatible with other clients. I tried doing the same thing in the past, and I found that zMUD has a pretty awful bug when using #sub on colored patterns.
http://forums.zuggsoft.com/forums/viewtopic.php?t=28582


Er, why does it need that? I just thought that if you had the "blue water" symbol you would replace that with something more "water-like".

As for the bug report, I do it differently, as I use style runs, and you don't search for ANSI codes in the first place.

- Nick Gammon

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

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Sun 29 Jun 2008 11:09 PM (UTC)  quote  ]
Message
Anyway, that bug seems related to the other one you reported.

It is possible the change I made here will correct that as a side-effect, and possibly not. I think it gets confused about the clipping region, and the update region.

If it is not corrected, I could probably make every screen draw draw the whole window, now that the flicker is gone. Let me know how 4.30 works for you.

- Nick Gammon

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

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Sun 29 Jun 2008 11:06 PM (UTC)  quote  ]
Message

Safari can’t open the specified address.
Safari can’t open “hxxp://qs.merseine.nu/images/mush_bug_drawing.png” because Mac OS X doesn’t recognize Internet addresses starting with “hxxp:”.



- Nick Gammon

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

Posted by Worstje   Netherlands  (867 posts)  [Biography] bio
Date Sun 29 Jun 2008 10:23 PM (UTC)  quote  ]
Message
On the topic of fixing drawing glitches... (maybe I should make a new topic but hey >_>)

When you have relatively length scripts that do relatively much, you get a drawing glitch like in hxxp://qs.merseine.nu/images/mush_bug_drawing.png

The left image is while my plugin is loading, the right is as it is after loading. While this script shows the bug very exaggeratedly, I also get it in other cases. For example, when in a busy fight, my prompt occasionally looks 'double' like the date line in those screenshots. It can get pretty distracting. I found I can minimize it by making sure nothing is swapped out and having lots of RAM, but imo, it could still use some tweaking.

If 'fixing' it means a bigger penalty to speed, you could additionally make a 'fast draw' setting or some such to deal with that issue.
[Go to top] top

Posted by Fiendish   USA  (848 posts)  [Biography] bio   Global Moderator
Date Sun 29 Jun 2008 07:25 PM (UTC)  quote  ]
Message
> A simple map of the standard characters to the improved ones would fix the translation, that part would be easy.

This will require a special bigmap that uses a unique symbol for each sector type to be compatible with other clients. I tried doing the same thing in the past, and I found that zMUD has a pretty awful bug when using #sub on colored patterns.
http://forums.zuggsoft.com/forums/viewtopic.php?t=28582

If the map does unique symbols and the font is customized anyway, then there's really no reason to do any processing in the client. I think it'd be better to use a font that already has the symbols in the right places.

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

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Sun 29 Jun 2008 11:25 AM (UTC)  quote  ]
Message
Now if you wanted to get *really* fancy you would find a nice font that had trees, water, er ... caves, mountains and so on, so the map looks more realistic.

A simple map of the standard characters to the improved ones would fix the translation, that part would be easy.

- Nick Gammon

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

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Sun 29 Jun 2008 11:21 AM (UTC)  quote  ]
Message
Yes, well the plugin started out as a test of the flicker, but seems to have grown into something almost useable in its own right.

The latest version caches each continent in memory, and uses the "save state" functionality of plugins to remember that for next time.

Now it will only need to do "bigmap" the first time you ever visit a continent. We still need to get rid of that star that appears when you first do it, but I think a server change will achieve that.

A bit more tweaking, to allow for changes to continents (eg. some alias), and perhaps resizing the window to exactly hold the map, and it is about done. :-)

- Nick Gammon

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

Posted by Fiendish   USA  (848 posts)  [Biography] bio   Global Moderator
Date Sun 29 Jun 2008 10:13 AM (UTC)  quote  ]
Message
Yeah, I have a habit of finalizing notes before I'm actually done with them. I wish there were a way to go back and edit. Anyway, what I mean is...

The part that looks like:

if old_continent ~= continent then
Send "bigmap" -- grab map
old_continent = continent
end -- need big map

Needs to not do that. Instead it needs to pull the map from internal storage. The stored maps should get updated with "bigmap" only when a special update routine is used, and that update routine would only need to be used when a continent actually changes like when a new area goes in. There's no good reason to use "bigmap" if the continent doesn't look any different than the last time you were there, and there are a few good reasons to not do it.

In my version I just store each map as a text file in the mud directory.

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

Posted by Fiendish   USA  (848 posts)  [Biography] bio   Global Moderator
Date Sun 29 Jun 2008 09:48 AM (UTC)  quote  ]
Message
Oh, by the way. The map data needs to be stored to the local computer and then accessed from there, so that bigmap is only required when the continent actually changes appearance.

http://aardwolfclientpackage.googlecode.com/
[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.


7,990 views.

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

[Reply to this subject]  Reply to this subject   [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]