Config issues

gooner28

UK railfan
I am currently editing pfindley's GCR V6 to the preserved version the GCR, so I am downloading all of the operational engines for it. One of these being tmz06003's 'BR Class 27 Green'. When I download it, it comes up with two errors. When I fix them and click 'submit edits', it says 'Unable to commit changes to asset <kuid:283805:27001> as the config file contains the wrong KUID'. How can I fix this, if possible? I have tried looking through the config file but everything seems to be ok (I'm not very wise in the config world so I probably did something wrong).

Thanks,
Chris
 
Hi Chris,

Did you change the KUID to another number or version yourself?

If you did, this will prevent the asset from committing.

The proper way to do this is to clone the asset. If you clone it, you can make any changes, except touch the KUID as that will be generated for you, and you can then commit the cloned asset for operation in Trainz.


There is a backdoor, however, if you want to manually alter the KUID. Open the asset for edit. Copy the folder from your editing folder to your desktop or elsewhere. Make your changes in the copy then import and overwrite the original, which isn't recommended and is probably why this is not the right way of doing things. :)

John
 
I didn't change the KUID myself, and, um... how do you clone the assets?!
Thanks,
Chris

OK.... :)

You should be able to clone via an edit menu. I know you are on the Mac, so the keys are a bit different. Do you have contextual menus in this version?

If so open up the contextual menu by option+mouse-clicking on the asset. There should be a menu for various things such as checking for dependencies, etc. If not there should be something up on the Edit menu in CM its self.

John
 
When I fix them and click 'submit edits', it says 'Unable to commit changes to asset <kuid:283805:27001> as the config file contains the wrong KUID'

Are you sure that is the exact error message? A similar error occurs if the config includes a reference to a KUID (eg, in an obsolete container or in the KUID table) that is incorrectly formed, such as '<kuid1234:456>'.
 
Wrong kuid as Bob said, or possibly a missing bracket or one in the wrong place, I suggest posting a copy of the config on here, may have missed something when editing.
 
ok, here it is:

category-class "AL"
engine 1
interior <kuid:51536:55008>


bogeys
{
0
{
reversed 0
bogey <kuid:343177:26000>
}

1
{
reversed 1
bogey <kuid:343177:26000>
}
}
kind traincar
icon0 <kuid:60850:88000>
username "BR Class 27 Green"
description "Original work by zxr400 reskinned by tmz06003 with permission. Script modifications by tmz06003 with permission."
script "headcode33"
class "headcode33"
fonts 0
mass 76000
origin "UK"
smoke_shade 0.3
smoke_random 4
smoke_slowlife 25
smoke_fastlife 1.3
smoke_height 3
smoke_fastspeed 2
enginespec <kuid:51536:51003>
enginesound <kuid:104722:53024>
hornsound <kuid:37028:54033>
light_color 0,0,0
author "tmz06003"
contact-email " "
license "No reskins without permission from tmz06003 and the original author as applicable."
category-region-0 "UK"
category-era-0 "1960s"
category-era-1 "1970s"
category-era-2 "1980s"
category-era-3 "1990s"
category-era-4 "2000s"
trainz-build 2.8
fonts-path "class_27_0_blue"


