:: Re: [DNG] hex grid, SVG
Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: nick
Ημερομηνία:  
Προς: dng
Αντικείμενο: Re: [DNG] hex grid, SVG


The hex grid in D&D was generally used for large (outdoor) areas and IIRC it would usually take 1 day of game time to traverse one hexagon.



Usually you would buy the game module, which would contain one large (outdoor) map by hexagons and a number of smaller maps (dungeons) for the different areas such as castles or towns that were marked in the large map.



As the hexagons were about 1cm or a bit larger, a game map on an A4 sheet would take about a month of game time to traverse. And each day's travel would also involve a roll of the dice for wandering monsters, bands of thieves or whatever.



For the dungeons there wasn't really a concept of distance so it did not matter how they were drawn but usually everything was rectangular for ease of drawing and ease of compass references. Of course you could also make your own module and many happy hours were spent doing just that -- especially if you had the hexagonal graph paper ;)



Regarding SVG there is a package in the node.js repository that I think is called SVGO. And it will strip an inkscape or other SVG to something that a browser can process efficiently. I think you can run it from the command line to prepare your static website, but a more interesting usage is to call from your server while serving the page.



I created a node.js webserver which works like "make" when serving static content (it can also serve dynamic content using a templating system that I created). So when serving a *.svg from disk it checks for an optimized version in a similarly named hidden file like .*.svgo and if it exists and is newer then it serves that instead, otherwise it runs the optimizer to (re)create it first.



If anyone is interested in doing something with this webserver then I would like to point you to my git server and collaborate, but unfortunately when I checked just now I saw that systemd had killed the server process as it often does, so the git isn't browseable right now. Thanks systemd... wish I had time to rebuild all my servers with devuan, I will do it soon but I have some deadlines right now.



cheers, Nick








