Page 1 of 1

Error when added attachment lights

Posted: Tue Aug 14, 2012 8:13 pm
by SnakeLight64
Hi all, I'm just messing about with a train (LU Battery Yellow) and i wanted to add a flashing light to either end of the train, i'm only doing this to upgrade my skills a bit but stuck on doing the config file. This is the error:

Error: Unable to commit changes to asset <kuid:563140:100203> as the config file contains the wrong KUID

In red is what I've added to the config file.

Code: Select all

username                                "Battery Loco Yellow"
kind                                    "traincar"
trainz-build                            2.9
engine                                  1
enginespec                              <kuid:563140:100181>
enginesound                             <kuid:87487:100021>
hornsound                               <kuid2:93985:54001:2>
interior                                <kuid2:240029:1083:1>
light_color                             0,0,0
low_beam_value                          1,1
high_beam_value                         2,2
script                                  "lstub"
class                                   "LStub"
fonts                                   1
fonts-path                              "Battery Loco V5"
light                                   1
mass                                    62500
max-coupler-gap                         0
category-class                          "AD"
category-era                            "1950s"
category-region                         "UK"
description                             "LU Battery loco, used for maintenance work and stock movement. Animated retracting buffers, as retrofitted to all locos. Yellow and grey livery as applied to all locos in the early eighties. Note that in order for the buffer animation to work, the coupled stock must have the ACS coupler system, with the Wedgelock coupler specified. Thanks to Andi06, PEV, PaulHobbs and Tempest70 for their contributions."

script-include-table
{
  superscript                           <kuid2:122285:508:16>
}

extensions
{
  heading-122285                        "1"
  debug-122285                          "1"
  alphanumbers-122285                   "15-19,20-32,44,54"
  max_permitted_speed-60850             "15mph"
  
  active-coupling-standard-60850
  {
    version-major                       "2"
    version-minor                       "0"
    
    front
    {
      coupler                           "wedgelock"
    }
    
    back
    {
      coupler                           "wedgelock"
    }
  }
}

mesh-table
{
  default
  {
    mesh                                "default.lm"
    auto-create                         1

    [color=#FF0000]attachments {
    mesh "attach_mesh.im"
    auto-create 1
    }[/color]
    
    effects
    {
      headlight-0
      {
        kind                            "corona"
        att                             "a.lampfwl"
        texture-kuid                    <kuid:-3:10111>
        object-size                     0.1
        directional                     1
      }
      
      [color=#FF0000]{
        kind                            "corona"
        att                             "a.light"
        frequency                       2
        object-size                     0.20
      }

      {
        kind                            "corona"
        att                             "a.light2"
        frequency                       2
        object-size                     0.20
      }[/color]
      
      headlight-2
      {
        kind                            "corona"
        att                             "a.lampfwr"
        texture-kuid                    <kuid:-3:10111>
        object-size                     0.1
        directional                     1
      }
      
      taillight-0
      {
        kind                            "corona"
        att                             "a.lampfrl"
        texture-kuid                    <kuid:-3:10112>
        object-size                     0.1
      }
      
      taillight-2
      {
        kind                            "corona"
        att                             "a.lampfrr"
        texture-kuid                    <kuid:-3:10112>
        object-size                     0.1
      }
      
      headlight-1
      {
        kind                            "corona"
        att                             "a.lamprwl"
        texture-kuid                    <kuid:-3:10111>
        object-size                     0.1
        directional                     1
      }
      
      headlight-3
      {
        kind                            "corona"
        att                             "a.lamprwr"
        texture-kuid                    <kuid:-3:10111>
        object-size                     0.1
        directional                     1
      }
      
      taillight-1
      {
        kind                            "corona"
        att                             "a.lamprrl"
        texture-kuid                    <kuid:-3:10112>
        object-size                     0.1
      }
      
      taillight-3
      {
        kind                            "corona"
        att                             "a.lamprrr"
        texture-kuid                    <kuid:-3:10112>
        object-size                     0.1
      }
    }
  }
  
  coupler-front
  {
    mesh                                "wedgelock2.im"
    anim                                "wedgelock2.kin"
    auto-create                         1
  }
  
  coupler-back
  {
    mesh                                "wedgelock2.im"
    anim                                "wedgelock2.kin"
    auto-create                         1
    orientation                         0,0,3.14159
  }
  
  driver-0
  {
    mesh-asset                          <kuid:122285:508>
    mesh                                "driver.im"
    att                                 "a.driverfront"
    att-parent                          "default"
    auto-create                         1
  }
  
  driver-1
  {
    mesh-asset                          <kuid:122285:508>
    mesh                                "driver.im"
    att                                 "a.driverback"
    att-parent                          "default"
    auto-create                         1
  }
  
  leftwiper-0
  {
    mesh-asset                          <kuid:122285:508>
    mesh                                "wiper.im"
    anim                                "wiper.kin"
    animation-loop-speed                1
    auto-create                         1
    att                                 "a.wiperfront"
  }
  
  leftwiper-1
  {
    mesh-asset                          <kuid:122285:508>
    mesh                                "wiper.im"
    anim                                "wiper.kin"
    animation-loop-speed                1
    auto-create                         1
    att                                 "a.wiperback"
  }
  
  groundplane
  {
    mesh                                "groundplane.im"
    auto-create                         1
  }
  
  shadow
  {
    mesh                                "shadow.im"
  }
}

bogeys
{
  0
  {
    reversed                            0
    bogey                               <kuid:240029:1049>
  }
  
  1
  {
    reversed                            0
    bogey                               <kuid:240029:1049>
  }
}

string-table
{
  help0                                 "This is the LU Battery Loco in the livery that was applied to all locos in the early 'eighties. 					Running numbers reflect those units that are still in service.<br>The buffers will retract when the					loco is coupled to another vehicle that has the ACS coupling system with the Wedgelock 					coupler specified."
  help1                                 "Use these options to check out the various Superscript functions of the Battery Loco."
  help4                                 "MARKER LIGHTS: This is a global option applicable to all vehicles controlled by the script 			library.<br>GROUND SHADOWS: Turn shadow planes on or off. This applies to all Superscript 					vehicles with ground shadow planes."
}

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

kuid-table
{
  red_marker                            <kuid:-3:10112>
  white_marker                          <kuid:-3:10111>
  enginespec                            <kuid:563140:100181>
  1                                     <kuid:87487:100021>
  2                                     <kuid2:93985:54001:2>
  interior                              <kuid:240029:1083>
  4                                     <kuid:240029:1049>
  acslib                                <kuid:60850:89100>
  codelib                               <kuid2:122285:508:16>
  0                                     <kuid:122285:4089>
  6                                     <kuid:122285:508>
  7                                     <kuid2:240029:1083:1>
}
kuid                                    <kuid:563140:100203>
Please help as I'm planning on a Tube Car/Sub-Surface Car that will have a flashing lights on it.
I have looked if there is a license in which i can't edit it for personal use and it doesn't hold one so i guess i can do so, right? If not then let me know and I'll delete the stuff i did.

Thanks,
Reece