TinTin++ Mud Client The TinTin++ message board

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
TinTin++ Mud Client

Map: compact ascii graphics

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Feature Requests
View previous topic :: View next topic  
Author Message
rigrig



Joined: 03 Feb 2011
Posts: 9

PostPosted: Sun Jun 12, 2016 12:12 pm    Post subject: Map: compact ascii graphics Reply with quote

Could we have a compact asciigraphics map, to still show diagonal exits, but taking up less space?

Instead of (current):
Code:

[ ]---[#]   [^]
   \ / | \   |
   / \ |   \ |
[ ]   [ ]---[&]


It would look like this (using asterisks as default when no roomsymbol is set):
Code:

*-# ^
 x|\|
* *-&
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3762

PostPosted: Mon Jul 17, 2017 9:15 pm    Post subject: Reply with quote

You can enable #map flag symbolgraphics, then write a loop that visits each room in the map, examines the number of exits, and sets the roomsymbol accordingly.

Currently there is a (4 bit) 16 exit types legend which is set with #map legend, when you create a map with #config charset UTF-8 set it'll assign UTF-8 drawing characters. I think most terminals are UTF-8 capable by default now.

There's also #map flag mudfont which can work quite well if you can get the mudfont to work. I think it only works with rxvt on Windows.

http://tintin.sourceforge.net/download/MUD.FON

It is explained in somewhat decent detail here:

http://www.mudbytes.net/forum/comment/46578/

I think Slysven at one point worked on a font, but I don't know if he ever produced anything compatible with #map flag mudfont.

If you're interested in designing an ascii legend that works with mudfont (2 characters per room) I can update the code so it'll work with a custom legend.

It would require a legend of 64 characters that resemble the drawing characters I'll paste below.

Code:

________ _______# ##______ ##_____# ________ _______# ##______ ##_____# ________ _______# ##______ ##_____# ________ _______# ##______ ##_____#
________ _______# _##_____ _##____# ________ _______# _##_____ _##____# ________ _______# _##_____ _##____# ________ _______# _##_____ _##____#
________ _______# __##____ __##___# ________ _______# __##____ __##___# ________ _______# __##____ __##___# ________ _______# __##____ __##___#
________ _______# ___##___ ___##__# ________ _______# ___##___ ___##__# ________ _______# ___##___ ___##__# ________ _______# ___##___ ___##__#
________ _______# ____##__ ____##_# ________ _______# ____##__ ____##_# ________ _______# ____##__ ____##_# ________ _______# ____##__ ____##_#
_______# _______# _____### _____### ######## ######## ######## ######## ______## ______## _____### _____### ######## ######## ######## ########
_______# _______# ______## ______## ######## ######## ######## ######## _____### _____##_ _____### _____### ######## ######## ######## ########
________ ________ ________ ________ ________ ________ ________ ________ ____##__ ____##__ ____##__ ____##__ ____##__ ____##__ ____##__ ____##__
________ ________ ________ ________ ________ ________ ________ ________ ___##___ ___##___ ___##___ ___##___ ___##___ ___##___ ___##___ ___##___
________ ________ ________ ________ ________ ________ ________ ________ __##____ __##____ __##____ __##____ __##____ __##____ __##____ __##____
________ ________ ________ ________ ________ ________ ________ ________ _##_____ _##_____ _##_____ _##_____ _##_____ _##_____ _##_____ _##_____
________ ________ ________ ________ ________ ________ ________ ________ ##______ ##______ ##______ ##______ ##______ ##______ ##______ ##______
________ ________ ________ ________ ________ ________ ________ ________ #_______ #_______ #_______ #_______ #_______ #_______ #_______ #_______

________ _______# ##______ ##_____# ________ _______# ##______ ##_____# ________ _______# ##______ ##_____# ________ _______# ##______ ##_____#
________ _______# _##_____ _##____# ________ _______# _##_____ _##____# ________ _______# _##_____ _##____# ________ _______# _##_____ _##____#
________ _______# __##____ __##___# ________ _______# __##____ __##___# ________ _______# __##____ __##___# ________ _______# __##____ __##___#
________ _______# ___##___ ___##__# ________ _______# ___##___ ___##__# ________ _______# ___##___ ___##__# ________ _______# ___##___ ___##__#
________ _______# ____##__ ____##_# ________ _______# ____##__ ____##_# ________ _______# ____##__ ____##_# ________ _______# ____##__ ____##_#
_______# _______# _____### _____### ######## ######## ######## ######## ______## ______## _____### _____### ######## ######## ######## ########
_______# _______# ______## ______## ######## ######## ######## ######## _____### _____##_ _____### _____### ######## ######## ######## ########
_______# _______# _______# _______# _______# _______# _______# _______# ____##_# ____##_# ____##_# ____##_# ____##_# ____##_# ____##_# ____##_#
_______# _______# _______# _______# _______# _______# _______# _______# ___##__# ___##__# ___##__# ___##__# ___##__# ___##__# ___##__# ___##__#
_______# _______# _______# _______# _______# _______# _______# _______# __##___# __##___# __##___# __##___# __##___# __##___# __##___# __##___#
_______# _______# _______# _______# _______# _______# _______# _______# _##____# _##____# _##____# _##____# _##____# _##____# _##____# _##____#
_______# _______# _______# _______# _______# _______# _______# _______# ##_____# ##_____# ##_____# ##_____# ##_____# ##_____# ##_____# ##_____#
_______# _______# _______# _______# _______# _______# _______# _______# #______# #______# #______# #______# #______# #______# #______# #______#

________ #_______ ______## #_____## ________ #_______ ______## #_____## ________ #_______ ______## #_____## ________ #_______ ______## #_____##
________ #_______ _____##_ #____##_ ________ #_______ _____##_ #____##_ ________ #_______ _____##_ #____##_ ________ #_______ _____##_ #____##_
________ #_______ ____##__ #___##__ ________ #_______ ____##__ #___##__ ________ #_______ ____##__ #___##__ ________ #_______ ____##__ #___##__
________ #_______ ___##___ #__##___ ________ #_______ ___##___ #__##___ ________ #_______ ___##___ #__##___ ________ #_______ ___##___ #__##___
________ #_______ __##____ #_##____ ________ #_______ __##____ #_##____ ________ #_______ __##____ #_##____ ________ #_______ __##____ #_##____
#_______ #_______ ###_____ ###_____ ######## ######## ######## ######## ##______ ##______ ###_____ ###_____ ######## ######## ######## ########
#_______ #_______ ##______ ##______ ######## ######## ######## ######## ###_____ ###_____ ###_____ ###_____ ######## ######## ######## ########
________ ________ ________ ________ ________ ________ ________ ________ __##____ __##____ __##____ __##____ __##____ __##____ __##____ __##____
________ ________ ________ ________ ________ ________ ________ ________ ___##___ ___##___ ___##___ ___##___ ___##___ ___##___ ___##___ ___##___
________ ________ ________ ________ ________ ________ ________ ________ ____##__ ____##__ ____##__ ____##__ ____##__ ____##__ ____##__ ____##__
________ ________ ________ ________ ________ ________ ________ ________ _____##_ _____##_ _____##_ _____##_ _____##_ _____##_ _____##_ _____##_
________ ________ ________ ________ ________ ________ ________ ________ ______## ______## ______## ______## ______## ______## ______## ______##
________ ________ ________ ________ ________ ________ ________ ________ _______# _______# _______# _______# _______# _______# _______# _______#

________ #_______ ______## #_____## ________ #_______ ______## #_____## ________ #_______ ______## #_____## ________ #_______ ______## #_____##
________ #_______ _____##_ #____##_ ________ #_______ _____##_ #____##_ ________ #_______ _____##_ #____##_ ________ #_______ _____##_ #____##_
________ #_______ ____##__ #___##__ ________ #_______ ____##__ #___##__ ________ #_______ ____##__ #___##__ ________ #_______ ____##__ #___##__
________ #_______ ___##___ #__##___ ________ #_______ ___##___ #__##___ ________ #_______ ___##___ #__##___ ________ #_______ ___##___ #__##___
________ #_______ __##____ #_##____ ________ #_______ __##____ #_##____ ________ #_______ __##____ #_##____ ________ #_______ __##____ #_##____
#_______ #_______ ###_____ ###_____ ######## ######## ######## ######## ##______ ##______ ###_____ ###_____ ######## ######## ######## ########
#_______ #_______ ##______ ##______ ######## ######## ######## ######## ###_____ ###_____ ###_____ ###_____ ######## ######## ######## ########
#_______ #_______ #_______ #_______ #_______ #_______ #_______ #_______ #_##____ #_##____ #_##____ #_##____ #_##____ #_##____ #_##____ #_##____
#_______ #_______ #_______ #_______ #_______ #_______ #_______ #_______ #__##___ #__##___ #__##___ #__##___ #__##___ #__##___ #__##___ #__##___
#_______ #_______ #_______ #_______ #_______ #_______ #_______ #_______ #___##__ #___##__ #___##__ #___##__ #___##__ #___##__ #___##__ #___##__
#_______ #_______ #_______ #_______ #_______ #_______ #_______ #_______ #____##_ #____##_ #____##_ #____##_ #____##_ #____##_ #____##_ #____##_
#_______ #_______ #_______ #_______ #_______ #_______ #_______ #_______ #_____## #_____## #_____## #_____## #_____## #_____## #_____## #_____##
#_______ #_______ #_______ #_______ #_______ #_______ #_______ #_______ #______# #______# #______# #______# #______# #______# #______# #______#


The problem of a compact asciigraphics map that you are talking about is that it would require a legend with 256 characters. You might figure out the complexity of that yourself if you go the symbolmap route.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Feature Requests All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads
TinTin++ Homepage

Powered by phpBB © 2001, 2002 phpBB Group