neville_hill
Well-known member
Thanks evilcrow. Ed's PBR locos come up a treat in TRS22.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
re post #hholdenaz
Same thing with me, every new version of Trainz seems cause scripts not work as before.
I use the "toggle" method. This means config alteration and replacement script. An advantage will be the ability to change the lamps in game.
A knowledge of what the lamp codes mean will add interest to the game. Info on the Internet aplenty.
Having downloaded sound-library <kuid2:103021:100444:6> (not sure if sound library is needed) but you will need script-library <kuid2:103021:100525:21>
Replace the present script lines with;
class "lilbsloco"
script "lilbloco.gs"
Here is a the mesh table and the entries for the toggle and string-table,
mesh-table
{
default
{
mesh "asset_body/asset_body.im"
auto-create 1
}
shadow
{
mesh "asset_body/asset_body.im"
}
toggle0
{
mesh "lamp.im"
att-parent "default"
att "a.lamp_bc"
mesh-asset <kuid2:116296:128:2>
effects
{
corona
{
kind "corona"
att "a.corona0"
texture-kuid <kuid2:104722:100:2>
object-size 0.08
}
}
}
toggle1
{
mesh "lamp.im"
att-parent "default"
att "a.lamp_br"
mesh-asset <kuid2:116296:128:2>
effects
{
corona
{
kind "corona"
att "a.corona0"
texture-kuid <kuid2:104722:100:2>
object-size 0.08
}
}
}
toggle2
{
mesh "lamp.im"
att-parent "default"
att "a.lamp_bl"
mesh-asset <kuid2:116296:128:2>
effects
{
corona
{
kind "corona"
att "a.corona0"
texture-kuid <kuid2:104722:100:2>
object-size 0.08
}
}
}
toggle3
{
mesh "lamp.im"
att-parent "default"
att "a.lamp_tc"
mesh-asset <kuid2:116296:128:2>
effects
{
corona
{
kind "corona"
att "a.corona0"
texture-kuid <kuid2:104722:100:2>
object-size 0.08
}
}
}
toggle4
{
mesh "lamp.im"
att-parent "default"
att "a.lamp_bc"
mesh-asset <kuid2:116296:128:2>
effects
{
corona
{
kind "corona"
att "a.corona0"
texture-kuid <kuid2:104722:200:2>
object-size 0.08
}
}
}
}
string-table
{
toggle0-name "Bottom Light: "
toggle0-on "Fitted"
toggle0-off "Stowed"
toggle0-desc "Toggles the bottom headcode lamp"
toggle1-name "Left Light: "
toggle1-on "Fitted"
toggle1-off "Stowed"
toggle1-desc "Toggles the left headcode lamp"
toggle2-name "Right Light: "
toggle2-on "Fitted"
toggle2-off "Stowed"
toggle2-desc "Toggles the right headcode lamp"
toggle3-name "Top Light: "
toggle3-on "Fitted"
toggle3-off "Stowed"
toggle3-desc "Toggles the top headcode lamp"
toggle4-name "Red Light: "
toggle4-on "Fitted"
toggle4-off "Stowed"
toggle4-desc "Toggles the bottom red headcode lamp"
}
script-include-table
{
0 <kuid2:103021:100525:21>
}
kuid <kuid:481183:1146>
kuid-table
{
enginespec <kuid:481183:1144>
enginesound <kuid2:126323:53050:2>
hornsound <kuid:481183:1065>
sound-library <kuid2:103021:100444:6>
script-library <kuid2:103021:100525:21>
lamp <kuid2:116296:128:2>
corona_white <kuid2:104722:100:2>
corona_red <kuid2:104722:200:2>
3 <kuid:481183:1082>
4 <kuid:-25:622>
0 <kuid:481183:1086>
2 <kuid:311512:6002>
1 <kuid:68926:100001>
interior <kuid2:44090:55024:1>
}
as always work on a clone.
Cheers evilcrow
- <kuid:351561:101368> : VE197: Syntax error in script 'lilbloco.gs' for asset <kuid:351561:101368> "LNER J11 64364"
- <kuid:351561:101368> : VE220: Could not read file lilb_loco.gs.
You can obtain the script "lilbloco.gs" by downloading one of Trainboi1's early locos "BR Johnson D41 - Lined Black" <kuid2:648132:100627:2> copy and paste into your mod.
The mesh table that i had shown was copy and paste from the config so should be ok.
The Camscott loco I modified was <kuid:481183:1146> "LNER O4/8 63653"
I will have a go at the LNER J11 64364 ASAP and see what I come up with.
Cheers, evilcrow
Oh, and thanks John. I have over fifty stations on the route so I'll have to think hard about that! What a relaxing hobby this is......
#6072. Ken I love that screenshot of a Pom-Pom doing what it was designed to do.
#6073. Nice retro sepia screenshots Tanker. I've just started investigating the London interconnections between the MET, the LT&SR and the GER and I can tell you that it's a very deep rabbit hole that I'm trying not to fall into.
Those are some great screenshots, Alex! And thank you very much for the history lesson, a very interesting read. Hope all is going well with the Brighton Project!
#6072. Ken I love that screenshot of a Pom-Pom doing what it was designed to do.