Errors with GPLocomotives content in Trainz Mac 2

alexl102

Learning... slowly!
I've just tried to install a few locos from Gary Price into Trainz Mac 2, and the 3F Jinty, Stanier Mogul 5MT and all tenders are working fine but the rest of the locomotives are showing an error saying that a .tga file is being used as an image and a texture, which it doesn't like. Has anyone else encountered this in any version of trainz, and is it easily solved?

Cheers
 
Cheers... I can't quite follow it. The only reference to that file is in the 'thumbnails' section of the config file and changing that to a .texture.txt didn't change anything.
 
The thumbnails container should reference a 240px by 180px jpg file, not a tga. Either change the thumbnail container to reference a jpg or just delete the thumbnail container completely (this may result in a warning, but the asset should be usable).
 
There's something wrong with the way the brackets are in that config file. Can you post the contents of that config file without including any email addresses?

Shane
 
mesh-table
{
default
{
mesh "48151_8f2-8-0_body/48151_8f2-8-0_body.LM"
auto-create 1

effects
{
f
{
kind "corona"
att "a.corona0"
texture-kuid <kuid:76813:89904>
object-size 0.1
}
}
}

coalman
{
mesh "48151_8f2-8-0_body/coalman/coalman.im"
auto-create 1
att "a.coalman"
att-parent "default"
}
}

bogeys
{
0
{
bogey <kuid2:76813:50015:1>
reversed 0
}

1
{
bogey <kuid2:76813:50215:1>
reversed 0
}

2
{
bogey <kuid2:76813:50016:1>
reversed 0
}

3
{
bogey <kuid2:76813:50013:1>
reversed 0
}

4
{
bogey <kuid2:76813:50013:1>
reversed 0
}

5
{
bogey <kuid2:76813:50014:1>
reversed 0
}

6
{
bogey <kuid2:76813:50013:1>
reversed 0
}
}

smoke0
{
attachment "a.smoke0"
mode "speed"
color 40,40,40,255
start 0,1
rate 3,0
velocity 1,0
lifetime 8,0
minsize 0.3,0
maxsize 1.5,0
}

smoke1
{
attachment "a.smoke0"
mode "anim2"
start 0,0.5
period 1,1
loop 0.75
loopdelay 1
scale 100
shift 0
rate 0,5
velocity 20,20
lifetime 6,6
minsize 0.4,0.4
maxsize 4,4
mass 10,10
mass-scale 0.1,0.1
accel 10.25
color 230,230,230,230,230,230,230,230
endcolor 230,0,0,0,230,230,230,0
conesize 0.1,0.1,1
inherit-velocity 1
enable-steam-physics 1
drag 5,5
spring 5.25,5.25
dampening 0.1,0.1
physics-delay 0
maxrate 50
texture <kuid:76813:89999>
}

smoke2
{
attachment "a.smoke0"
mode "anim2"
start 0,0.5
period 0.5,0.5
loop 0.75
loopdelay 1
scale 2
shift 0
rate 0,5
velocity 20,20
lifetime 6,6
minsize 0.55,0.55
maxsize 6,6
mass 10,10
mass-scale 0.1,0.1
accel 10.25
color 255,255,255,255,255,255,255,255
endcolor 255,0,0,0,255,255,255,0
conesize 0.1,0.1,1
inherit-velocity 1
enable-steam-physics 1
drag 5,5
spring 5.25,5.25
dampening 0.1,0.1
physics-delay 0
maxrate 30
texture <kuid:76813:89999>
}

smoke3
{
attachment "a.steam.safety0"
mode "speed"
color 255,255,255,150
start 0,2,4,6,8
rate 500,250,125,50,0
velocity 1,1,1,1,0
lifetime 2,1,0.5,0.25,0
minsize 0.1,0.1,0.075,0.05,0
maxsize 0.2,0.2,0.15,0.1,0
}

smoke4
{
attachment "a.steam.safety1"
mode "speed"
color 255,255,255,150
start 0,2,4,6,8
rate 500,250,125,50,0
velocity 1,1,1,1,0
lifetime 2,1,0.5,0.25,0
minsize 0.1,0.1,0.075,0.05,0
maxsize 0.2,0.2,0.15,0.1,0
}

smoke5
{
attachment "a.valve.l"
mode "anim"
color 255,255,255,150
start 0,0.25
period 0.5
rate 1
velocity 2
lifetime 0.25
minsize 0.2
maxsize 0.5
}

