lc_us.lua Script for crossing gate - where did it go?

Help, problems, solutions, questions and answer about the new TS2014 upgrade - all in one place.

lc_us.lua Script for crossing gate - where did it go?

Unread postby Zayphod » Sun Oct 13, 2013 11:05 am

I was checking out how to fix the level crossing gates for the US so they don't come in 5 minutes before the gates actually come down and came across a very old post here (2010). It mentioned how to do it on script file lc_us.lua which is supposed to be in the Kuju level crossings folder. It was there in the TS2013 version and experimented with it about two days before the upgrade for TS2014 came in. Well, that script file seems to have vanished into thin air now, though the gated signals still work (via their older default scripts).

It used to be under Kuju/RailSimulatorUS/LevelCrossings but that folder is now empty. In fact, now that I'm looking at them while typing this, all the folders under RailSimulatorUS are there, but they're all empty. I've tried searching for the file, and do find a bunch of .lua files, but nothing that seems related to the script I was originally looking for.

These are the directions I was originally trying to follow:
In the Script component BP field, copy-paste the name of the LUA script. The default one is called lc_us.lua and you can find it in the LevelCrossings folder under RailSimulatorUS. I made a copy of it and placed it among the other files in my Source folder. I used it as is except for the following minor edits. Open your copy of the LUA file using Notepad and find these lines:

-- Trigger distances
WARN_DISTANCE = 800.0
CLOSE_DISTANCE = 550.0
PASS_DISTANCE = -100.0


I know it has to be somewhere since the signals are following directions from their script, but I have no idea where that file is now. I'm thinking that TS2014 may have it under a different name now or under a completely new folder. Any ideas?

Thanks in advance.
Zayphod
 
Posts: 30
Joined: Sun Sep 29, 2013 6:36 pm

Re: lc_us.lua Script for crossing gate - where did it go?

Unread postby Bananarama » Sun Oct 13, 2013 11:18 am

The file is now contained in the RailSimulatorUS.ap file. Search the forum here - there's already been plenty of talk on the *.ap format. :D
Cheers!
Marc - 3DTrains

Image
User avatar
Bananarama
 
Posts: 2749
Joined: Sat Feb 14, 2009 1:17 am
Location: Another Planet

Re: lc_us.lua Script for crossing gate - where did it go?

Unread postby Zayphod » Sun Oct 13, 2013 11:30 am

Hack wrote:The file is now contained in the RailSimulatorUS.ap file. Search the forum here - there's already been plenty of talk on the *.ap format. :D


AAArrggg! I hate when they do that! *!embar*! I had seen discussions about .ap files but since I had no idea what they are or do (and I have no way to open them) I hadn't been paying any attention to those threads. Ok, well, now that I know it's not going to be as simple as it used to be, I'll give it a look-at. Thanks.

Edit: just went through the 4 pages of the .ap discussion. Jeezz.

BTW, on the old MS Train Simulator, when setting up a level crossing, you could edit the start times etc right there after placing it. Can that still be done for each level crossing set down, or is that history (I'm assuming history)?

Also, while asking about level crossings - Don't they have the old crossbucks in the editor anymore? Noted stop signs but no crossbucks.
Zayphod
 
Posts: 30
Joined: Sun Sep 29, 2013 6:36 pm

Re: lc_us.lua Script for crossing gate - where did it go?

Unread postby buzz456 » Sun Oct 13, 2013 1:34 pm

And somebody could have just told you to open them with 7zip.
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: 20933
Joined: Sun Mar 21, 2010 8:30 am
Location: SW Florida

Re: lc_us.lua Script for crossing gate - where did it go?

Unread postby Bananarama » Sun Oct 13, 2013 7:19 pm

Zayphod wrote:Also, while asking about level crossings - Don't they have the old crossbucks in the editor anymore? Noted stop signs but no crossbucks.

You can use the ones in the ScaleRoad pack. :D
Cheers!
Marc - 3DTrains

Image
User avatar
Bananarama
 
Posts: 2749
Joined: Sat Feb 14, 2009 1:17 am
Location: Another Planet

Re: lc_us.lua Script for crossing gate - where did it go?

Unread postby PapaXpress » Sun Oct 13, 2013 7:20 pm

I think the new RCAP v2 has some.
Image
"Just post some random unrelated text. We have members here who can help you with that." ~ Chacal
"When all else fails, read the instructions... if that doesn't work either, try following them." ~ Old Prof
Image
The Grade Crossing - Atlanta North Project - Virtual Rail Creations
User avatar
PapaXpress
 
Posts: 5147
Joined: Sat Oct 23, 2010 10:30 pm
Location: that "other" timezone

Re: lc_us.lua Script for crossing gate - where did it go?

Unread postby Zayphod » Sun Oct 13, 2013 7:38 pm

Hack wrote:
Zayphod wrote:Also, while asking about level crossings - Don't they have the old crossbucks in the editor anymore? Noted stop signs but no crossbucks.

You can use the ones in the ScaleRoad pack. :D

PapaXpress wrote:I think the new RCAP v2 has some.


Ok, thanks, I'll look there. Odd, though, that they're not in the regular fly-out. You'd think (for US routes) they'd be a "must be included" item for all the obvious reasons. Oh, well, it's a visual thing and I'm sure the AI cars will know what to do. ;)
Zayphod
 
Posts: 30
Joined: Sun Sep 29, 2013 6:36 pm

Re: lc_us.lua Script for crossing gate - where did it go?

Unread postby PapaXpress » Sun Oct 13, 2013 7:42 pm

I am not sure why you are not finding them. They are in a lot of RCS stuff, as well as 3DTrains (scalerail), and more.
Image
"Just post some random unrelated text. We have members here who can help you with that." ~ Chacal
"When all else fails, read the instructions... if that doesn't work either, try following them." ~ Old Prof
Image
The Grade Crossing - Atlanta North Project - Virtual Rail Creations
User avatar
PapaXpress
 
Posts: 5147
Joined: Sat Oct 23, 2010 10:30 pm
Location: that "other" timezone


Return to TS 2014 - Train Simulator

Who is online

Users browsing this forum: No registered users and 1 guest