Where do I find .GS Script Files

blueodessey

Well-known member
:eek: Good Day all, I have a script error (red bug symbol) with a Train Consist, from a layout I downloaded, when I use it on my route, in Surveyor and when I am doing a Session with that consist only.......Error says "Lodi_Lib.GS" can't be found, it has to do with Boxcar(s) 13 of them, don't know which? or if it all, But I would like to look at the Script itself, Im not a programmer, so I'm still learning about Trainz. Could someone steer me to how find and read these Scripts.

Tonight, when I removed boxcars only out of this consist, saving to fresh session, error did not appear, so I know the rest of mixed consist, tankers, flats, caboose, engine r ok, no Red Bug error appears, wondered maybe if it is a Products lists missing?

Thanks
 
:eek: Good Day all, I have a script error (red bug symbol) with a Train Consist, from a layout I downloaded, when I use it on my route, in Surveyor and when I am doing a Session with that consist only.......Error says "Lodi_Lib.GS" can't be found, it has to do with Boxcar(s) 13 of them, don't know which? or if it all, But I would like to look at the Script itself, Im not a programmer, so I'm still learning about Trainz. Could someone steer me to how find and read these Scripts.

If you examine the config.txt files for the boxcars there will be a tag 'script' and the value 'Lodi_Lib.GS' is the one causing the problem. The script file will be part of that asset.

If the script is named differently, then look for a tag 'script-include' which refers to assets containing scripts referenced from other scripts (which is likely for a '...lib' script). Either that asset is not found or it is found but is missing the script.

Script GS files are plain text and can be read using any text editor.
 
SailerDan,

Well. I think I found the issue? ;)

Here is a copy of the Config.Txt for one of the boxcars, and what I found at the bottom was reference file....."Lodi_Lib" ,,,,Kuid 2:124017:4000:1, of course I have another similiar file in Assets, listed on Content Mgr, but not the Kuid this boxcar calls for, same as the 13 others!

I also see the Script it is calling in from Config.Txt file, so here is my question, is there a way to remove the script reference?

Can you look at the copy of Script below, and see what you think?

Worse comes to worse, I just have to delete the assets, and consists both, so I don't use them anymore.

Thanks for the help you provided, Im trying to learn Content Mgr as I go along.

Respectfully,

Blue

kuid <kuid2:56063:101206:4>
engine 0
mass 17000
category-class "XBG"
enginespec <kuid:-1:42004201>
username "40ftBoxcar Lehigh Valley #"
script "boxcar3lodi"
class "boxcar"
fonts 1
fonts-path "40ftBoxcar"
description "REVISED: Modified to accommodate CMTMSystem3 car destination system.
author "Rene N. Steinkamp"
organisation "Chicken Neck Foundry"
contact-email "majekear@cox.net"
contact-website "members.cox.net/majekear"
license " 'EULA

category-region "US"
category-era "1930s;1940s;1950s"
trainz-build 3.5

obsolete-table
{
<kuid2:56063:101206:2>
}

string-table
{
maxweight "49900"
}

thumbnails
{
0
{
image "preview.jpg"
width 240
height 180
}

1
{
image "40ftboxcar_art/40ftboxcar_art_icon.texture"
width 128
height 64
}
}

extensions
{
numberit-75134
{
numberit_prefix "63"
numberit_min "500"
numberit_max "599"
}
reportingmark-32711 "LV"
carnumber-32711 "x"
}

mesh-table
{
default
{
mesh "40ftboxcar_body/40ftboxcar_body.im"
auto-create 1
}

left_door
{
mesh "40ftboxcar_body/left_door/left_door.im"
anim "40ftboxcar_body/left_door/left_door.kin"
auto-create 1
att-parent "default"
}

right_door
{
mesh "40ftboxcar_body/right_door/right_door.im"
anim "40ftboxcar_body/right_door/right_door.kin"
auto-create 1
att-parent "default"
}

shadow
{
mesh "40ftboxcar_shadow/40ftboxcar_shadow.im"
}
}

