Welcome to the TrainPlayer Scripting Page
Your guide to TrainPlayer Scripting, a hobby within a hobby!
What Is
Scripting?
A script is a series of instructions for operating a
layout. It may contain commands to drive trains, throw switches,
set preferences, execute menu commands, make decisions -- pretty
much everything needed to choreograph
a complex operation, then play it back and watch it all run automatically.
Scripting is the activity of
designing and developing these things.
This page provides a home base for those who develop scripts
or would like to learn how to. Come on in! There are
some easy ways to get started. Anyone with the DYI
mentality of a model railroader will find it fun and
challenging.
But this page is not just for the script producers, it is
also for the consumers -- those who enjoy railroad ops and don't
mind working for a computerized boss. Scripting has
evolved to a point where it can be used to generate random
switching orders, provide interactive instructions, monitor
progress, provide rewards on completion. Try some of the
newest layouts, and behold the state of the art.
Basic
Documentation
Basic
information about scripting is found in the TrainPlayer manual.
Here is a web-based copy of the complete Scripting chapter:
Note: some of the links inside
these chapters will not work. If you get a "page not
found" error, it is looking for a page not duplicated on the
web.
A better reference for commands and language details is in
the Reference tab of Script Central. The info in this tab
is always up to date and guaranteed to match the program
capabilities.
Advanced
Documentation
Richard
Fletcher has provided an excellent series of detailed documents
about scripting -- how it works and how to do it. Required
reading by any serious student of the subject.
Where To Go
For Help
If you think you would like to get further into scripting,
join our
TP User
Forum
and chat with the experts. It's a friendly
group with a vast knowledge of the subject.
If you are already into it and running into difficulties,
drop us a line:
info@trainplayer.com. We're glad to help.
Feel free to write if you have suggestions for further
enhancements.
|