Cold Start Workaround

Discussion about RailWorks scenario creation.

Cold Start Workaround

Unread postby imphantum » Thu Feb 02, 2017 2:45 am

Need help finding the workaround for the C30-7s cold start. I didn't want to hijack the other thread, but:

JerryC wrote: Imphantum, i've done a version before that stays on at the beginning of the scenario. If I remember right, you modify the Blueprint so that all of the breakers (BRxxxxx) controls are on by default.


I've searched and can't find a proper tutorial on how to edit blueprints in scenarios. Could someone be nice enough to lend a hand or point me in the right direction? Thanks !*cheers*!
imphantum
 
Posts: 366
Joined: Sat Sep 29, 2012 5:11 pm
Location: New York, New York

Re: Cold Start Workaround

Unread postby OldProf » Thu Feb 02, 2017 10:29 am

Have you checked the users' manual? One that I looked at yesterday provided instructions for writing a LUA script to start the engine automatically when the scenario begins. I also seem to recall that one of these critters with an elaborate startup procedure included an pre-started engine variation. Some of these engines also include a simple key-press combination that handles the startup procedure.

Please let us know what you ultimately do. As a scenario maker, I really don't like these engines because there's no way to fit the amount of time it takes to go through the startup into the AI timing.
Tom Pallen (Old Prof)

{Win 10 Home 64-bit; Intel Core i7 6700 @ 3.40GHz; 16.0GB Single-Channel @ 1063 MHz (15-15-15-364); 2047MB NVIDIA GeForce GTX 960}
User avatar
OldProf
 
Posts: 2743
Joined: Wed Sep 09, 2009 10:09 am

Re: Cold Start Workaround

Unread postby buzz456 » Thu Feb 02, 2017 10:45 am

Push the z key and it starts.
Buzz
39 and holding.
"Some people find fault like there's a reward for it."- Zig Ziglar
"If you can dream it you can do it."- Walt Disney
Image
User avatar
buzz456
Site Admin
 
Posts: 21040
Joined: Sun Mar 21, 2010 8:30 am
Location: SW Florida

Re: Cold Start Workaround

Unread postby imphantum » Thu Feb 02, 2017 11:45 am

OldProf wrote:Have you checked the users' manual?.


I thought I gave it a good read through, but apparently I missed it. Page 23 has the script to keep the engine running at the start of a scenario. I would provide more context but I'm currently on my phone. Will do that and test it out when I get home.
imphantum
 
Posts: 366
Joined: Sat Sep 29, 2012 5:11 pm
Location: New York, New York

Re: Cold Start Workaround

Unread postby buzz456 » Thu Feb 02, 2017 12:32 pm

Page 17.

Engine Start Button
Easy mode engine start.
Controls: Cab; Keystroke ( Z ); Gamepad ( Right Stick Push In )
Engine Stop Button
Easy mode engine shut down.
Controls: Cab, Keystroke ( Ctrl+Z )
Buzz
39 and holding.
"Some people find fault like there's a reward for it."- Zig Ziglar
"If you can dream it you can do it."- Walt Disney
Image
User avatar
buzz456
Site Admin
 
Posts: 21040
Joined: Sun Mar 21, 2010 8:30 am
Location: SW Florida

Re: Cold Start Workaround

Unread postby ssbobz » Thu Feb 02, 2017 12:37 pm

Isn't ctrl+z mapped to bring up the frame rate in the corner?
ssbobz
 
Posts: 551
Joined: Thu Feb 11, 2016 10:54 am

Re: Cold Start Workaround

Unread postby drivertime61 » Thu Feb 02, 2017 1:57 pm

ssbobz wrote:Isn't ctrl+z mapped to bring up the frame rate in the corner?


That would be Shift+Z.
drivertime61
 
Posts: 212
Joined: Sun Jul 06, 2014 11:10 am

Re: Cold Start Workaround

Unread postby imphantum » Thu Feb 02, 2017 2:21 pm

According to page 23 in the manual:

STARTUP FOR SCENARIO DEVELOPERS:
By default, the C30-7 locomotive is unpowered at the start of a scenario. If you wish to have the
locomotives start automatically at the beginning of a scenario without user input, then you need
to insert the following code into your scenario script and link it to the scenario through the
Timetable Editor:
if event == "boarding" then
SysCall ( "PlayerEngine:SetControlValue", "ShortcutStartup", 0, 1 );
return TRUE;
end
In the first line, “boarding” is a name that links the script command to the Timetable Editor. A
simple message trigger with this name placed in it is usually enough to start the locomotive. You
could also use the timestamp to trigger the startup later, or include a message to the player.
imphantum
 
Posts: 366
Joined: Sat Sep 29, 2012 5:11 pm
Location: New York, New York

Re: Cold Start Workaround

Unread postby buzz456 » Thu Feb 02, 2017 3:35 pm

"You could also use the timestamp to trigger the startup later, or include a message to the player."

You know something mysterious like "Push the z key to start your locomotive." !*roll-laugh*!
!!**sorry**!!
Buzz
39 and holding.
"Some people find fault like there's a reward for it."- Zig Ziglar
"If you can dream it you can do it."- Walt Disney
Image
User avatar
buzz456
Site Admin
 
Posts: 21040
Joined: Sun Mar 21, 2010 8:30 am
Location: SW Florida

Re: Cold Start Workaround

Unread postby RudolfJan » Sun Feb 26, 2017 1:09 pm

Easiest way to do is:

Start the scenario, turn off the engine, doe a rolling start save (Ctrl+F2) and start the scenario again. Usually works, but if you change the sceanrio, you should remove the rolling start, because it is Save function and it will not know about changes in the scenario.

The alternative is to try using LUA scripting. This will not work for all engines, depending on how the animation is built.
Rudolf

http://www.hollandhiking.nl/trainsimulator
Here you will find the latest version of the Senario Authors Guide, TSW starters Guide, LuaCreator and TSWTools and more ...
RudolfJan
 
Posts: 134
Joined: Sun Jun 28, 2009 1:36 pm
Location: Netherlands


Return to Scenario Creation

Who is online

Users browsing this forum: No registered users and 1 guest

cron