Page 1 of 1

Wang/terrain texture

Unread postPosted: Thu Feb 04, 2016 5:14 am
by aksingha
Hi, following Derek's tutorial on railworksart blog..I have made my own custom terrain texture and it works, but only if I create a new route and choose my route template...but it is not working when I reference the texture to my existing route..I edited the route properties.xml in the content\routes folder...and referenced my newly made terraintexture xml..but as soon as I start my route..all it shows is a black screen and then the game crashes..can anyone please point out the problem..

Re: Wang/terrain texture

Unread postPosted: Thu Feb 04, 2016 8:51 am
by wacampbell
Some thoughts ..

1. Your 'existing route' references a texture slot that is not provided in your 'newly made terraintexture.xml' . Test for this by temporarily renaming your MixMap folder to XMixMap. This disables all terrain painting.

2. Your 'existing route' doesn't include the Provider/Product of the new terraintexture.xml in its object set filter. If this is the case, you can add your PP to the RBlueprintSetPreLoad section of your route's RouteProperties.xml

3. The elevation based texture indexes, eg LowGroundTextureIndex, in your new terraintexture.xml are not pointing to valid texture slots, and your 'existing route' contains those elevations. Test for this by temporarily renaming your Terrain folder to XTerrain. This sets all elevations to 0.

I'll check back if I think of any others.

Wayne

Re: Wang/terrain texture

Unread postPosted: Thu Feb 04, 2016 10:02 am
by aksingha
wacampbell wrote:3. The elevation based texture indexes, eg LowGroundTextureIndex, in your new terraintexture.xml are not pointing to valid texture slots, and your 'existing route' contains those elevations. Test for this by temporarily renaming your Terrain folder to XTerrain. This sets all elevations to 0.

Wayne

Thanks...renaming the terrain folder worked and the ground level with my texture is way below the station/objects...where do I need to make corrections..some advice please

Re: Wang/terrain texture

Unread postPosted: Thu Feb 04, 2016 10:08 am
by wacampbell
At the bottom of your terraintexture.xml, set the following all to 1

<LowGroundTextureIndex d:type="sUInt32">1</LowGroundTextureIndex>
<MidGroundTextureIndex d:type="sUInt32">1</MidGroundTextureIndex>
<HighGroundTextureIndex d:type="sUInt32">1</HighGroundTextureIndex>
<RockTextureIndex d:type="sUInt32">1</RockTextureIndex>

Then see if you can restore your Terrain folder.

EDIT - corrected default value to 1

Re: Wang/terrain texture

Unread postPosted: Thu Feb 04, 2016 11:05 am
by aksingha
The game crashes if I restore the terrain folder

Re: Wang/terrain texture

Unread postPosted: Thu Feb 04, 2016 11:21 am
by wacampbell
PM me your terraintextures.bin and I'll check it out.