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: 10

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: 3770

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
rigrig



Joined: 03 Feb 2011
Posts: 10

PostPosted: Fri Oct 20, 2017 1:38 pm    Post subject: Reply with quote

Quote:
The problem of a compact asciigraphics map that you are talking about is that it would require a legend with 256 characters.

I didn't mean a map with one (special) character per room, but with one character per room and another character per connection, as in my example:
Code:

*-# ^
 x|\|
* *-&

*        regular room (maybe configurable to some fancy Unicode character)
- | \ x  exits
^        room with up exit (v = down, O = both up and down)
# &      room with roomsymbol set

So still using regular ASCII for graphics, except it only uses a single character per room/exit, instead of 3. That way those 6 rooms fit in a 5x3 grid, instead of taking up 15x4.

It works pretty ok for the in-game Discworld MUD map:
Code:

        |              / Northeast-southwest exit
        *              - East-west exit
         \             | North-south exit
        $-@            \ Northwest-southeast exit
    +  / /|            + Door
    $-$-  $            * Room
   /     / \           $ Room with living things
 -$         $          @ Where you are
           / \
(except theirs is in colour which I couldn't copy/paste, and ends at the limit of your vision)
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3770

PostPosted: Thu Nov 02, 2017 10:34 pm    Post subject: Reply with quote

This topic has on update on the mudfont option:

http://tintin.sourceforge.net/board/viewtopic.php?p=9993#9993


As for implementing a compact mode, I'll add it to my list of things to consider.
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