queues
{
load0
{
size 2
initial-count 0

allowed-products
{
0 <kuid:-3:10003>
1 <kuid2:30671:94407101:1>
2 <kuid2:87907:94407101:1>
3 <kuid2:87907:94407103:1>
4 <kuid2:87907:94407105:1>
5 <kuid2:30671:9870190:1>
}
}

load1
{
size 4
initial-count 0

allowed-products
{
0 <kuid2:30671:94407100:1>
1 <kuid2:87907:94407100:1>
2 <kuid2:87907:94407102:1>
3 <kuid2:87907:94407104:1>
}
}

load2
{
size 8

attachment-points
{
0 "a.gen_goods0"
1 "a.gen_goods1"
2 "a.gen_goods2"
3 "a.gen_goods3"
4 "a.gen_goods4"
5 "a.gen_goods5"
6 "a.gen_goods6"
7 "a.gen_goods7"
}
initial-count 0
product-kuid <kuid:-3:10013>

allowed-products
{
0 <kuid:-3:10013>
}
}

load3
{
size 16
initial-count 0

allowed-products
{
0 <kuid2:60318:10008:1>
1 <kuid2:60318:10010:2>
2 <kuid2:189041:301:1>
3 <kuid2:50567:11121:1>
}
}

load4
{
size 24
initial-count 0

allowed-products
{
0 <kuid2:30671:9840820:1>
1 <kuid2:30671:9870899:1>
2 <kuid2:50567:12646:3>
}
}

load5
{
size 40
initial-count 0

allowed-products
{
0 <kuid2:50567:11155:1>
}
}
}

smoke0
{
attachment "a.unload_left_pfx0"
mode "time"
color 205,169,127,250
start 0
period 1
rate 2
velocity 1
lifetime 4
minsize 1
maxsize 3
enabled 0
}

smoke1
{
attachment "a.unload_left_pfx1"
mode "time"
color 205,169,127,250
start 0
period 1
rate 2
velocity 1
lifetime 4
minsize 1
maxsize 3
enabled 0
}

bogeys
{
0
{
bogey <kuid:45681:50001>
reversed 0
}

1
{
reversed 0
bogey <kuid:45681:50001>
}
}

soundscript
{
door_open
{
trigger "door_open"
nostartdelay 1
repeat-delay 1,1
distance 5,170

sound
{
0 "brakecycling.wav"
}
}
}
kind "traincar"

kuid-table
{
numberit_library <kuid2:75134:99003:7>
0 <kuid:-3:10164>
1 <kuid:-1:42004201>
2 <kuid2:50567:11155:1>
3 <kuid:45681:50001>
4 <kuid:-3:10003>
5 <kuid2:30671:94407101:1>
6 <kuid2:87907:94407101:1>
7 <kuid2:87907:94407103:1>
8 <kuid2:87907:94407105:1>
9 <kuid2:30671:9870190:1>
10 <kuid2:30671:94407100:1>
11 <kuid2:87907:94407100:1>
12 <kuid2:87907:94407102:1>
13 <kuid2:87907:94407104:1>
14 <kuid:-3:10013>
15 <kuid2:60318:10008:1>
16 <kuid2:60318:10010:2>
17 <kuid2:189041:301:1>
18 <kuid2:50567:11121:1>
19 <kuid2:30671:9840820:1>
20 <kuid2:30671:9870899:1>
21 <kuid2:50567:12646:3>
22 <kuid2:124017:30000:2>
23 <kuid2:124017:30001:2>
24 <kuid2:124017:30002:2>
25 <kuid2:124017:30003:2>
lodi_icon <kuid2:124017:35000:1>
lodi_lib <kuid2:124017:40000:1>
26 <kuid2:30671:69006:1>
27 <kuid2:124017:35000:1>
}
 
SailerDan,

On the Config.Txt for Boxcar, paste I put up in other msg reply, I had to cut out 15 Smoke entrys out of it, to trucate the length, sorry, but 10k text limit.
 
:eek: Good Day all, I have a script error (red bug symbol) with a Train Consist, from a layout I downloaded, when I use it on my route, in Surveyor and when I am doing a Session with that consist only.......Error says "Lodi_Lib.GS" can't be found, it has to do with Boxcar(s) 13 of them, don't know which? or if it all, But I would like to look at the Script itself, Im not a programmer, so I'm still learning about Trainz. Could someone steer me to how find and read these Scripts.

