Alan Thomson Simulation › Forums › Alan Thomson Simulation Forums › General Discussion › Scenario Script…
- This topic has 3 replies, 3 voices, and was last updated 10 months, 2 weeks ago by Jeff Hall.
-
AuthorPosts
-
7th August 2021 at 22:40 #2407244Derek KnowlesParticipant
Hi All,
Just done a search for EditScenarioScript.exe”, which there is nothing to be found on ATS, chat moss signals page 12, of the PDF, it says that it is available on ATS, and doing a search says Nothing Found…any help as what it is under would be appreciated…Thanks In Advance,
Derek.
11th August 2021 at 06:13 #2418421ChrisMalkiParticipantI have been looking for the Aplication too, But no luck. I hope someone cares to enlighten us.
Not many people seem to use these forums. (I wish they would) It would be very helpful.
11th August 2021 at 10:24 #2419600Derek KnowlesParticipantEditScenarioScript.exe.
Look in Steam\steamapps\common\RailWorks\Manuals\ATS it;s in there..that was the only place i did not look in the manuals section, if you bought the Chat Moss route.. I would agree entirely there ain’t many on here…
Derek.
13th August 2021 at 15:47 #2424996Jeff HallParticipantIf you are wanting to edit the lua script to use the RA signals in other scenarios you can edit the file using a text editor.
Using the Route Editor place the RA signal where you want it and give it a number – say AB123
Copy the lua file from Steam\steamapps\common\RailWorks\Manuals\ATS into the scenario folder you are using.
Open the lua file with a text editor then change the signal numbers as required –
PLUGIN_LOCATION = “plugins/SignalControl.txt”
FALSE = 0
TRUE = 1function OnEvent ( event )
if (event == “AB123”)then
local writefile = io.open( PLUGIN_LOCATION , “w” );
writefile:write(“AB123”);
writefile:close();
return 1;
endif (event == “MN595”)then
local writefile = io.open( PLUGIN_LOCATION , “w” );
writefile:write(“MN595”);
writefile:close();
return 1;
endif (event == “MN613”)then
local writefile = io.open( PLUGIN_LOCATION , “w” );
writefile:write(“MN613”);
writefile:close();
return 1;
endif (event == “MN657”)then
local writefile = io.open( PLUGIN_LOCATION , “w” );
writefile:write(“MN657”);
writefile:close();
return 1;
endif (event == “MP387”)then
local writefile = io.open( PLUGIN_LOCATION , “w” );
writefile:write(“MP387”);
writefile:close();
return 1;
endif (event == “MP389”)then
local writefile = io.open( PLUGIN_LOCATION , “w” );
writefile:write(“MP389”);
writefile:close();
return 1;
endif (event == “INIT”)then
local writefile = io.open( PLUGIN_LOCATION , “w” );
writefile:write(“INIT”);
writefile:close();
return 1;
endend
I have only changed the first entry – you can leave the others as they are or add further signals
Edit your scenario as in the manual using your new signal numbers
-
AuthorPosts
- You must be logged in to reply to this topic.