adding attacthments to the train cars

jamal17

Subways and railroads
I'm using PEV's attatchment tool maker and i want to know how to add bloodnok's spark effect to any of magicland's NYCTA subway cars instead of adding it to the bogey. i put it where the spark would appear with the bogey, but the config.txt file is the problem and how to activate it.
 
Hi jamal --

I added a spark attachment point to the New Haven box cab locomotive that was uploaded to the DLS a while back.

The link to my modified version is here:

http://www.humyo.com/FXghCLn/Sharing/Loco_NH_EY-2a_Boxcab.cdp?a=J9QdUtdUVMM

If you download and install it you will see the script and text entires that have been added to the config.txt file.

I would think that what you are trying to do is very similar, but whereas my sparks are at pantograph height your are at rail height, and off centre.

Tell me if this helps.

Phil
 
You place the attach_mesh.im in a attachments container below the mesh-table and at the same indenture level as the default tag. Here is an example:

mesh-table
{
default
{
mesh xxxxxxxxx
auto-create 1
}
attachments
{
mesh "attach_mesh.im"
auto-create 1

effects
{
0
{
kind "corona"
att "a.spark1"
texture-kuid <kuid:60850:99999>
object-size 0.1
frequency 0.5
directional 0
}

1
{
kind "corona"
att "a.spark2"
texture-kuid <kuid:60850:99999>
object-size 0.1
frequency 0.5
directional 0
}
}
}
}

Bob
 
If you have attachment points created with PEV's Attachment Maker for a traincar, then the syntax for the traincar's config.txt file is the same except for the attachment points names.
Or, am I not understanding your question?

Bob
 
i tried to add my spark attatchments to the train car and this is what i got:
Error: Unable to commit changes to asset <kuid:58843:323> as the config file contains the wrong KUID
 
i fixed that last problem but now i'm getting this
Error: Unable to load mesh file: 'content hbf2sq2a602\attach_mesh.im'
 
i fixed that last problem but now i'm getting this
Error: Unable to load mesh file: 'content hbf2sq2a602\attach_mesh.im'
I think the mesh file for the spark effect, as well as the textures, have to be in the file of the loco. If the mesh is that of the attachment point, then it has to be in the same place as the config file.

Hope this helps!
captainkman
 
this is what my config file for my trains look like, now can you tell me what did i do wrong?
origin "USA"
engine 1
name "NYCTA R46 Subway car"
mass 31717
script "controls"
class "R46"
company "NYCTA"
kind "traincar"

mesh-table
{
default
{
mesh "R46_body/R46_body.im"
auto-create 1

effects
{
0
{
kind "corona"
att "a.corona0"
texture-kuid <kuid:-3:10112>
object-size 0.1
}

1
{
kind "corona"
att "a.corona1"
texture-kuid <kuid:-3:10112>
object-size 0.1
}

2
{
kind "corona"
att "a.corona2"
texture-kuid <kuid:58843:3330>
object-size 0.1
}

3
{
kind "corona"
att "a.corona3"
texture-kuid <kuid:58843:3330>
object-size 0.1
}

skin
{
kind "texture-replacement"
texture "route.texture"
}
}
}

attachments
{
mesh "sparkattach_mesh.im"
auto-create 1

effects
{
0
{
kind "corona"
att "a.spark1"
texture-kuid <kuid:60850:99999>
object-size 0.8
frequency 0.5
directional 0
}

1
{
kind "corona"
att "a.spark2"
texture-kuid <kuid:60850:99999>
object-size 0.8
frequency 0.5
directional 0
}

2
{
kind "corona"
att "a.spark3"
texture-kuid <kuid:60850:99999>
object-size 0.8
frequency 0.5
directional 0
}

3
{
kind "corona"
att "a.spark4"
texture-kuid <kuid:60850:99999>
object-size 0.8
frequency 0.5
directional 0
}
}
}
 
My previous post was in error and has been deleted.
I think this is your problem. I count 14 left brackets but only 13 right brackets in your config.txt file. Try adding another right bracket at the bottom.

Bob
 
thats not really a problem its trying to get the attatch_mesh.Im to load they keep saying that trainzmeshimporter failed
 
Back
Top