What goes in the config.txt file

km1961

Content & Picture DVD
Hi

Hope someone can help me

I am creating test files in GMAX (just learning it) and I need to know what goes in the config.txt text file.

I have done all the creating in Gmax, the export, used CMP and CCP etc.

The problem I have is that when I load TRS2006 the name of the item I have created shows up but no item.

Could any one list step by step if pos for a novice likle me what I have to do after exporting the files from GMAX

Also what needs to be entered into the config.txt file

Thank you all
 
I just starting creating content myself and what I have found to be helpful is to clone an object similar to the one you're making. Then use that config.txt as a guide when creating the config.txt for your object. Hope this helps!
 
I agree with maj. The key is to look at other assets for examples and guidance. The CCG is also essential to have. As TrainzDev continues to be updated, it is far from complete right now and is not full of examples as is the CCG.

Make sure you have the Autocreate box ticked under your mesh in CCP to make sure it appears in-game.

Jonny
 
Hi

Hope someone can help me

I am creating test files in GMAX (just learning it) and I need to know what goes in the config.txt text file.

I have done all the creating in Gmax, the export, used CMP and CCP etc.

The problem I have is that when I load TRS2006 the name of the item I have created shows up but no item.

Could any one list step by step if pos for a novice likle me what I have to do after exporting the files from GMAX

Also what needs to be entered into the config.txt file

Thank you all

Try to avoid CCP use right click , edit, edit in explorer instead. Generally speaking I clone a similar asset then modify the config.txt file accordingly. TS2010 CM3.2 is more robust and detects more errors.

What sort of object have you created?

Thanks

Cheerio John
 
I agree that seeing what others have put in their config files is a good way to learn BUT it is also how many errors, subtle or otherwise, have been propagated through the ages of Trainz.

Part of the solution is to always check back with the various Content Creators Guides. Both the 2004 and the 2006 versions are available and good sources. The 2010 wiki is not complete but does contain some of the newer tags.

It's not just the config that determines if an object appears in Trainz. The object itself must be correctly made, the textures correctly made and applied and the whole correctly exported.

To start, let's see your config file. Later we might ask about other details.
 
Hi

Thank you all for your comments. I am still no further forward.

I will brief list step by step what I have done

I am using Trainz Asset Creation Studio

1. Created a simple box in GMAX and applied a texture (BMP picture file)
2. Saved in GMAX
3. Created a new folder (eagle) then exported file into this directory
Now have the following files in the above folder EAGLE.JPEG, EAGLE.GNW, EAGLE.IM and the TEXTURE txt file
4. Load CMP
5. Create a NEW FILE ASSET
6. Select SCENERY
7. In CCP click on SCENERY folder icon
8. Add MESH TABLE
9. Enter name in box EAGLE
10. Click on EAGLE.IM
11. Tick AUTO CREATE box
12. Save

Config file reads


kuid <kuid:240102:1022>
trainz-build 2.5
category-class "AA"
category-region "BR"
category-era "1990s;2000s"
username "Unnamed"
kind "scenery"
mesh-table {
eagle {
mesh "../eagle/eagle.IM"
auto-create 1
}
}

13. Return to CMP
14 Import Contents in
15 COMMIT
Next to item in CMP shows the fault icon

Run TRS2006 and the name EAGLE is in the list but no picture. Try to plase the item but nothing. Please help where am I goin wrong.


:(
 
Last edited:
The reason it is not appearing in Trainz is due to the fault - you will need to find it in CMP then right click, then select View Errors. The box that then appears will then tell you what parts of the config file are the problem (missing tags,empty tags,missing/corrupt textures etc)

Shane
 
The reason it is not appearing in Trainz is due to the fault - you will need to find it in CMP then right click, then select View Errors. The box that then appears will then tell you what parts of the config file are the problem (missing tags,empty tags,missing/corrupt textures etc)

Shane

The fault is likely to be those 3 random looking characters on the first line, trainz really doesn't like that.

The only other thing that MIGHT be a fault, but I'm not sure it is, is the mesh-table { eagle { ... } } part... I'm not sure if you *need* a 'default' named mesh or if it's ok to use a different name for the main mesh like that - I suspect it's OK and the 3 characters is the only real fault.

Of course, there could be other texture related errors that we can't see ;)
 
Try this:

Code:

kuid <kuid:240102:1022>
trainz-build 2.5
category-class "AA"
category-region "BR"
category-era "1990s;2000s"
username "Unnamed"
kind "scenery"
mesh-table {
default {
mesh "eagle.IM"
auto-create 1
}
}

And don't use CCP unless you know how to fix the mess it makes.

Paull
 
If I remember rightly, the first 3 characters in the file are encoded (It does not happen in every file, but it does happen in some)

I agree though with what's been said about CCP - I prefer to make changes using Explorer. CCP usually messes things up for me.

Be aware though, that eagle.im must be in the same folder as the other files.

I'm a little puzzled by the username tag though - normally that should match the name of the asset.

Shane
 
Hi

Thank you all once again for your helpful replies.

I have progressed a little further now but have this problem

Following the instructions you have given I now can have my box displayed in Trainz but the only problem I have is that the picture which I put on in GMAX is not on it. It is just a white box.

However when I commit it I get this message:-

THE TEXTURE D:\AURAN...etc IS NOT A POWER OF 2 PLEASE RESIZE IT

Can anyone shed some light on this error and what I need to do to correct it. Do I need to resize it through GMAX or a picture editing program and how do I know when it is a power 2?

Thank you all again and sorry for being not that bright on this subject. I am glad my hair is already grey because I feel if it was not then it would be by now
:confused:
 
I think that is referring to the dimensions - power of 2 examples are 32*32,64*64,128*128,256*256 etc (up to 2048*2048)

Don't worry, I help people of all skill levels (as far as I'm concerned, if it is a problem I can help solve (or try to), I will do).

Shane
 
I think that is referring to the dimensions - power of 2 examples are 32*32,64*64,128*128,256*256 etc (up to 2048*2048)

Don't worry, I help people of all skill levels (as far as I'm concerned, if it is a problem I can help solve (or try to), I will do).

Shane

You can mix dimensions, eg, 64x512, 64x1024, 128x1024, 1024x64, as long as each dimension is a power of 2
 
Hi

Thanks go out to you all

I have just tested my first box item in Trainz and it worked at long last

the two things which were going wrong was the config file and the picture (power 2)

I can now playabout more with GMAX and someday I might have something on the DL Station

Thank you all once again:)
 
Congratulations on getting your first object to appear in Trainz. :clap: Now that you know that you can do it, you can forget about having a lot of free time available for other activities, you'll be too busy making things you want and need.:hehe:

Don't be afraid to ask more questions, we were all there at one time or another. :)
 
Back
Top