Skip to content

A collection of tools to help with the creation and validation of manually made track networks for the Train Conductor World Map.

Notifications You must be signed in to change notification settings

ekohilas/train-conductor-world-tools

Repository files navigation

Train Conductor World Tools

This repository is a collection of tools to help with the creation and validation of manually made track networks for the Train Conductor World Map.

The tool works by running alongside an open instance of train-conductor-world.tmx within Tiled Map Editor

The required data for the tool, such as the distances, tiles list, and tiled map can be found here.

  1. Ensure the required version of Python in .python-version is installed.
    • One way this can be done is by running pyenv install after pyenv is installed.
  2. Ensure the requirements are installed.
    • With Poetry, this is achieved through running poetry env use python && poetry install
    • Alternatively, one can run python -m pip install .
  3. Tiled Map Editor can be downloaded here.

Usage

  1. Open train-conductor-world.tmx in Tiled Map Editor.
  2. Run main.py e.g.:
    • poetry run python train_conductor_world_helper/main.py
    • python3 train_conductor_world_helper/main.py
  3. Inside Tiled Map Editor, make an edit to the track network and save.
  4. Watch as:
    • Within the Tiled Map Editor, the connections between the ports and cities are updated through the annotations layer.
    • From the Python output, validations are logged informing you of issues.
  5. Repeat.

Example

TODO

  • Add tests
  • Add annotations for shortest bounds
  • Improve annotation code, possibly with decorators or context managers.
  • Fix pylint import errors in pycharm
  • Finalize type annotations

About

A collection of tools to help with the creation and validation of manually made track networks for the Train Conductor World Map.

Resources

Stars

Watchers

Forks

Languages