Model Train Script
ライフスタイル
無料 · アプリ内購入 · iPadに対応しています。macOSでは検証されていません。
ModelTrainScript offers you easy automation of your Z21 or ECoS controlled model train layout. It allows you to configure and run simple automation scripts directly from you iPhone, iPad or Mac.
There are a lot of great open source solutions available to automate your layout, however ModelTrainScript has the focus to make automation as easy as possible. We try to do that by offering a user friendly interface for composing scripts and by reducing the amount of physical components you need. No need for a dedicated computer as central unit, just connect your iPhone (or iPad/Mac) and you are ready to go.
In short ModelTrainScript has the following features:
- Provide easy automation of your layout with scripts
- Manual control your layout with graphical representation
- Provide a catalog of your vehicle collection
- Data is synced via iCloud over all your Apple devices
- Ability to use your device camera to control your vehicles
ModelTrainScript requires a command station supporting the Z21 or ECoS lan protocol, it supports the following standards:
- Feedback: RBus, CBus and LBus (LocoNet)
- RailCom (over CBus, LocoNet and ECoSLink) for occupancy detection.
For more information visit our website or feel free to contact us in case of any questions or feedback!
さらに見る This version gives you more flexibility in organising your scripts and brings a lot of improvements to the user experience.
• Throttle and Profile workspaces: driving and editing each have their own workspace, so you never lose your place.
• Mini throttles: drive several locomotives at once from small floating throttles on the layout.
• RailCom actual speed: with a Z21 and a RailCom decoder, the throttle shows the locomotive's actual speed and reception quality.
• Groups replace sections: bundle actions anywhere in a script, even nested. Existing sections are converted automatically.
• Condition action: if / else if / else based on the state of your layout, for example stop on red, slow down on yellow.
• Choice action: ask a question on every connected device and run the actions of the option that is picked.
• Reset variables action: reset all variables to their default value in one go.
• More flexible conditions: new rules for chance and model clock time, copy and paste of rules, and reusable conditions.
• Wait until a time of day, on the model clock or in real time.
• Remote connection (beta): share one profile between several devices and operate the layout together.
• Accessory delay: a configurable pause between accessory commands so a busy command station isn't overloaded.
• Decoder information: read manufacturer, type and firmware, now also for Doehler & Haass decoders.
• Refreshed look: new tab icons, a glass title bar, dark function tiles and a new drive bar with a stop button.
• iCloud sync fixes.
• Support for iPhone Duo.
• Requires iOS/iPadOS 26 or later.
• Several smaller improvements and bug fixes.
12.0.0 11月17日
- Improved assistant: the AI assistant has been improved and can now edit your scripts and timetables. Enable it under Settings → Advanced.
- Fixed moving an item in the layout editor, which could misplace the item or leave a duplicate behind.
- Element selectors for scripts, routes, timetables, paths, sounds, and variables now offer the option to create a new element on the spot.
- Several smaller bugs have been resolved.
11.2.0 6月28日
This version adds the following new functionality:
- Reusable Paths: path definitions you can reuse in your scripts.
- Shortcut element on the layout: an item that starts a script, timetable, route, or reusable path.
- Custom accessory state labels: tap a state's icon in the layout item editor to set your own name for it; the label is shown in place of the default state name throughout the app.
11.1.0 6月12日
This version introduces the Train Dispatcher, a coordination layer that hands out clearances so two trains never claim overlapping track. Manual moves route via the dispatcher with a new Via dispatcher toggle on the throttle; scripts use the new Request clearance and Release clearance actions. To get a better understanding of the Train Dispatcher, see the Train Dispatcher tutorial.
Other changes:
- Introduction of a model clock with adjustable speed. Conditions and Execution events both gain new clock-based options. See model clock for the full details.
- Timetables can now start automatically from an execution event, the same way scripts can. The new Control Timetable action also lets scripts start or stop any timetable.
- New users are welcomed by a refreshed welcome screen and a guided app tour that walks through the main features.
- Profile setup gets easier: Command stations are now auto-discovered, and a new Test connection action allows you to verify your settings before saving.
- The layout control gets an improved look, with updated assets and tweaked colors.
- Mac support has been greatly improved with this version, fixing issues and improving stability.
11.0.0 5月20日
This version contains ECoS sync fixes.
10.8.1 4月20日
This version brings major improvements to the conditions:
- Conditions now support sub-groups, enabling you to build more complex logic by combining AND and OR at multiple levels
- Reusable conditions: define a condition once and link it from multiple scripts, sections, or actions
- Copy and paste conditions via the toolbar menu
- Redesigned condition editor with live summary and drag & drop support
10.8.0 3月29日
Bugfix release for DCCext support
10.7.1 3月7日
This version introduces variables (integer based). This variables can be used to add conditionality to your scripts via the conditions and events. Variables can be modified via the setVariable action. To monitor them you can add a variable on your layout.
Also some small bugs have been fixed.
10.7.0 3月2日
This version focuses on stability and ux improvements.
- Inline browsing between list elements like sections, actions and vehicle functions
- MTS menu now contains recently edited items and shortcuts
- Set Path action: MTS finds a path between two points on your layout and set turnouts in the right position
- Beta AI Assistant: It can support you to control or create automation (early beta), you will need an internet connection available while using.
- Fix: occasional incorrect iCloud sync
- Fix: occasional disconnect issues
10.6.0 1月27日
Happy holidays!
This version moves the main menu behind a main button making it easier to edit catalog while running your layout.
Also new:
- A new layout improving performance for older devices
- Improved usability for the layout editor
- New layout elements: Three way turnout and Windmill
- House, Factory and Windmill support accessories for lights or interaction
- Animation for layout elements
- Feedback not occupied by feature for conditions and execute events
10.5.0 2025/12/27
This version brings a debug mode. With debug mode you can test your scripts in isolation, you can test how your scripts will respond to events.
Other improvements:
- Stop all automation button
- More prominent indicator for syncing with command station
- Turntable item for layout (visual only)
- Ability to customize order of accessory states in layout items
- DCC Accessory deactivation has been removed, if needed can be enabled via settings
- Several UI Tweaks and minor bug fixes.
Thank you for using Model Train Script!
10.4.0 2025/12/01
Vehicles
- Support for decoder consisting (NMRA advanced consisting)
- Consist Function icon for enabling/disabling consist mode
Tools
- Basic programming support for Z21
Overall
- Improved UX for creating and deleting automation items
- Improved input fields
10.3.0 2025/11/06
New:
- Icons on layout buttons
- Support for Digikeijs DR4088LN modules
- System logging across app runs
Fixes:
- Slow startup if no internet is available
10.2.0 2025/10/17
License
This version introduces a license model. Model Train Script will still be free to use, however there will be restrictions than can be lifted by buying a license. Tap on the more info in the license section of the information screen.
Features
- Improved image recognition for camera control
- Input validation for vehicle, feedback and accessory addresses
Fixes
- Yamorc Z21 message processing crashes
- Yamorc and Digikeijs loconet support
10.1.0 2025/10/01
A new major version of Model Train Script!
This version focuses on improved stability and iOS 26 support.
UI
- updated design to support iOS/iPadOS 26
- iPadOS 26 windowed mode support
- Lots of smaller ui and textual improvements and consistency fixes
- Built-in library for vehicle avatars
- Sync indicator around power button
Automation
- condition now supports vehicle profile and camera detection
- camera now has an expiration time for detection events (valid time)
- WaitAccessory, WaitFeedback and WaitCamera actions have been replaced by WaitForCondition; including all options of a condition
- Extended built-in library of sounds
- VehicleProfile now has option for functions to set to on, off or to ignore
System
- improved threading, more stable connection with command station
- files (in settings) now have last access time to identify abandoned files
- extended Demo profile
- demo now sends occupancy events
- drop support Zimo ZCAN
- drop support of iOS/iPadOS 17
10.0.0 2025/09/15
- Add bridges and tunnels for your layout
- Several smaller bugfixes
9.10.0 2025/07/20
- Show vehicle avatar as RailCom occupancy in layout (configurable in settings)
- Ability to add custom labels on actions
- Reduce pulse time for vehicle functions
9.9.0 2025/06/04
- DCCext support for signals on Z21
- Five new vehicle functions: headlights low beam, high beam, parking lights, raise pantograph, shunting mode and smoke unit
- New layout assets: house and factory
- For Z21 reverse accessory states to match Z21 app: straight = green = 1
- Several bugs have been resolved
9.8.0 2025/05/16
Vehicles
- Vehicles can now have different profiles. These are shortcuts to easily set the speed, direction and functions of a vehicle. A profile can be set manually via the throttle or via the SetVehicleProfile action in your script.
Automation
- For an easier overview scripts can now be ordered in a folder structure. They are also from now on alphabetically sorted, to keep your current order the scripts get a numerical prefix during migration.
- Three new script execution events: Startup, Script Execution and Vehicle Profile. As an example Startup allows you to set your layout to a default state on connect.
- The new ShowNotification action allows you to show notifications during script execution.
- Selecting accessory states is now with a graphical presentation of the state.
Layout
- Two address doubleslipswitch. For recognition the two addresses is marked by two dot, the single address with one dot.
- The (Track)switches are extended from just on/off to different color states.
Other
- Speedsteps in throttle now shown in percentages instead of absolute speedsteps
- Sounds are no longer muted when played on iPhone with ringer muted
- Several small bugfixes and inconsistencies
Please feel free to reach out in case of questions or remarks!
9.7.0 2025/04/28
Fixes minute timer for script execution and timetables.
9.6.2 2025/04/19
Bugfix to support yamorc command station
9.6.1 2025/04/09
Layout
- Add uncoupler element
Automation
- Execute conditions on script are evaluated for ExecuteScript action and manual execution in the throttle
- "Wait for script" on ExecuteScript action, the action will pause until a script is available that meets its execute conditions
9.6.0 2025/04/01
Bugfix release
- Fix multiple addresses on (track)switches are not stored properly
- Fix occasional crash while syncing layout state
9.5.1 2025/03/12
Automation
- Introduction of routes
- Ability to timeout script
- Wait action time now in seconds instead of milliseconds
Layout
- Ability to connect multiple dcc addresses to a (track)button
Throttle
- Recently used vehicle selection for vehicle control
- Ability to lock the layout for user interaction
And several other smaller improvements and bugfixes
Feel free to reach out in case of questions or suggestions!
9.5.0 2025/03/02
Ability to add random behavior in your scripts to make them extra dynamic ;-)
- Random script selection in TimeTables and ExecuteScript action
- Ability to make a vehicle function only
- Fixes import vehicles from ECOS with special characters in their name
- Several smaller bugfixes
9.4.0 2025/02/13
This version gives you more flexibility in organising your scripts and brings a lot of improvements to the user experience.
• Throttle and Profile workspaces: driving and editing each have their own workspace, so you never lose your place.
• Mini throttles: drive several locomotives at once from small floating throttles on the layout.
• RailCom actual speed: with a Z21 and a RailCom decoder, the throttle shows the locomotive's actual speed and reception quality.
• Groups replace sections: bundle actions anywhere in a script, even nested. Existing sections are converted automatically.
• Condition action: if / else if / else based on the state of your layout, for example stop on red, slow down on yellow.
• Choice action: ask a question on every connected device and run the actions of the option that is picked.
• Reset variables action: reset all variables to their default value in one go.
• More flexible conditions: new rules for chance and model clock time, copy and paste of rules, and reusable conditions.
• Wait until a time of day, on the model clock or in real time.
• Remote connection (beta): share one profile between several devices and operate the layout together.
• Accessory delay: a configurable pause between accessory commands so a busy command station isn't overloaded.
• Decoder information: read manufacturer, type and firmware, now also for Doehler & Haass decoders.
• Refreshed look: new tab icons, a glass title bar, dark function tiles and a new drive bar with a stop button.
• iCloud sync fixes.
• Support for iPhone Duo.
• Requires iOS/iPadOS 26 or later.
• Several smaller improvements and bug fixes.
さらに見る バージョン12.0.0 11月17日
データの収集なし デベロッパはこのアプリからデータを収集しません。