Primary and alpha not the same size?

gremlin1812

New member
G’Day All, First up I’m working in TRS2006.
OK with this error I realise that the primary and alpha have to be the same size, there are several things that I am not sure of:-
Primary and alpha not the same size, should the alpha be resized to the primary or vice versa or doesn’t it matter?

You have two texture text files both referring to the same alpha but different primary’s and the primary’s are different sizes one the same as the alpha the other not, do we:-
1 – Make the odd sized primary the same as the others?
2 – Make a copy of the alpha and resize it changing its name by adding lets say a 1 and renaming it in the texture text file?

Some times there are texture text files with no texture, if you remove that texture text file and the im file is calling for it will that bring an error or will the sim just ignore it?

I would love to take my old routes to TS2010 but I cannot go along with the automatic obsolescing of trees and track and the auto draw distance thingy, :(also TS2010 does not seem to like SP3 and UTC routes, so for now I will stick with TRS2006 even if doomsday comes.:eek:
Regards
Barrie
 
Assuming both files are legal sizes (i.e. powers sizes of 2), I'd make the smaller one match the dimensions of the larger, otherwise you'll lose quality in one or the other. No need to re-name - if you get into dramas, you can always re-download.

If there is a texture.txt and no .tga/.bmp, move the texture.txt to your desktop and try it. If you still get an error, then you'll have to either create a texture, or edit the texture.txt file so it points to a real texture. 9 times out of 10, just removing the texture.txt file works.

Paul

p.s. The auto-draw distance thing seems to be more stable if you pull back the slider to something manageable (1-3km depending on route detail and machine).
 
My take is that the primary is the most important. If the alpha has to be upsized to fit the primary, so be it. What you want to avoid whenever possible, IMO, is down-rezzing the primary, since that's the graphic with detail (usually.)
 
G'Day, Thanks for the reply, I was thinking that the primary might the most important. Will have to experiment a bit.
Regards
Barrie
 
Primary and alpha not the same size

This is Ground Control ... to Major Bump

What does this actually do to the asset or image, when you remove this line ?:

AlphaHint=semitransparent

It does clear the error up

Primary and alpha not the same size
 
Last edited:
I use 2006 and 2010. I'm going to respond with an example. This is a tree and one of many released recently by Colorado71. It (and all the rest) installed into 2010 with no errors and work well. However, when I installed then in 2006 they generated these errors:

Example: co71_Ponderosa-Pine_05_10m,<kuid:387564:5225>
Author: Colorado71
Trainz-Build: 2

Errors in 2006:

Error: Could not load texture 'C:\Auran\TRS2006/local/content wiw2naeb168\int=semitransparent'.
Error: No selection for tag 'category-region' in 'scenery'.
Error: The primary and alpha texture are not the same size for 'C:\Auran\TRS2006/local/content wiw2naeb168\co71_ponderosa-pine_05.texture.txt'
Warning: 'USA'is not a valid value for tag 'category-region'. This tag is now empty and a new value must be selected.

I've had the semitransparent and primary & alpha not the same size many times before when backdating 2010 assets to 2006. Many times I can just delete the alpha and semitransparent lines from the texture.txt file and everything works fine with no errors in 2006. However, that is not the case with the colorado71 assets I'm using as an example above. Removing these 2 lines will remove the errors in 2006 but the asset does not appear correctly without them. So, I decided to just install them and leave the error messages since 2006 still shows assets that have errors (unlike the later Trainz versions).

I'd say make a copy of the texture.txt file and try and remove the semitransparent & primary and alpha not the same size lines and correct the other errors (the category-region "USA" of my example should be "US") if you want. Then try the asset and if it does not appear at all or looks bad then restore the original texture.txt file and ignore the error messages.
 
TRS2006 doesn't know the AlphaHint entry for texture.txt files. It was introduced with TRS2009 (?). When the CMP of TRS2006 parses the file, it reads Alpha, skips the H, and expects the rest of the line to be a filename. A file, that doesn't exist, doesn't have the same size as the existing primary file. For Trainz versions, not supporting this entry, just delete the offending line.
For textures, where the size of the graphic files are different, you have to rescale one of the files (usually the Alpha file).

Peter
 
Back
Top