smoke6
{
attachment "a.valve.r"
mode "anim"
color 255,255,255,150
start 0,0.25
period 0.5
rate 1
velocity 2
lifetime 0.25
minsize 0.2
maxsize 0.5
}

smoke7
{
attachment "a.steam.l"
mode "speed"
color 255,255,255,150
start 0,2,4,6,8
rate 500,250,125,50,0
velocity 1,1,1,1,0
lifetime 2,1,0.5,0.25,0
minsize 0.1,0.1,0.075,0.05,0
maxsize 0.2,0.2,0.15,0.1,0
}

smoke8
{
attachment "a.steam.r"
mode "speed"
color 255,255,255,150
start 0,2,4,6,8
rate 500,250,125,50,0
velocity 1,1,1,1,0
lifetime 2,1,0.5,0.25,0
minsize 0.1,0.1,0.075,0.05,0
maxsize 0.2,0.2,0.15,0.1,0
}

smoke9
{
attachment "a.whistle"
mode "time"
color 255,255,255,150
rate 20
velocity 0.5
lifetime 0.5
minsize 0.1
maxsize 0.3
}
 
author "Gary Price aka LMS_MAN"
organisation "Trainz Britannia"
contact-email "xxxxx@xxxxxxxxxx.com"
contact-website "http://www.trainz-britannia.com/"
license "This product is sold to you with the following restrictions -:
A) No modifications of any description, whether large or small may be made to any of the content included with this product
without the permission of the creator, Gary Price(LMS_MAN).
B) No part of this product may be used or modified to use with any other product of any description, whether for any Trainz or
other products without permission of the creator, Gary Price(LMS_MAN)
C) No distribution to anyone other than the original purchaser whether free or profit making without permission of
the creator, Gary Price (LMS_MAN)
D) Any part of this product not created by myself may not be used, modified or re-distributed without the permission of that
individual creator.
E) I reserve the right to withdraw support to any customers who break any of these rules. "

kuid-table
{
oil_lamp_clear <kuid:76813:89904>
oil_lamp_red <kuid:76813:89906>
0 <kuid2:76813:48151:1>
1 <kuid2:76813:50013:1>
2 <kuid2:76813:50014:1>
3 <kuid2:76813:50015:1>
4 <kuid2:76813:50016:1>
5 <kuid:76813:52176>
6 <kuid:76813:53000>
7 <kuid:76813:54508>
8 <kuid:76813:89999>
9 <kuid2:76813:50215:1>
10 <kuid:-10:172>
}
}
}
 
There's some spacing differences there that haven't carried over because of the Forum's formatting thing but in terms of what's on each line, that's accurate. It's too big to screenshot.
 
Above all that, there's this:

category-region "GB;UK"
category-era "1950s;1960s"
engine 1
light 1
mass 72200
trainz-build 2.8
company "BR"
kuid <kuid2:76813:48151:1>
kind "traincar"
category-class "AS"
max-coupler-gap 0
enginespec <kuid:76813:52176>
enginesound <kuid:76813:53000>
hornsound <kuid:76813:54508>
username "AA 48151 Stanier 8F 2-8-0 BR4A"

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

1
{
image "48151_8f2-8-0_art/48151_8f2-8-0_art_icon.tga”
width 128
height 64
}
}
light_color 243,215,147
ditch_color 230,140,30

obsolete-table
{
}
script "
tenderloco_1l"
class "TENDERLOCO_1L"

extensions
{
max_permitted_speed "60mph"
}
 
Just to clarify - this set of errors only appears after changing the .tga to a .texture

I've tried making that simple change on a number of my locos from Gary Price. Only one - A Jubilee Class - has worked succesfully. I'm not criticising the suggestion at all - in fact, I appreciate every suggestion of help - but I just thought that it might help with troubleshooting.
 
It shouldn't be, you're right. That's why I'm so baffled, but after the first one did it I specifically viewed the errors & warnings before and after and that's what happened on 2 or 3 more. I'm gonna have a play around and see what I can do, but any suggestions would be appreciated.
 
I seem to have found a fix. If that .tga can't be used for both purposes (which shouldn't be a problem really), I simply duplicate it, and then direct the config file to look for the duplicates in the *thumbnails* section.
 
Back
Top