Question: Content Creation

Len12

New member
I created a scenery asset with 3DCanvas7. I saved it as an 'im' file and it did so with all the accompanying bmp files. Using CMP I created a scenery--->mesh-table---->Apartment01.

It shows up nicely in the viewport. However when saving for config. file I get three error messages:

The texture XXXXXX.bmp is not a power of 2 please resize it. Question: To what size is power of 2?

Second question is once I have the config. file what do I do with it?

Thanks. I have a lot of content which I created for RailSimulator and I'd like to port it over to Trainz.
 
I figured how to get it into Trainz- Surveyor. The name shows up but no preview and no object visible. So I guess the real question has to do with texture size.
 
New Question. I now created it and it saved the config. file without a problem. I can't get a preview on it. Secondly, despite the fact it saved ok and shows up in the named assests in Trainz, when I click it I get no object in view nor in the game itself. What am I doing wrong?
 
What version of Trainz are you using? Can you check it for errors with CMP to see what is still wrong?
 
I created a scenery asset with 3DCanvas7. I saved it as an 'im' file and it did so with all the accompanying bmp files. Using CMP I created a scenery--->mesh-table---->Apartment01.

It shows up nicely in the viewport. However when saving for config. file I get three error messages:

The texture XXXXXX.bmp is not a power of 2 please resize it. Question: To what size is power of 2?

Second question is once I have the config. file what do I do with it?

Thanks. I have a lot of content which I created for RailSimulator and I'd like to port it over to Trainz.

The traditional way of doing the config.txt file is find one that works typically version 2.4 or earlier for scenery then clone it. TRS2009 is good at spotting errors.

If you wish to use me to beta test your items you may do so I run TRS2009. jwhelan0112 gmail.com

Cheerio John
 
New Question. I now created it and it saved the config. file without a problem. I can't get a preview on it. Secondly, despite the fact it saved ok and shows up in the named assests in Trainz, when I click it I get no object in view nor in the game itself. What am I doing wrong?

Have you got the 'autocreate 1' tag in there? Feel frree to post up your config.txt if you're still having problems.

Jonny.
 
Thanks for the response guys. I'm using Trainz09 version.

The config file is:

username "Apartment01"
kuid <kuid:452104:1308>
trainz-build 2.9
category-class "BH"
category-region "CA"
category-era "2000s"
kind "scenery"
author "Len12"

mesh-table
{
apartment01
{
mesh "Apartment01.im"
}
}


The two texture files are:
Primary=20080308_0021_0005.tga
Tile=st

And

Primary=20050609_0001_0007.tga
Tile=st

I'm posting those because I'm hoping the file form is ok. Because 3DCanvas uses only BMP files to texture I converted them to tga. They are both 512x512.

When viewing the mesh technical details in CMP this is what is seen:

Poly Count: 30
raw texture size:~2097152 bytes
number of meshes:1
number of textures:2
number of attachment points:0
number of animations:0
number of bones:0

There is no errors now. I simply can't get it to show in Surveyor. It shows up text wise in the list of objects. Nothing in the preview but when I click on the world it is putting something ther because I can undo it. Just nothing shows up. I'm suspicious of the textures.

Also, can I use bmp instead of tga textures? Do I need to convert them?

Thanks
 
The traditional way of doing the config.txt file is find one that works typically version 2.4 or earlier for scenery then clone it. TRS2009 is good at spotting errors.

If you wish to use me to beta test your items you may do so I run TRS2009. jwhelan0112 gmail.com

Cheerio John

John I tried emailing my files but I think your email is not correct.
 
You need the autocreate tag in there.
Jonny

Here is the config with the thumbnail added to the config file. It shows up ok as a preview in CMP:

?
kuid <kuid:452104:1312>
username "Apartment01"
trainz-build 2.9
category-class "BH"
category-region "CA"
category-era "2000s"
kind "scenery"
author "Len12"

mesh-table
{
apartment01
{
mesh "../Apartment01.im"
auto-create 1
}
}

thumbnails
{
0
{
image "Apartment01.jpg"
width 240
height 180
}
}
 
Hi Len12

Your config needs to have the auto-create tag added in as follows:

mesh-table
{
apartment01
{
mesh "Apartment01.im"
auto-create 1
}
}

EDIT: At thought here. Maybe try renaming the mesh-table entry (not the im file's name) to 'default'.


Have fun
Zec
 
Last edited:
Hi Len12

Your config needs to have the auto-create tag added in as follows:

mesh-table
{
apartment01
{
mesh "Apartment01.im"
auto-create 1
}
}

EDIT: At thought here. Maybe try renaming the mesh-table entry (not the im file's name) to 'default'.


Have fun
Zec

Zec

Yes I've done that. Below is the config file:

?
username "Apartmen01"
kuid <kuid:452104:1314>
trainz-build 2.9
category-class "BH"
category-region "CA"
category-era "2000s"
kind "scenery"
author "Len12"

mesh-table
{
apartment01
{
mesh "Apartment01.im"
auto-create 1
}
}

thumbnails
{
0
{
image "Apartment01.jpg"
width 240
height 180
}
}
 
Hi Len12

Your config needs to have the auto-create tag added in as follows:

mesh-table
{
apartment01
{
mesh "Apartment01.im"
auto-create 1
}
}

EDIT: At thought here. Maybe try renaming the mesh-table entry (not the im file's name) to 'default'.


Have fun
Zec

Ok I"ll try that.

Nope. Doesn't show up in Trainz. The name but not the object.
 
Last edited:
Scimitar
According to Chris, the brace setup that Len12 has is correct. In fact, TS2009 will automatically change the formatting to the brace setup that Len12 is using.

Zec
 
Seeing you are working with TS2009, try opening the new asset for edit with CCP. Then look at the mesh entry.. If the mesh is valid it will show up in the mesh preview pane of CCP. Also CCP will check the whole shooting match for errors.. Fix any errors it raises.

I'm not sure how you get an IM mesh out of 3DCanvas.. There is a chance that your mesh may not be valid..

Also you can try looking at your mesh with a viewer program. I have one that may help..

Download it from http://www.members.optusnet.com.au/~villaump/pevsoft.htm

Also with your conversion from bmp to tga, check that tga compression is disabled..

Regards,
 
Last edited:
Dodgy textures usually show up white. A total no-show is more likely to be a dodgy mesh (of course TS2009 could be different).

Paul
 
Back
Top