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
➜ Lua
➜ Need help converting this Aardwolf zMUD script
|
Need help converting this Aardwolf zMUD script
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Pages: 1
2 3
| Posted by
| Fiendish
USA (2,558 posts) Bio
Global Moderator |
| Date
| Reply #15 on Sun 29 Jun 2008 08:57 AM (UTC) |
| Message
| | Brilliant. This is why I've always liked you. Erm, in a purely platonic sort of way. |
https://github.com/fiendish/aardwolfclientpackage | | Top |
|
| Posted by
| Fiendish
USA (2,558 posts) Bio
Global Moderator |
| Date
| Reply #16 on Sun 29 Jun 2008 09:48 AM (UTC) |
| 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. |
https://github.com/fiendish/aardwolfclientpackage | | Top |
|
| Posted by
| Fiendish
USA (2,558 posts) Bio
Global Moderator |
| Date
| Reply #17 on Sun 29 Jun 2008 10:13 AM (UTC) |
| 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. |
https://github.com/fiendish/aardwolfclientpackage | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #18 on Sun 29 Jun 2008 11:21 AM (UTC) |
| 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 | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #19 on Sun 29 Jun 2008 11:25 AM (UTC) |
| 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 | | Top |
|
| Posted by
| Fiendish
USA (2,558 posts) Bio
Global Moderator |
| Date
| Reply #20 on Sun 29 Jun 2008 07:25 PM (UTC) |
| 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. |
https://github.com/fiendish/aardwolfclientpackage | | Top |
|
| Posted by
| Worstje
Netherlands (899 posts) Bio
|
| Date
| Reply #21 on Sun 29 Jun 2008 10:23 PM (UTC) |
| 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. | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #22 on Sun 29 Jun 2008 11:06 PM (UTC) |
| 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 | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #23 on Sun 29 Jun 2008 11:09 PM (UTC) |
| 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 | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #24 on Sun 29 Jun 2008 11:11 PM (UTC) |
| 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 | | Top |
|
| Posted by
| Fiendish
USA (2,558 posts) Bio
Global Moderator |
| Date
| Reply #25 on Sun 29 Jun 2008 11:57 PM (UTC) |
| 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. |
https://github.com/fiendish/aardwolfclientpackage | | Top |
|
| Posted by
| Fiendish
USA (2,558 posts) Bio
Global Moderator |
| Date
| Reply #26 on Mon 30 Jun 2008 12:04 AM (UTC) |
| Message
| > Let me know how 4.30 works for you.
Can't. It's not available for download. :D |
https://github.com/fiendish/aardwolfclientpackage | | Top |
|
| Posted by
| Worstje
Netherlands (899 posts) Bio
|
| Date
| Reply #27 on Mon 30 Jun 2008 12:28 AM (UTC) |
| 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. =) | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #28 on Mon 30 Jun 2008 06:31 AM (UTC) |
| Message
| |
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #29 on Sun 06 Jul 2008 03:53 AM (UTC) |
| 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 | | 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.
96,962 views.
This is page 2, subject is 3 pages long:
1
2 3
It is now over 60 days since the last post. This thread is closed.
Refresh page
top