Skip to content

Repository files navigation

RSS Open Rails WAG Builder (Clean Baseline)

Why this tool?

Writing WAG files from scratch can be a hurdle for people who don't do it very often. There are some good online references, such as https://www.coalstonewcastle.com.au/physics/wag-settings/ but this can also lead to information overload.

This script will help get you started creating a WAG file for standard rolling stock that can build OpenRails style files that rely on Includes and multiple freight_anim() definitions.

This tool is designed for creators who generate content with Blender and wish to move from the EXPORT step to OpenRails-Ready content with minimal effort.

Key Design:

  • YAML defines wagons
  • sound_profile controls sound include
  • assets folder is authoritative source of Shapes and textures
  • Variants share one folder
  • Copies textures referenced by .S files
  • No recursive dependency scanning (Up to content creator to resolve)
  • will process ALL YAML files in the wagons folder

NOTE: You should move all processed YAML files to a backup folder.

Install:

Python 3.x
pip install pyyaml jinja2

Run:

python wag_builder.py
python wag_builder.py <TRAINSET_PATH>

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages