Messed with it today, after much trial and error, was able to get the mesh and the fans to show up in game, however can not get the new textures to show up, belive part of it has to do with the Reskin.gs, which I have never really messed with the gs file thing before. What I have is showing up with an aerror not sure what I typed wrong. Thanks for any help.
// reskin.gs
include "MapObject.gs"
class reskin isclass MapObject {
public void Inut(void)
SetFXTextureReplacementTexture("main", "new.texture");
{
};
Here is the config file
kuid <kuid:327871:100104>
username "inwork sd 2 test"
kind "traincar"
trainz-build 2.9
engine 1
mass 190508
max-tractive-effort 560475
interior <kuid:523:666>
enginespec <kuid:-1:42004221>
enginesound <kuid:-1:42003000>
hornsound <kuid:-1:42003101>
smoke_shade 0.3
smoke_random 2.5
smoke_slowlife 6
smoke_fastlife 0.8
smoke_height 1.7
smoke_fastspeed 1
fonts 2
fonts-path "SD40-2"
description "in work sd40-2"
category-era "1970s;1980s;1990s;2000s"
category-region "US"
class "reskin"
script "reskin.gs"
category-class "ZX"
mesh-table
{
default
{
mesh "SD40-2.lm"
auto-create 1
mesh-asset <kuid2:523:156564:1>
effects
{
kind
{
kind "texture-replacement"
texture "new.texture"
}
}
}
fan-0
{
mesh "fan_lod0.im"
anim "fan_lod0.kin"
auto-create 1
att "a.fan0"
att-parent "default"
animation-loop-speed 1
mesh-asset <kuid2:523:156564:1>
}
fan-1
{
mesh "fan_lod0.im"
anim "fan_lod0.kin"
auto-create 1
att "a.fan1"
att-parent "default"
animation-loop-speed 1
mesh-asset <kuid2:523:156564:1>
}
fan-2
{
mesh "fan_lod0.im"
anim "fan_lod0.kin"
auto-create 1
att "a.fan2"
att-parent "default"
animation-loop-speed 1
mesh-asset <kuid2:523:156564:1>
}
fan-3
{
mesh "fan_lod0.im"
anim "fan_lod0.kin"
auto-create 1
att "a.fan3"
att-parent "default"
animation-loop-speed 1
mesh-asset <kuid2:523:156564:1>
}
fan-4
{
mesh "fan_lod0.im"
anim "fan_lod0.kin"
auto-create 1
att "a.fan4"
att-parent "default"
animation-loop-speed 1
mesh-asset <kuid2:523:156564:1>
}
shadow
{
mesh "shadow/sd40-2_shadow.im"
}
}
bogeys
{
0
{
reversed 0
bogey <kuid:523:156567>
}
1
{
reversed 0
bogey <kuid:523:156565>
}
}
kuid-table
{
0 <kuid:523:156567>
1 <kuid:523:156565>
2 <kuid:523:666>
3 <kuid:-1:42004221>
4 <kuid:-1:42003000>
5 <kuid:-1:42003101>
}
thumbnails
{
0
{
image "thumbnail.jpg"
width 240
height 180
}
}