Reskin - What did I do wrong?

alexl102

Learning... slowly!
Hi all.

Reskinned a class 47 earlier, purely for personal use. I did it by duplicating one I'd downloaded from the DLS and then editing the main.tga file and overwriting it. I submitted the edits and re-named it etc.
When I put it into Surveyor, the original skin was still showing, even though the little 3d preview in the box on the left was showing the reskinned version.

I've used exactly the same method on two MK2 coaches earlier and had no problems so can't understand why this is happening.

Anyone know what might be going on?

Many thanks.
 
When I put it into Surveyor, the original skin was still showing, even though the little 3d preview in the box on the left was showing the reskinned version.

You should check for aliasing, LOD and scripting. All of those can affect which image files are actually used.
 
You should check for aliasing, LOD and scripting. All of those can affect which image files are actually used.

Okay, thank you. I'm a complete novice at this so what would I need to check about each of those? I updated the only copy of main.tga in the file - so there's not even an older one that it can revert to using.
 
Check that the name in the .texture.txt file has also been changed, it probably still has the old skin .tga

Peter
 
Okay, thank you. I'm a complete novice at this so what would I need to check about each of those? I updated the only copy of main.tga in the file - so there's not even an older one that it can revert to using.

What is the original KUID? If it can't be downloaded, you may need to post the whole config..txt
 
It's unlikely to be to do with LOD, in my opinion the most likely reason for this to happen is that the original loco has a texture-replacement effect to allow livery swapping. Thus you need to delete all the relevant bits from the config. However it's impossible to know what those bits might be without knowing more about the asset in question...
 
The asset I cloned was the Freightliner Class 47 (Ex First Great Western) which is <KUID441222:47813>

Edit: I think it must be to do with the model because I tried re-skinning a 33/1 as well, and that has had the same result. Any suggestions appreciated! :)
 
Last edited:
The asset I cloned was the Freightliner Class 47 (Ex First Great Western) which is <KUID441222:47813>

What running number are you using? The skin for the loco is determined by the running number. You can override it and make it your new skin for all running numbers by editing the script brush4.gs. Find this code in three places:

SetFXTextureReplacement("nameplatea", asnameplates, 0);SetFXTextureReplacement("nameplateb", asnameplates, 0);SetFXTextureReplacement("nameplatec", asnameplates, 0);SetFXTextureReplacement("nameplated", asnameplates, 0);SetFXTextureReplacement("main", asnameplates, 1);me.SetMeshVisible("headcodeyellow", true , 0);me.SetMeshVisible("headcodeblack", false , 0);me.SetMeshVisible("headcodeglass", false , 0);me.SetMeshVisible("snowploughs", false , 0);me.SetMeshVisible("mwsockets", false , 0);

and carefully remove the underlined portion.

SetFXTextureReplacement("nameplatea", asnameplates, 0);SetFXTextureReplacement("nameplateb", asnameplates, 0);SetFXTextureReplacement("nameplatec", asnameplates, 0);SetFXTextureReplacement("nameplated", asnameplates, 0);me.SetMeshVisible("headcodeyellow", true , 0);me.SetMeshVisible("headcodeblack", false , 0);me.SetMeshVisible("headcodeglass", false , 0);me.SetMeshVisible("snowploughs", false , 0);me.SetMeshVisible("mwsockets", false , 0);
 
What programs open a .gs file?

You should already be using Assetx for your reskinning, and that can edit .gs files.

Otherwise, most text editors, but be sure it is one that does not do any automatic replacements, such as smart quotes. Notepad is excellent.
 
Thanks, it worked a treat. Can anyone tell me which line would be the equivalent for the Class 33 <kuid:283805:33002>?

Cheers!
 
Thanks, it worked a treat. Can anyone tell me which line would be the equivalent for the Class 33 <kuid:283805:33002>?

In config.txt for asset <kuid:283805:33002> there is an item in the KUID table for a mesh library - Class 33/1 body textures,<kuid:283805:33102>. That tells you that the asset is getting its skins from that library. The asset has a mesh-table container Default mesh that has a series of effects. In this case, there is no one simple texture effect such as main - the library appears to contain separate textures, such as bodyside, cab, cabroofs, cabdoorslower etc, sone which come in three versions, which are controlled by scripting.

In this case I would recommend that you clone the library (<kuid:51536:4533>) and make the changes to your textures in the clone. Then update the traincar asset to replace <kuid:283805:33102> in the kuid table with your clone kuid texture library. Do not change the key name in the kuid table ('34' in this case).

The texture selection for this traincar seems to be based on the weather.
 
Back
Top