mesh-table
{
default
{
mesh "Class_27_0_Blue_body/Class_27_0_Blue_body.im"
auto-create 1

effects
{
fan0
{
kind "attachment"
default-mesh <kuid:51536:339>
att "a.fan0"
}

headcode
{
kind "texture-replacement"
texture "a.texture"
}

headcode2
{
kind "texture-replacement"
texture "b.texture"
}

headcode3
{
kind "texture-replacement"
texture "c.texture"
}

headcode4
{
kind "texture-replacement"
texture "d.texture"
}

headcode5
{
kind "texture-replacement"
texture "a1.texture"
}

headcode6
{
kind "texture-replacement"
texture "b1.texture"
}

headcode7
{
kind "texture-replacement"
texture "c1.texture"
}

headcode8
{
kind "texture-replacement"
texture "d1.texture"
}

topbar
{
kind "texture-replacement"
texture "topbar.texture"
}

topbar2
{
kind "texture-replacement"
texture "topbar2.texture"
}

cabrail
{
kind "texture-replacement"
texture "toprail.texture"
}

dirty
{
kind "texture-replacement"
texture "bodyside.texture"
}

dirty2
{
kind "texture-replacement"
texture "cabdoorlowers.texture"
}

dirty3
{
kind "texture-replacement"
texture "cab.texture"
}

dirty4
{
kind "texture-replacement"
texture "cabroofs.texture"
}

dirty5
{
kind "texture-replacement"
texture "roofsides.texture"
}

dirty6
{
kind "texture-replacement"
texture "fansurroundroof.texture"
}

dirty7
{
kind "texture-replacement"
texture "radpanels.texture"
}

dirty8
{
kind "texture-replacement"
texture "fanframe.texture"
}

dirty9
{
kind "texture-replacement"
texture "bodysidedoor.texture"
}

dirty10
{
kind "texture-replacement"
texture "cabdoors.texture"
}
}
}

aerial
{
mesh "Class_33_0_Blue_attachments/nrn.im"
auto-create 0
}

etssocket
{
mesh "Class_33_0_Blue_attachments/etssocket.im"
auto-create 0
}

grilles
{
mesh "Class_33_0_Blue_attachments/27_2.im"
auto-create 0
}

boilertank
{
mesh "Class_33_0_Blue_attachments/boilertank.im"
auto-create 0
}

roundbuff
{
mesh "Class_33_0_Blue_attachments/roundbuffers.im"
auto-create 1
}
 
2nd bit:
ovalbuff
{
mesh "Class_33_0_Blue_attachments/roundbuffers.im"
auto-create 0
}

lamp
{
mesh "Class_33_0_Blue_attachments/lamp.im"
auto-create 0
}

snowplough
{
mesh "Class_33_0_Blue_attachments/snowplough.im"
auto-create 0
}

3plough
{
mesh "Class_33_0_Blue_attachments/3sp.im"
auto-create 0
}

3plink1
{
mesh "Class_33_0_Blue_attachments/c3sp1.im"
auto-create 0
}

3plink2
{
mesh "Class_33_0_Blue_attachments/c3sp2.im"
auto-create 0
}

wipers
{
mesh "Class_33_0_Blue_attachments/wipers.im"
anim "Class_33_0_Blue_attachments/wipe.kin"
auto-create 1
}

wipers2
{
mesh "Class_33_0_Blue_attachments/wipers2.im"
anim "Class_33_0_Blue_attachments/wipe2.kin"
auto-create 1
}

frontpipelow
{
mesh "Class_33_0_Blue_attachments/flp.im"
auto-create 0
}

backpipelow
{
mesh "Class_33_0_Blue_attachments/blp.im"
auto-create 0
}

frontpipelowin
{
mesh "Class_33_0_Blue_attachments/flpin.im"
auto-create 1
}

backpipelowin
{
mesh "Class_33_0_Blue_attachments/blpin.im"
auto-create 1
}

sfrpipein
{
mesh "Class_33_0_Blue_attachments/no1spi.im"
auto-create 1
}

sbapipein
{
mesh "Class_33_0_Blue_attachments/no2spi.im"
auto-create 1
}

sfrpipeout
{
mesh "Class_33_0_Blue_attachments/no1spo.im"
auto-create 0
}

sbapipeout
{
mesh "Class_33_0_Blue_attachments/no2spo.im"
auto-create 0
}

cantrail
{
mesh "Class_33_0_Blue_attachments/Orange_stripe.im"
auto-create 0
}

screwlinkfrontup
{
mesh "Class_33_0_Blue_attachments/sfu.im"
auto-create 0
}

screwlinkbackup
{
mesh "Class_33_0_Blue_attachments/sbu.im"
auto-create 0
}

screwlinkfrontlow
{
mesh "Class_33_0_Blue_attachments/sfd.im"
auto-create 1
}

screwlinkbacklow
{
mesh "Class_33_0_Blue_attachments/sbd.im"
auto-create 1
}

snowcover
{
mesh "Class_33_0_Blue_attachments/snowcovers.im"
auto-create 0
}

invlamp
{
mesh "Class_33_0_Blue_attachments/invlights.im"
auto-create 0
}

27parts
{
mesh "class_27_0_blue_body/27parts.im"
auto-create 1

effects
{
body-sidenum
{
kind "texture-replacement"
texture "numside.texture"
}
}
}

shadow
{
mesh "Class_27_0_Blue_shadow/Class_33_0_Blue_shadow.im"
}
}


smoke0
{
attachment "a.steam0"
mode "time"
enabled 0
period 60
loop 1
loopdelay 0
file "steam.tfx"
color 0,0,0,0
}


smoke1
{
attachment "a.steam1"
mode "time"
enabled 0
period 60
loop 1
loopdelay 0
file "steam.tfx"
color 0,0,0,0
}


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


asset-filename "class_27_0_blue"
kuid <kuid:283805:27001>
kind "traincar"


kuid-table
{
headcode_asset <kuid:51536:51140>
topbar_asset <kuid:51536:51123>
cabrail_asset <kuid:51536:51124>
weathering_asset <kuid:283805:26108>
26_0_html <kuid:51536:4538>
light1 <kuid:51536:9212>
light2 <kuid:51536:9212>
light3 <kuid:51536:9212>
light4 <kuid:51536:9212>
light5 <kuid:51536:9212>
light6 <kuid:51536:9212>
light7 <kuid:51536:9212>
light8 <kuid:51536:9212>
tail1 <kuid:51536:9214>
tail2 <kuid:51536:9214>
tail3 <kuid:51536:9214>
tail4 <kuid:51536:9214>
invlight0 <kuid:51536:9212>
invlight1 <kuid:51536:9212>
invlight2 <kuid:51536:9212>
invlight3 <kuid:51536:9212>
hiss <kuid:51536:1202>
35 <kuid:51536:55008>
36 <kuid:60850:88000>
37 <kuid:51536:339>
38 <kuid:51536:51003>
39 <kuid:104722:53024>
40 <kuid:37028:54033>
42 <kuid:343177:26000>
}
 
Looking at your Config I notice that Line
Asset Filename "class_27.0.blue has : kuid<kuid:283805:27001>
Could This be your Problem
 
Missing bracket on the end of the thumbnails container.


Code:
thumbnails
{
  0
  {
    image                               "screenshot.jpg"
    width                               240
    height                              180
  }
}
 
I downloaded 283805:27001 to check.
Config Reads kuid <kuid:283805:27001>
yours Kuid <kuid:283805:27001>
There should be a space after First Kuid
 
Back
Top