obsidian-text-mapper icon indicating copy to clipboard operation
obsidian-text-mapper copied to clipboard

How difficult would it be for somebody to add the Traveller tileset?

Open themaster567 opened this issue 2 years ago • 2 comments

I really would love to see support for the Traveller map added. I'm using this for my Starforged adventures and it's already perfect for planetside content. If it could cover content in space as well, then I could just out right remove the excalcudraw plugin and use this exclusively.

themaster567 avatar May 24 '23 19:05 themaster567

The Gnomeyland tileset is here... as you can see it's just a big multiline string which contains some Textmapper appropriate code as well as raw SVG XML. When you declare SVG in this file, Textmapper will read the id attribute, and then use the SVG. You can also reference other icons to make composite icons with the use tag.

So here's the village icon. It scales and translates three other raw SVG icons (House, Thorp, and Flag), and wraps the whole thing in <g id="village"></g>

<g id="village"><g transform="scale(0.7)"><g transform="translate(0,40)"><use xlink:href="#House"/><use xlink:href="#Thorp"/><use xlink:href="#Flag"/></g></g></g>

Then you can use it in Textmapper like this (soil is a color and "Inn of Five Fishes" is a label).

0513 soil village "Inn of Five Fishes"

So if you were going to do this with Traveller icons, I'd say

  • Convert your tiles to SVG. Don't worry about sizing.
  • Add your raw icons to gnomeyland.ts
  • Make Textmapper specific tiles with <g id="..."> to name the tile, <g transform="..."> to position and scale your raw icons, and <use xlink:href="..."> to include your raw tiles
  • Once you're happy, move them to a traveller.ts file and change all the includes, or just delete everything out of gnomeyland.ts that you don't want.
  • Then build your own version of the plugin using the steps in the README.

modality avatar Aug 18 '23 06:08 modality

@modality How difficult would it be to jury rig the dungeon library tiles in this way? Or would it not be possible with the current code?

thattreethatfell avatar Feb 04 '24 06:02 thattreethatfell