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.
- YAML defines wagons
- sound_profile controls sound include
assetsfolder 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
wagonsfolder
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>