Skip to content

Parse Wangscape's output and generate random map from the tilesets

License

Notifications You must be signed in to change notification settings

Wangscape/Wangview

Repository files navigation

Wangview Build status

Parse Wangscape's output and generate random map from the tilesets.

Usage

You can find all needed Python modules in the requirements.txt file.

To install them (in a virtual enviroment), just execute (assumming you've installed virtualenv before):

$ virtualenv -p python3 venv
$ . venv/bin/activate
$ pip install -r requirements.txt

After installation, you can generate a random map from Wangscape's output by executing:

python Wangview.py <PATH_TO_OUTPUT_DIRECTORY>

Example

python Wangview.py ../Wangscape/build/bin/example3/output/

Contributing

The repository structure may change in the future, but for now the Python scripts and IPython notebooks should be kept in sync. Pull requests should make synchronous changes to both scripts and notebooks.

If you prefer to work on notebooks, they can be converted to scripts using using nbconvert. This can be done automatically using save hooks (1, 2), or (deprecated) running IPython/Jupyter with the --script flag.

If you prefer to work on the scripts, the edited scripts can be converted back to notebooks using a tool like PY2NB.

Windows executables

If you don't have a compatible version of Python installed on Windows, you can download a standalone executable from AppVeyor. If you need to package a standalone Windows executable yourself, you can use the py2exe script provided, for example:

pip install py2exe
pip install -r requirements.txt
python setup.py py2exe

Due to limitations in py2exe, this requires Python 3.4 or older. If you need to alter setup.py, please see the py2exe website for guidance.

About

Parse Wangscape's output and generate random map from the tilesets

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published