Tonight, when I removed boxcars only out of this consist, saving to fresh session, error did not appear, so I know the rest of mixed consist, tankers, flats, caboose, engine r ok, no Red Bug error appears, wondered maybe if it is a Products lists missing?

Thanks
Blue, the Lodi_LIb, Kuid2:124017:4000:1, is a missing dependency for these boxcars assets. They can't work properly with out it. With a normal Trainz installation the assets would show up in CM as faulty due to missing dependencies and it would also indicate the library is available on the DLS so I'd just dl the missing library asset which would fix the problem. I don't have TD so not sure if the same procedure is available with it.

I kind of remember working with Rene on those cars some years back. He couldn't get the door animations to work right in many instances. The Lodi system by maddy25 IIRC is a workaround for many industries that aren't scripted "correctly" that is they don't provide a full packet of info to the car that's currently loading or unloading. As written the script should work with those type of industries if the route creator added in the required Lodi markers.

Bob Pearson
 
Last edited:
Well. I think I found the issue?

That is the equivalent of the 'script-include' tag that I mentioned, except that it is done through a named dependency. If you look through the script that comes with the asset you will identify code that searches the dependency list for those names, loads the asset from the KUID it finds, and then accesses the named script inside that asset.

You should try to find and download those dependencies, and then check why the script can't be found inside them. Perhaps it's a version problem - it has been known for these libraries to remove scripts in later versions, thus locking these assets into the earlier versions. Perhaps there been a mistake in the naming (not very likely, but it has happened).

You can remove the 'script' and 'class' tag lines (and the dependencies, if they are missing) and the asset will work, but it will be missing some functionality, such as animations.
 
Sailor it all works fine as listed. Blue is just missing a required dependent asset and that dependency is the lodi.gs library. Current version on the DLS is <kuid2:124017:40000:2> and it downloads correctly with the box car when you dl it. Nothing to search for. CM and dl helper find them all if on the dls. I actually have the older version <kuid2:124017:40000:1> on my TS12 and it seems to work ok with the cars.

In this case since the script gets the library asset thru kuid table lookup you don't have to look beyond that since it's listed there and that's how I picked it up right away: lodi_lib <kuid2:124017:40000:1>.

What I'd like to know is: does TD2016 have something like the CM that is part of the installation you get with TS12 or TANE?

Bob Pearson
 
In this case since the script gets the library asset thru kuid table lookup you don't have to look beyond that since it's listed there and that's how I picked it up right away: lodi_lib <kuid2:124017:40000:1>.

According to the thumbnail, the library provides routines that indicate which side of the vehicle the doors should open on.
 
Thanks Sailor. I wrote the script that Rene used with his boxcars like the "40ftBoxcar Lehigh Valley #" that Blue had trouble with so I know what the library does. But maybe Blue will find it useful.

@Blue - Good luck.

Bob Pearson
 
Gentlemen, Thanks for looking at my files, and i was able to finf and download Maddy 25, Lodi Lib you indicated. Also found out TS12 doesn't like config.txt.org file rename i made as bkup copy of original config.txt file in case i messed it up after script edit.

I'm learning how to use content mgr, amazing program to say the least. Definitely a work in progress deal, faulty assets r a pain....

Do you use AssetX program?? IF so? How do you like it,,, was reading a little on forums about it for Assets repair.

Thanks again for collective effort to help me.

Respectfully yours,,, Blue
 
The backup config just rename to bak_config.txt or similar, so long as it has .txt on the end Trainz will accept it.
 
:D Just got AssetX loaded on computer, and opened, What a program, I see there is Tardes Scripts I can add too, do any of you play with these? I need to learn this program, and from the looks, it is going to take quite a while. I think what I want to do is learn how to fix Script Problems, and Faulty Assets with it? As this seems to be a huge issue in Trainz. And from what issues I had with my Scripts problems, I'm starting to develop a mental picture as to how the Assets, Routes, Sessions interrelate to one another, now I need to learn how become a Trainz Surgeon LOL. I still say, Trainz, with it's issues, is an amazing program. And I don't think I'll ever return to my Steam RR games.

:) Also, this Forum, along with Shane, and other sites, the Freeware, Payware, so amazing what is offered for Trainz. I enjoy coming into this Forum and reading up, seeing the fantastic pictures you all share. Keep up the great work.

Best, Blue
 
Back
Top