Scripting Query

Discuss almost anything about RailWorks.

Scripting Query

Unread postby PullmanCar » Fri Aug 07, 2026 4:46 pm

Hello, Another E unit query, this one relating to scripting. I know many developers pride themselves on scripting, something they are fiercely protective of (for good reason).

The old TruRail Simulations CNW E8 had a script that removed the EMD "Hamburger" Builder's plates from the side of the Amtrak E8, I would like to include that in a great many of my E8s and E9s as many no longer have plates. I know very little of scripting, and am unsure how much of a script I see when I open the scripts in Notepad++, I do see a line in the script marked "Plates" however on the TRS CNW E8, would this likely be it?
TSC TRS CNW E8 Plates.JPG


Or have I opened something I should not be, and found a partially packaged, or encrypted, .OUT file?

Thank you,

-Jacob
'PullmanCar'
You do not have the required permissions to view the files attached to this post.
Avowed Pullman Enthusiast - Down with Budd!
User avatar
PullmanCar
 
Posts: 183
Joined: Sat Mar 30, 2019 1:06 pm

Re: Scripting Query

Unread postby cnwfan » Fri Aug 07, 2026 6:01 pm

You're looking at a compiled script file. A uncompiled, and human readable version, would have a .lua file extension. If you can figure out where the script is called from, you can try to incorporate the .out file into your repaints. There are some decompilers out there for lua scripts, but from what I've read its not very successful and requires some advanced skills. Just to confirm though, the EMD builders plate is not part of the main locomotive texture? Maybe it's a child object in the bin file. Sounds like a lot of work to hide a builders plate.
************************
Howard (cnwfan)
Waverly, IA
My Flickr railroad photos: https://www.flickr.com/photos/184697503@N06/
cnwfan
 
Posts: 816
Joined: Mon Apr 25, 2011 4:16 pm
Location: Waverly, IA

Re: Scripting Query

Unread postby buzz456 » Fri Aug 07, 2026 6:06 pm

Why are you using the Tru-rail version of the E-8?
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: 21412
Joined: Sun Mar 21, 2010 8:30 am
Location: SW Florida

Re: Scripting Query

Unread postby PullmanCar » Mon Aug 10, 2026 4:07 pm

buzz456 wrote:Why are you using the Tru-rail version of the E-8?

I found the CNW version to be quite authentic to the CNW Commuter E8Aus with the blocked over numberboards, and some fine exhaust, audio files, and the missing numberboards. I skinned it into an RTA and Metra livery since those units were ex-CNW.

It was only recently when I thought, I wonder how it was done to remove the EMD builder's plates, and as many surviving E units lack the plates, I would love to apply that to my own skins, but this is something I have not been able to undertake. Nothing major, just a minor detail regarding which I was curious.

-Jacob
'PullmanCar'
Avowed Pullman Enthusiast - Down with Budd!
User avatar
PullmanCar
 
Posts: 183
Joined: Sat Mar 30, 2019 1:06 pm

Re: Scripting Query

Unread postby PullmanCar » Mon Aug 10, 2026 4:09 pm

cnwfan wrote:You're looking at a compiled script file. A uncompiled, and human readable version, would have a .lua file extension. If you can figure out where the script is called from, you can try to incorporate the .out file into your repaints. There are some decompilers out there for lua scripts, but from what I've read its not very successful and requires some advanced skills. Just to confirm though, the EMD builders plate is not part of the main locomotive texture? Maybe it's a child object in the bin file. Sounds like a lot of work to hide a builders plate.



Thank you for the background information, I have found exact .OUT file, but it calls for many other things too, which seems to cause serious issues in other places. The plate was part of the main locomotive, and was somehow "turned off" or "hidden" via the script. I think you probably are correct that it is more effort than such would be worth. I could just paint it to match the body, as many roads did in later years rather than masking them off.

-Jacob
'PullmanCar'
Avowed Pullman Enthusiast - Down with Budd!
User avatar
PullmanCar
 
Posts: 183
Joined: Sat Mar 30, 2019 1:06 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 65 guests

cron