Hi folks,
Ive been toying with an idea for a few days which is basically this:-
Is it possible for a script to be written which would allow for a code to be input as an "open" entry?
What I am thinking along the line of is a basic announcement system, whereby a text file could be created which contains the list of announcements, as a list of files, for example:
001 = Welcome aboard, which is played as the code is entered. File 002 would be the next station, file 3 is "this is" which is played when the door opens etc until the last terminating message. The next station setting could be something like say 300 metres from the stop.
It was along the line of move the reverser away from "0" (detect the first movement of the reverser) and activate the input. once the code is entered the first message would play when the doors open, if possible the rest would be "automatic". I know lua scripts can handle text boxes, I would assume that an input would be available, and as far as I am aware scripts are allowed to play sound files themselves. Not interested in a visual system, it would just be good to be able to have the announcements playing and was thinking that having the file play the sound as it occurred would sav a mass of re-scripting on the sound bin files if its possible...
If there is anyway anyone could help with this, It would be much appreciated especially if it was portable into any unit with relative ease.
Many many thanks in advance....
Scripting question
General discussion about Train Simulator, your thoughts, questions, news and views!
Moderator: Moderators
Return to “[TS] General Discussion”
Jump to
- Site Administration
- ↳ Site Admin Queries
- ↳ UKTS Forum Rules
- ↳ UKTSLive! Road Shows
- ↳ General Discussion
- ↳ Old Deleted Forums
- ↳ Blog - Rick Selby
- ↳ Blog - Pat Cook
- ↳ Blog - Jamie Osbourne
- ↳ Blog - Brett Schnepf
- ↳ Blog - Mike Gilbert
- ↳ Blog - Tamara Williams
- ↳ MSTS 2 Home Page
- ↳ Microsoft Train Simulator 2
- ↳ Virtual Transport Role Playing
- ↳ Read Me First
- ↳ Site Admin (Lifexed)
- Train Simulations
- ↳ BVE and OpenBVE
- ↳ Generic Simulation
- ↳ Rail Simulator
- ↳ [RS] Help for Beginners
- ↳ [RS] General RS Discussion
- ↳ [RS] Screenshots
- ↳ [RS] Videos
- ↳ [RS] Route Building
- ↳ [RS] Building Rolling Stock
- ↳ [RS] Scenario Creation
- ↳ [RS] Cab View Creation
- ↳ [RS] Scenery Creation
- ↳ [RS] Signalling
- ↳ [RS] Sounds
- ↳ [RS] Physics
- ↳ [RS] 3D Modelling
- ↳ [RS] Pre-release Discussions
- ↳ Regional Discussion
- ↳ [RS] Ireland
- ↳ [RS] Europe and Surrounding Areas
- ↳ [RS] North America
- ↳ [RS] Australia / New Zealand
- ↳ [RS] Rest of the World
- ↳ OLDER Versions of RailWorks [1, 2 and 3: Train Simulator 2012]
- ↳ [RW] Frequently Asked Questions
- ↳ [RW] Help for Beginners
- ↳ [RW] General RW Discussion
- ↳ [RW] Steam Help
- ↳ [RW] Screenshots
- ↳ [RW] Videos
- ↳ [RW] Route Building
- ↳ [RW] Route Building Challenge 1
- ↳ [RW] Route Building Challenge 2
- ↳ [RW] Route Building Challenge 3
- ↳ [RW] Great Scenario Challenge 1
- ↳ [RW] Building Rolling Stock
- ↳ [RW] Scenario Creation
- ↳ [RW] Cab View Creation
- ↳ [RW] Scenic Item Creation
- ↳ [RW] Signalling
- ↳ [RW] Sounds
- ↳ [RW] Physics
- ↳ [RW] 3D Modelling
- ↳ [RW] RW Tools
- ↳ [RW] UKTS Freeware Packs
- ↳ WCML North Scenario Pack
- ↳ Train Simulator
- ↳ Links
- ↳ Rail Simulator Home Page
- ↳ Railsimulator.com Blog
- ↳ Paul Jackson (CEO) Blog
- ↳ Wear Valley Railway (RSDerek) Blog
- ↳ Railsimilarity Blog
- ↳ [TS] Frequently Asked Questions
- ↳ [TS] Help for Beginners
- ↳ [TS] General Discussion
- ↳ [TS] Steam Help
- ↳ [TS] Screenshots
- ↳ [TS] Videos
- ↳ [TS] Route Building
- ↳ [TS] Building Rolling Stock
- ↳ [TS] Scenario Creation
- ↳ [TS] Cab View Creation
- ↳ [TS] Scenic Item Creation
- ↳ [TS] Signalling
- ↳ [TS] Sounds
- ↳ [TS] Physics
- ↳ [TS] 3D Modelling
- ↳ [TS] RW Tools
- ↳ [TS] UKTS Freeware Packs
- ↳ Train Sim World
- ↳ [TSW] General Discussion
- ↳ [TSW] Screenshots
- ↳ [TSW] Videos
- ↳ Microsoft Train Simulator 1
- ↳ [MSTS1] Help for Beginners
- ↳ [MSTS1] General MSTS Discussion
- ↳ [MSTS1] MSTS Running under Windows 10
- ↳ [MSTS1] MSTSbin
- ↳ [MSTS1] Screenshots
- ↳ [MSTS1] Videos
- ↳ [MSTS1] Route Building
- ↳ [MSTS1] Building Rolling Stock
- ↳ [MSTS1] Activity Creation
- ↳ [MSTS1] Cab View Creation
- ↳ [MSTS1] Scenery Creation
- ↳ [MSTS1] Sounds
- ↳ [MSTS1] Physics
- ↳ [MSTS1] Texture Creation
- ↳ [MSTS1] 3D Modelling
- ↳ [MSTS1] UKFinescale Track
- ↳ [MSTS1] XTracks Track
- ↳ [MSTS1] MSTS under VISTA or Windows 7
- ↳ Regional Discussion
- ↳ [MSTS1] Ireland
- ↳ [MSTS1] Europe and Surrounding Areas
- ↳ [MSTS1] North America
- ↳ [MSTS1] Australia / New Zealand
- ↳ [MSTS1] Australia / New Zealand Wish List
- ↳ [MSTS1] Rest of the World
- ↳ Special Interest Groups
- ↳ [MSTS1] Welsh Highland Railway
- ↳ [MSTS1] Chris Baily's Productions (inc ELR etc)
- ↳ [MSTS1] Midland Railway TS
- ↳ [MSTS1] Save 75069 CD
- ↳ [MSTS1] Bo'ness And Kinneil Railway TS
- ↳ [MSTS1] LMS Rolling Stock CD
- ↳ OpenRails
- ↳ Links
- ↳ OpenRails Home
- ↳ Developers: XNA Creators Home
- ↳ Developers: Visual Studio Express Editions
- ↳ Developers: Reimers XNA Tutorials
- ↳ [OR] Help for Beginners
- ↳ [OR] General OpenRails Discussion
- ↳ [OR] Screenshots
- ↳ [OR] Development
- ↳ [OR] Activity Creation
- ↳ Special Interest Forums
- ↳ Narrow Gauge
- ↳ Trams
- ↳ Underground
- ↳ Technical Discussions - Hardware, Operating Systems
- ↳ Trainz
- ↳ Trainz: A New Era [T2]
- ↳ [T2] General Discussion
- ↳ Trainz Railway Simulator [TRS]
- ↳ [TRS] Help for Beginners
- ↳ [TRS] General Trainz Discussion
- ↳ [TRS] Screenshots
- ↳ World of Subways
- 3D Modelling
- ↳ 3D Crafter
- ↳ Blender
- ↳ 3D Studio Max AND Discreet GMax
- ↳ Abacus TS Modeler
- ↳ Google Sketchup
- Railways in the Real and Scale World
- ↳ Scale Railway Modelling
- ↳ Railway Photography
- ↳ Real Railway Discussion
- ↳ Rail Related Magazines
- Other Simulations
- ↳ [TRAIN] Signalling Simulations
- ↳ [TRAIN] Other Train Sims
- ↳ [SHIP] Ship Simulators
- ↳ [ROAD] Road-based Simulators
- Non-Train Simulation
- ↳ Open Forum
- ↳ Aviation
- UKTrainSim Works
- ↳ RailWorks RailDriver Interface
- ↳ RailWorks Joystick Interface