CCP is renaming my files

jytte

route builder
Yesterday I uploaded 6 files, that are all updated versions of an older asset. They have just been modified to run for 2006. The config file is clean as a whistle. The era, country, and thumbnail is in there. It shows up fine in CMP, works like it's supposed to in Surveyor. BUT, when I went to approve them in the preview area, there was no thumbnail, and the era and country was not there either. Needless to say, I declined them.

Then I found out why the thumbnails were gone, but that's even STRANGER. All the thumbnails are named "48Bred", "48Bgreen" and so on. I just discovered that in the edit folder, those files (jpg's) have been renamed to "48bred", "48bgreen" and so on. ??????????????? Not by me, I have the copies to prove it. Guess CCP does that, which I don't understand at all? And why would that cause the era and country to disappear? And why does it still work in my CMP (shows the thumb just fine).

I just renamed those jpegs (this time not starting with a number, just in case that's the problem) and resaved and uploaded again, and I have a hunch it'll work now.

But I still don't have a clue what this is all about??
 
Hello jytte
CMP converts any filenames to lower case. I don't remember what the reasoning was for this action. Removing the numbers at the front will not help. You need to make sure any reference to the files in your config are in lower case. Windows does not care about upper case or lower case but the internet does.

In regards to the ere and country, do you have them formatted correctly for TRS2006?

Regards

Phil
 
Thanks Phil,

I did not know that. I will be mindful of that from now on. I did rename them entirely though. I know some programs have a problem when a file name begins with numbers, even though numbers anywhere else is never a problem, so I staid away from that too, just in case.

Regarding era/country: Yes, these files were made in CCP, specifically to update some files for 2006. And era/country in them are the same as many others I have made. I think DLS, once it encountered the problem with the thumbnail, decided to spit out a few more items, just for good measure :hehe:

It's still odd to me though, that it worked fine in CMP/surveyor (I always double check everything before I upload).

Some of my file names (as in the "user name" of the asset) have capitals in them though, and that seems to go over just fine, they're already on DLS.

Anyway, thanks for the tip. I will be veeeery careful from now on.
 
Hello jytte
Username is not a path to a file. You need to look out for items such as the following;
Code:
thumbnails {
  preview {
    image "sd60m_images/preview.jpg"
    width 240
    height 180
  }
}
Note the image path is all lower case and the corresponding file is also lower case. This is the only one that matters as it is the one that will show up on the DLS.

Can you post how you have your era/country formatted?

Regards

Phil
 
This is from another asset already on DLS:

category-region "DK"
category-era "1950s"


and this is from one of the files in question:

category-region "DE;DK"
category-era "1950s"

As you can see, there's no difference. Also It's made in CCP, so I don't decide the format. Must be just one of those things.
 
As a suggestion, most people will tell you to stay away from CCP. It's been known to do strange things to your config files, as you've found out. Study the configs of similar assets, then write your own. It'll also improve your understanding of how things work in Trainz and what's required.
Norm
 
Yes, I've been told that too. But I haven't had any problems so far - this was my fault. I do read the configs of others' files as well as my own, and get to know them well. I have asked myself the last couple of days if it wouldn't be faster to just write the config instead, because I have so many files that are almost identical except for a file reference or two. But when I'm creating an asset from scratch, how do I get a kuid "assigned" without going through CCP?
 
Just open a new notepad document and write your own config, using an existing similar asset's config as a guide. Add your files, then use import content. Just make sure to use a unique kuid number, so you don't overwrite any existing content of your own. If you're using '06 or higher, Import Content is the only way to change kuid numbers in CMP.
Norm
 
Use "clone" in CMP and you get a new copy with a new KUID number. Also when you make a CDP your config.txt file is read and then re-made witch can add an error if you have committed the content. I found this out the hard way, CMP removed the KUID number from the config.txt witch made a bad CDP but the content worked OK in TRS6, this is do to CMP being a data base, the original is in the data base and you only open a copy of it.
 
Whitepass, I'm not sure what you just said?
I use clone, when I'm updating an older file. Then edit it in CCP.

But, I found out something else today. When I go to approve a file, It has no era or country, and that goes for ALL the files I've uploaded. I can't check on DLS, because it does not show there, but when i delete a file in CMP (that I've made), and then download it from DLS, the era and country is there!

My files have been downloaded, I can see the numbers, but I don't know who they are obviously.

Can I please have a volunteer to download a file of mine, and then post here what they see or don't see in their CMP (if the era and country code are there)?

Please download: xjc sound frog1 KUID: 386158:1163


This is the config.txt: (and I can't see anything wrong with it)


kuid <kuid:386158:1163>
trainz-build 2.5
category-class "OA"
category-region "DK"
category-era "1950s"
username "xjc sound frog1"
kind "scenery"
description "Sound file, frog.

The tag is bright red, so you will need to sink it below the ground level slightly if you do not want it to appear in Driver. You will then have to use the wire frame mode (F9) in surveyor if you want to find the file to delete it from your map.

http://trainz.christrup.net/

Freeware, use it as you please.
"
mesh-table {
default {
mesh "rednote.im"
auto-create 1
}
}
soundscript {
frog1 {
repeat-delay 5,10
distance 40,100
nostartdelay 1
sound {
0 "frog 1.wav"
}
}
}
thumbnails {
0 {
image "frog1.jpg"
width 240
height 180
}
}
kuid-table {
}


 
Last edited:
DLS is in a coma again, so it's hard for me to try much of anything. I did manage a few searches though, and it seems to me that DLS and CMP is not quite on the same page?? I tried a search under "rolling stock" and "denmark", and that works, but when searching under "animals", denmark is not even an option? In CCP, all I get is "DK" not "Denmark". I can see in older files (made for 2004) that they have "DK-Denmark" in their config. Grrrrrrrrr.

And geeeze, now CMP crashed on me again. Does that several times a day. SIGH.

This is all a bit confusing. I have a fair mind to just ignore the era/country setting, but since I've been bitching about all the assets out there with no settings, I guess I should try to stick to the "rules" myself :hehe:
 
Last edited:
but when searching under "animals", denmark is not even an option?

I never figured out that part either, but then again, I don't live in Bakerstreet. Maybe we need one of these?

Code:
username      "Danmark 2006"
kind       "region"
description "Cradle of vikings, H.C.Andersen & Carlsberg. Shaped by ice in clay and sand.
Search the DLS for DK lever, Sig37 and Sig63 to find levers and signals for danish rails.
NB! You may need to check older Trainz versions into the search.
Dannebrog image from public domain source at
[URL]http://commons.wikimedia.org/wiki/Image:Dannebrog_2.jpg[/URL]
"
trainz-build      2.6
category-class      "YP"
category-region      "DK"
category-era-0      "1960s"
category-era-1      "1970s"
category-era-2      "1980s"
category-era-3      "1990s"
category-era-4      "2000s"
watercolor      51,78,87
defaultjunction      <kuid:62310:24014>
ontheright      1
longitude      12,34,32
latitude      55,40,53
altitude      0
car0       34
car1       35
car2       36
car3       28
car4       30
car5       31
car6       32
car7       33
car8       37
car9       38
car10       30
car11       41
car12       42
thumbnails {
 0 {
  image     "dannebrog.jpg"
  width     800
  height    599
 }
}
asset-filename      "DK_2006"
kuid-table {
 0      <kuid:62310:24014>
}
kuid       <kuid:your-userid-goes-here:1219>

Make a folder named "Danmark2006", anywhere, stuff the code above into a config.txt file, copy the picture from the source to the same folder, open CMP and drop the folder on the main list. This will import your new asset. Remember to commit it in CMP or it will not show up in Surveyor.

Check Content Creation Guide for region tags and details.
 
Back
Top