>
> On 5 Nov 2024 at 2:49 pm, dng-request <dng-request@???> wrote:
>
>
> Send Dng mailing list submissions to
> dng@???
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
> or, via email, send a message with subject or body 'help' to
> dng-request@???
>
> You can reach the person managing the list at
> dng-owner@???
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Dng digest..."
>
>
> Today's Topics:
>
> 1. Re: filosofies behind programming languages (Hendrik Boom)
> 2. Re: filosofies behind programming languages (Antony Stone)
> 3. Re: another programming language question (Kevin Chadwick)
> 4. Re: filosofies behind programming languages (Didier Kryn)
> 5. Re: another programming language question (tito)
> 6. Re: filosofies behind programming languages (Steve Litt)
> 7. Re: filosofies behind programming languages (Steve Litt)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 4 Nov 2024 10:31:26 -0500
> From: Hendrik Boom <hendrik@???>
> To: dng@???
> Subject: Re: [DNG] filosofies behind programming languages
> Message-ID: <ZyjozkeLioAOaP9A@???>
> Content-Type: text/plain; charset=us-ascii
>
> On Mon, Nov 04, 2024 at 05:58:34AM -0500, Dan Purgert via Dng wrote:
> > On Nov 03, 2024, Hendrik Boom wrote:
> > > On Mon, Nov 04, 2024 at 02:26:06AM +0100, karl@??? wrote:
> > > > iam@???:
> > > > > FORTH think like the computer
> > > >
> > > > If so, what about PostScript and HP/rpn ?
> > > >
> > > > I consider PostScript a lovely language to produce printed outputs.
> > > > Unfortunately print drivers abuses it and makes it more or less
> > > > unreadable.
> > >
> > > I once wrote a very short postscript program for a page of hex paper.
> > > I used to print blanks for drawing dingeons and dragons maps.
> >
> > On *hex* grids? Or do you mean you were printing blank square-grid
> > pages?
>
> I was printing blank hexagon-grid pages.
>
> -- hendrik
>
>
> ------------------------------
>
> Message: 2
> Date: Mon, 4 Nov 2024 16:35:22 +0100
> From: Antony Stone <Antony.Stone@???>
> To: dng@???
> Subject: Re: [DNG] filosofies behind programming languages
> Message-ID: <202411041635.22325.Antony.Stone@???>
> Content-Type: Text/Plain; charset="iso-8859-1"
>
> On Monday 04 November 2024 at 16:31:26, Hendrik Boom wrote:
>
> > On Mon, Nov 04, 2024 at 05:58:34AM -0500, Dan Purgert via Dng wrote:
> > > On Nov 03, 2024, Hendrik Boom wrote:
> > > >
> > > > I once wrote a very short postscript program for a page of hex paper.
> > > > I used to print blanks for drawing dingeons and dragons maps.
> > >
> > > On *hex* grids? Or do you mean you were printing blank square-grid
> > > pages?
> >
> > I was printing blank hexagon-grid pages.
>
> Indeed - my recollection of D&D is that hex map grids were far more common
> than square (or any other shape) because it helped to enforce "similar
> distance in any direction for a given number of steps" whilst avoiding
> diagonal moves between squares, or restricting movement to NSEW.
>
> Antony.
>
> --
> I conclude that there are two ways of constructing a software design: One way
> is to make it so simple that there are _obviously_ no deficiencies, and the
> other way is to make it so complicated that there are no _obvious_
> deficiencies.
>
> - C A R Hoare
>
> Please reply to the list;
> please *don't* CC me.
>
>
> ------------------------------
>
> Message: 3
> Date: Mon, 4 Nov 2024 17:00:49 +0000
> From: Kevin Chadwick <kc-devuan@???>
> To: dng@???
> Subject: Re: [DNG] another programming language question
> Message-ID: <8f681cd3-ff21-481d-b58f-a3e9784ea64f@???>
> Content-Type: text/plain; charset=UTF-8
>
> On 03/11/2024 22:35, o1bigtenor via Dng wrote:
> > That's where a
> > manual transmission would have taught you to start in a higher gear at
> > lower rpm with NO spinning and you would be just fine once you're
> > going.
>
> All weather tyres and AWD/4WD would be even better.
>
> In the UK almost everyone drives manuals and most vehemently defend them but the
> automatics these days let you choose the gear anyway and formula one race cars
> have had automatics for decades as the expensive ones are faster than humans.
> Automatics also tend to last longer, though when they do go they can be a car
> killer due to the expense.
>
>
> ------------------------------
>
> Message: 4
> Date: Mon, 4 Nov 2024 18:42:26 +0100
> From: Didier Kryn <kryn@???>
> To: "dng@???" <dng@???>
> Subject: Re: [DNG] filosofies behind programming languages
> Message-ID: <39db92b5-a13e-4dde-b4c8-ed0544f97d00@???>
> Content-Type: text/plain; charset=UTF-8; format=flowed
>
> Le 03/11/2024 ? 20:51, karl@??? a ?crit?:
> > Since there is much talk about programming languages, here is some
> > thoughts about why:
> > https://www.welcometothejungle.com/en/articles/philosophies-programming-languages
> >
> > Also:
> > C trust the programmer
> > perl there are many ways to do things
> > python there is only one right way to do a thing
>
> ??? Ada assumes the programmer is a human being (understatement: error
> making). This is often advertised when comparing to C, for which "We
> assume the programmer knows what she/he does."
>
> -- ??? Didier
>
>
>
> ------------------------------
>
> Message: 5
> Date: Mon, 4 Nov 2024 20:51:52 +0100
> From: tito <farmatito@???>
> To: dng@???
> Subject: Re: [DNG] another programming language question
> Message-ID: <20241104205152.54b22ef0@devuan>
> Content-Type: text/plain; charset=US-ASCII
>
> On Mon, 4 Nov 2024 17:00:49 +0000
> Kevin Chadwick via Dng <dng@???> wrote:
>
> > On 03/11/2024 22:35, o1bigtenor via Dng wrote:
> > > That's where a
> > > manual transmission would have taught you to start in a higher gear at
> > > lower rpm with NO spinning and you would be just fine once you're
> > > going.
> >
> > All weather tyres and AWD/4WD would be even better.
> >
> > In the UK almost everyone drives manuals and most vehemently defend them but the
> > automatics these days let you choose the gear anyway and formula one race cars
> > have had automatics for decades as the expensive ones are faster than humans.
>
> Yes, but the pilots give the input for gear change form levers on the steering wheel,
> so they still control the timing of change.
>
> > Automatics also tend to last longer, though when they do go they can be a car
> > killer due to the expense.
> > _______________________________________________
> > Dng mailing list
> > Dng@???
> > Manage your subscription: https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
> > Archive: https://lists.dyne.org/lurker/list/dng.en.html
>
>
>
> ------------------------------
>
> Message: 6
> Date: Mon, 4 Nov 2024 22:44:11 -0500
> From: Steve Litt <slitt@???>
> To: dng@???
> Subject: Re: [DNG] filosofies behind programming languages
> Message-ID: <20241104224411.5c2f5c3b@???>
> Content-Type: text/plain; charset=UTF-8
>
> Didier Kryn said on Mon, 4 Nov 2024 12:02:48 +0100
>
>
> > ??? About such corruptions, you can look at the SVG code produced by
> >design tools, even by Inkscape. I use to write SVG with Emacs.
> >Sometimes Inkscape is more productive, but I then clean up the result,
> >which makes it readable and typically divides the size by 2.
>
> Is your problem with Inkscape produced SVG all the translations it
> leaves intact rather than just placing and sizing things at production
> time? These translations are why I no longer put Inkscape SVGs on web
> pages, but instead convert them to .png first. I've made complicated
> SVGs that slowed the browser to a crawl because the browser had to do
> all the translations at load time.
>
> SteveT
>
> Steve Litt
>
> http://444domains.com
>
>
> ------------------------------
>
> Message: 7
> Date: Mon, 4 Nov 2024 22:48:46 -0500
> From: Steve Litt <slitt@???>
> To: dng@???
> Subject: Re: [DNG] filosofies behind programming languages
> Message-ID: <20241104224846.303b4f4e@???>
> Content-Type: text/plain; charset=UTF-8
>
> Didier Kryn said on Mon, 4 Nov 2024 18:42:26 +0100
>
> >Le 03/11/2024 ? 20:51, karl@??? a ?crit?:
> >> Since there is much talk about programming languages, here is some
> >> thoughts about why:
> >> https://www.welcometothejungle.com/en/articles/philosophies-programming-languages
> >>
> >> Also:
> >> C trust the programmer
> >> perl there are many ways to do things
> >> python there is only one right way to do a thing
> >
> > ??? Ada assumes the programmer is a human being (understatement:
> > error
> >making). This is often advertised when comparing to C, for which "We
> >assume the programmer knows what she/he does."
>
> The Bible says: "There's a time for every purpose unto heaven."
> Ada says : "There's a type for every purpose unto heaven."
>
>
> SteveT
>
> Steve Litt
>
> http://444domains.com
>
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> Dng mailing list
> Dng@???
> Manage your subscription: https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
> Archive: https://lists.dyne.org/lurker/list/dng.en.html
>
>
> ------------------------------
>
> End of Dng Digest, Vol 122, Issue 11
> ************************************
>