Game-TextMapper
view release on metacpan or search on metacpan
# Text Mapper
This application takes a textual representation of a map and produces
SVG output.
Example input:
```text
0101 empty
0102 mountain
0103 hill "bone hills"
0104 forest
```
[Try it](https://campaignwiki.org/text-mapper).
The app comes with a tutorial built in. See the
[Help](https://campaignwiki.org/text-mapper/help) link.
## Dependencies
Perl Modules (or Debian modules):
* File::ShareDir::Install or libfile-sharedir-install-perl
* IO::Socket::SSL or libio-socket-ssl-perl
* LWP::UserAgent or liblwp-useragent-perl
* List::MoreUtils or liblist-moreutils-perl
* Modern::Perl or libmodern-perl-perl
* Mojolicious or libmojolicious-perl
* Role::Tiny::With or librole-tiny-perl
If you are going to build IO::Socket::SSL, then youâll need OpenSSL
development libraries installed: openssl-devel or equivalent,
depending on your package manager.
To install from the working directory (which will also install all the
dependencies from CPAN unless you installed them beforehand using your
systemâs package manager) use cpan or cpanm.
Example:
```bash
cpanm .
```
## Installation
Use cpan or cpanm to install Game::TextMapper.
Using `cpan`:
```shell
cpan Game::TextMapper
```
Manual install:
```shell
perl Makefile.PL
make
make install
```
## Configuration
In the directory you want to run it from, you may create a config file
named `text-mapper.conf` like the following:
```perl
{
# choose error, warn, info, or debug
loglevel => 'debug',
# use stderr, alternatively use a filename
logfile => undef,
# the URL where the contributions for include statements are
# e.g. 'https://campaignwiki.org/contrib' (only HTTP and HTTPS
# schema allowed), or a local directory
contrib => 'share',
}
```
## Development
As a developer, morbo makes sure to restart the web app whenever a
file changes:
```bash
morbo --mode development --listen "http://*:3010" script/text-mapper
```
Alternatively:
( run in 3.161 seconds using v1.01-cache-2.11-cpan-39bf76dae61 )