Class 150 issues

Post Reply
User avatar
Dannypenguin
Past 100!
Posts: 151
Joined: Sat Aug 03, 2013 6:51 pm
Trainz Version: TRS2006, TS2009 SP4
Trainz Build: 44653
Author KUID: 73387
Location: Forest of Dean, Gloucestershire

Class 150 issues

Post by Dannypenguin »

Hey up!

Another issue, and this one is weird, its on the Class 150's. Here's the error code:

Error: Tag 'icon0' in the container 'traincar' is obsolete.
Error: The *.texture.txt file is missing for texture resource 'front.texture'.
Warning: This asset requires a shadow mesh, but the mesh table does not contain one.

Thing is, it downloads with just warnings, however when I change the enginesounds (don't like the existing sprinter ones - apologies to whoever created them) it then flags up with these fatal errors - the other weird thing is about three weeks ago I had them working with the new enginesound and all! Today they've just gone kaput :?

Can anybody help?
Dan W
aka Dannypenguin

"Who says I can't derail my train there?"
User avatar
Warbo40
Forum Veteran
Posts: 2297
Joined: Sun Dec 12, 2010 5:02 pm
Trainz Version: TS2012 (SP1)/S&C
Trainz Build: 57898
Author KUID: 441222

Re: Class 150 issues

Post by Warbo40 »

Which class 150's and by which author so i can download myself and have a look ? I'm guessing it's the older ones that don't have the opening doors.

The icon0 error can be deleted altogether from the config. The shadow warning is because the asset doesn't have a shadow in the mesh table. As for the texture problem it sounds as though the said texture file is a compressed file as in the built-in assets so the texture file doesn't recognise it. You'll need to download Pevsoft's Images2TGA and Quickshadows programs to resolve these issues.

http://trainz.shaneturner.co.uk/tutoria ... ainz-tools
Work to live not live to work.
User avatar
Dannypenguin
Past 100!
Posts: 151
Joined: Sat Aug 03, 2013 6:51 pm
Trainz Version: TRS2006, TS2009 SP4
Trainz Build: 44653
Author KUID: 73387
Location: Forest of Dean, Gloucestershire

Re: Class 150 issues

Post by Dannypenguin »

Hi Warbo, The one's in question are Marky7890's Arriva Trains Wales and First Great Western units - the only ones I've got! I'm running TS2009 SP4.

Thanks :)
Dan W
aka Dannypenguin

"Who says I can't derail my train there?"
User avatar
Warbo40
Forum Veteran
Posts: 2297
Joined: Sun Dec 12, 2010 5:02 pm
Trainz Version: TS2012 (SP1)/S&C
Trainz Build: 57898
Author KUID: 441222

Re: Class 150 issues

Post by Warbo40 »

Dannypenguin wrote:Hi Warbo, The one's in question are Marky7890's Arriva Trains Wales and First Great Western units - the only ones I've got! I'm running TS2009 SP4.

Thanks :)
Oh it's not the older version but the versions with opening doors.

They'll be 179051:150090 / 179051:150091 & 2:179051:150002:3

But the solution is still the same as above delete the icon0 line in the config. Download the 2 Pevsoft programs i mentioned and install on your computer. The front texture is in a compressed format so you need the Images2TGA program to uncompress the said file by converting it and saving as a tga back into the asset folder. Then use the Quickshadows program and create a FULL Shadow (scales all at 1.0) from the Class150.IM file and save into your asset folder. I find version 1.05 better and easier to use which is an older version but isn't available anymore. Send me a PM if you struggle to understand this and can't get to grips with the newer version of Quickshadows i will email you the older version i used.

Then alter your config mesh table to this

Code: Select all

mesh-table
{
  default
  {
    mesh                                "Class 150.IM"
    auto-create                         1
    
    effects
    {
      headlight-0
      {
        kind                            "corona"
        att                             "a.frontmarker0"
        texture-kuid                    <kuid:-3:10111>
        object-size                     0.075
      }
      
      headlight-2
      {
        kind                            "corona"
        att                             "a.frontmarker1"
        texture-kuid                    <kuid:-3:10111>
        object-size                     0.075
      }
      
      taillight-0
      {
        kind                            "corona"
        att                             "a.rearmarker0"
        texture-kuid                    <kuid:-3:10112>
        object-size                     0.075
      }
      
      taillight-2
      {
        kind                            "corona"
        att                             "a.rearmarker1"
        texture-kuid                    <kuid:-3:10112>
        object-size                     0.075
      }
      
      leftlight-0
      {
        kind                            "corona"
        att                             "a.leftdoor01"
        texture-kuid                    <kuid:23299:21002>
        object-size                     0.15
      }
      
      rightlight-0
      {
        kind                            "corona"
        att                             "a.rightdoor01"
        texture-kuid                    <kuid:23299:21002>
        object-size                     0.1
      }
      
      blind01
      {
        kind                            "name"
        fontsize                        0.06
        fontcolor                       50,50,50
        att                             "a.blind01an"
        name                            "blind01"
      }
    }
  }
  
  left-passenger-door
  {
    mesh                                "doorsleft.im"
    anim                                "doorsleft.kin"
    att                                 "a.doors"
    auto-create                         1
    use-parent-bounds                   1
  }
  
  right-passenger-door
  {
    mesh                                "doorsright.im"
    anim                                "doorsright.kin"
    att                                 "a.doors"
    auto-create                         1
    use-parent-bounds                   1
  }
  
  front
  {
    mesh                                "front.im"
    att                                 "a.limfront"
    auto-create                         0
  }
  
  groundplane
  {
    mesh                                "groundplane.im"
    auto-create                         1
  }
  
  attach-mesh
  {
    mesh                                "attach_mesh.im"
    auto-create                         1
  }
  
  shadow
  {
    mesh                                "shadow.im"
    auto-create                         0
  }
}
and hey presto all the errors and shadow warning should disappear. You will still have a warning about the front tga file being a uniform colour though. This can be corrected by using a program such as Paint.NET and altering 1 pixel of the file by either altering the brightness up or down by 1 and saving it back to the asset folder.
Work to live not live to work.
User avatar
Dannypenguin
Past 100!
Posts: 151
Joined: Sat Aug 03, 2013 6:51 pm
Trainz Version: TRS2006, TS2009 SP4
Trainz Build: 44653
Author KUID: 73387
Location: Forest of Dean, Gloucestershire

Re: Class 150 issues

Post by Dannypenguin »

Many thanks Warbo! :D
Dan W
aka Dannypenguin

"Who says I can't derail my train there?"
Post Reply