attachment maker problem

jamal17

Subways and railroads
i have a confusing problem with this process. when I add the spark effect to a bogey for the train car it saves with only a minor problem, which is the pm file but either way the effect works with the bogey when i add the effect to it.

When i add the same effect to any traincar it always says unable to load:attach_mesh.Im why can't the attachment mesh save properly to the car? the brackets and the way the config file file is set up is okay, but saving the attachment to the train car is the problem.
 
?
origin "USA"
engine 1
name "KTA R44 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 "attach_mesh.im"
auto-create 1

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

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

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

3
{
kind "corona"
att "a.spark4"
texture-kuid <kuid:60850:99999>
object-size 0.8
directional 0
}
}
}
 
?
skin
{
kind "texture-replacement"
texture "route.texture"
}
}
}

attachments
{
mesh "attach_mesh.im"
auto-create 1
It looks like you have 1 too many closing brackets in the skin container. That puts the attachments container at the margin instead of being indented one level under the mesh-table. Try changing to:
skin
{
kind "texture-replacement"
texture "route.texture"
}
}

Bob
 
now im getting this error

Error: Unable to commit changes to asset <kuid:420392:1118> as the config file contains the wrong KUID
 
Last edited:
?
origin "USA"
engine 1
name "KTA R44 Subway car"
mass 31717
script "controls"
class "R46"
company "NYCTA"
kind "traincar"

Where is the kuid tag line? Either you omitted it or there isn't one. Can't have a kuid without a kuid tag line.

Bob
 
Just wondering since it isn't in the part of the config.txt file that you originally pasted here. Are you still having problems?

Bob
 
yes lol, a lot i'm still wondering how to work the access the effects and set up the config.txt file. its funny how i can add attachments to the bogey with no problem but when i add them to the traincar its a lot of problems.
 
Last edited:
can somebody show me a good example off what a spark attachment to a train car should look like if you incorporate in the config.txt file
 
I made an attachment mesh for magicland's subway bogies used on his NYCTA R32 and R46 cars. The mesh has 2 attachment points centered on each third rail shoe, one on the left and one on the right. The points are labeled flash1 and flash2. I added a mesh-table and the attachment points to the config.txt file in his bogie, subway,<kuid:58843:50013> as follows:

Code:
mesh-table
{
  default
  {
    mesh                                "subway.pm"
    auto-create                         1
  }
 
  attachments
  {
    mesh                                "attach_mesh.im"
    auto-create                         1
 
    effects
    {
      spark0
      {
        kind                            "corona"
        att                             "a.flash1"
        texture-kuid                    <kuid:60850:99999>
        frequency                       3
        directional                     0
      }
 
      spark1
      {
        kind                            "corona"
        att                             "a.flash2"
        texture-kuid                    <kuid:60850:99999>
        frequency                       2
        directional                     0
      }
    }
  }
}

The spark flashes are a rate determined by the frequency value. I set spark0 to 3 flashes per second and spark1 to 2 per second, just to see the effect. The sparks will only if the directional parameter is set to 0. Setting it to 1 disables the flashing. This is handy since only the shoe on the third rail side should spark.
Bob
 
will they operate the way i want them to and by that i mean, not flashing every second because it will make it look fake
 
I made an attachment mesh for magicland's subway bogies used on his NYCTA R32 and R46 cars. The mesh has 2 attachment points centered on each third rail shoe, one on the left and one on the right. The points are labeled flash1 and flash2. I added a mesh-table and the attachment points to the config.txt file in his bogie, subway,<kuid:58843:50013> as follows:

Code:
mesh-table
{
  default
  {
    mesh                                "subway.pm"
    auto-create                         1
  }
 
  attachments
  {
    mesh                                "attach_mesh.im"
    auto-create                         1
 
    effects
    {
      spark0
      {
        kind                            "corona"
        att                             "a.flash1"
        texture-kuid                    <kuid:60850:99999>
        frequency                       3
        directional                     0
      }
 
      spark1
      {
        kind                            "corona"
        att                             "a.flash2"
        texture-kuid                    <kuid:60850:99999>
        frequency                       2
        directional                     0
      }
    }
  }
}

The spark flashes are a rate determined by the frequency value. I set spark0 to 3 flashes per second and spark1 to 2 per second, just to see the effect. The sparks will only if the directional parameter is set to 0. Setting it to 1 disables the flashing. This is handy since only the shoe on the third rail side should spark.
Bob

how can i add those attachments to the cars, thats what i want to know
 
To add attachments to an existing mesh file you use PEV's AttachmentMaker. After you download it from PEV's site, http://www.members.optusnet.com.au/~villaump/pevsoft.htm and install it, go to your C:\Program Files\PEVSoft\attachmentmaker folder and double click the attachmentmaker.chm file and read the instructions and the readme.txt file. After you make the attachment points follow my example above on the edits to the kuid's config.txt file. If you have specific questions, post back.

Bob
 
i have PEV's attachment maker, thats the only program i use but i want to know how would the spark effect would look in the config.txt file of the traincar
 
Unfortunately, the spark is added as a corona which is either always on steady or flashing at a fixed rate, even when the subway car is stopped. To generate a random or intermittent flashing effect requires a script controlled spark mesh.

Bob
 
Unfortunately, the spark is added as a corona which is either always on steady or flashing at a fixed rate, even when the subway car is stopped. To generate a random or intermittent flashing effect requires a script controlled spark mesh.

Bob

how can i make a script controlled spark mesh? and how can i set it to flash at a certain time
 
I think someone wrote a script for a sparking pantagraph, not sure. You should post your script questions in the Content Creators forum.

Bob
 
Back
Top