Does the "autoname" tag work in TRS19?

Pendolino

Cab mode weirdo
Years ago I made an asset to locate assets I wanted to remove/replace, especially small ones (did you ever try to find where a flower pot is on a route?). It consists of a 100 m (330ft) high magenta-yellow cylinder and I added the "autoname" tag set to 1, so that every instance of the asset was identified as follows, as stated in the Wiki:

Objects are auto-named with their localised asset name followed by a number (eg. "Tree 10").

I replaced the unwanted asset using the mass replacement tool and then located all the instances of my "Trova-oggetti" (Object Finder, in English) using "Find Object".

Today, I tried to find an [unprintable] track spacing template coming from a long deceased website on a 90 km route to remove it: I replaced it, but the Object Finders (2 instances) were not named. I found them anyway (they are fairly visible), but I I had to go across more than a hundred baseboards to locate them.

So, my question is: does the "autoname" tag still work?

Thanks in advance
 
A couple images to better explain this issue.

In TS12, the asset is properly named as "Trova oggetti N" and the name is shown in the "Properties" window. It can be found with the "Find Object" command and is shown on the mini-map:

pendolino-20250305-0000.jpg


In TRS19, the object is NOT named, according to the "Properties" window, is not shown in the map and cannot be located through the "Find Object" tool.

Screenshot-2025-03-05-231249.png


Are there any working assets using the "autoname" tag?
 
Added the tag to my Missing Asset cube
tested in build TRS19 100240 (where i do all my work)
and in the newest Plus build 129139

In both cases it generates the name of the item + a number
ty for the great idea
never too old to learn
greetings GM
 
Glad to be of help! It is a very useful asset indeed.

I work on TRS19 117009, perhaps the issue is limited to this version, since you have it working in 100240 and 129139.

This is the config file of the asset: is it different from yours?

kind "scenery"
kuid <kuid2:69593:50013:1>
username "Trova-oggetti"
trainz-build 3.3
category-class "BS"
category-region "IT"
category-era "1800s"

mesh-table
{
default
{
mesh-asset <kuid:69593:49022>
mesh "superpalo.im"
auto-create 1
}
}
autoname 1
description "Oggetto ad alta visibilità per localizzare altri oggetti"
author "Pendolino"
contact-website "www.trainzitalia.com"
license "Freeware.
Repaint, modifiche e pubblicazioni su altri siti richiedono il consenso esplicito dell'autore o dello Staff di TrainZItalia.

Freeware.
Any repaint, alteration or upload on other websites require explicit permission by the author or by the TrainZItalia Staff."

thumbnails
{
0
{
image "$screenshot$.jpg"
width 240
height 180
}
}
category-keyword "tzit-free;utility"

kuid-table
{
0 <kuid:69593:49022>
}

there is a single "strange" feature, i.e. the use of a mesh-library, as I also made trackside and spline versions to locate such assets. I don't think the mesh-library is the cause of the trouble, however, as the yellow-green cylinder in the TS12 screenshot above does not use it and does not work as well in TRS19 :( .
 
Carlo,

I use the same edition of TRS19 as you have (build 117009) and I have performed a similar test of the autoname tag as you described. It worked as intended.

The screenshots below show my scene before and after I bulk-replaced a stack of 6 instances of JR building #10 (a simple Kind scenery asset) with my "Dummy scenery asset". The Find Object tool correctly lists all instances of the Dummy asset and zooms to each instance's location when its name is selected in the Find Object panel.

The dummy asset has a trainz-build of 3.9, is not dependent on a mesh library and has name effects in the mesh table. I don't know if those differences between your set-up and mine are significant in this context, but they could be tested. Its full config is at bottom of this post.

UNYEnmb.jpg


BMt2l2z.jpg


kuid <kuid:68213:39019>
username "Dummy scenery asset"
kind "scenery"
trainz-build 3.9

mesh-table
{
default
{
mesh "dummy.im"
auto-create 1

effects
{
text_label_1
{
kind "name"
fontcolor 0,0,0
fontsize 0.5
att "a.name0"
name "Dummy scenery asset"
}

text_label_2
{
kind "name"
fontcolor 0,0,0
fontsize 0.5
att "a.name1"
name "Dummy scenery asset"
}
}
}
}
autoname 1
category-keyword "non-dls;test;tools"
category-class "BS"
category-era "1800s"
category-region "00"
description "A 20m-tall dummy object to help locate all instances of any Kind scenery asset on a Route.

Instructions:
-In Surveyor, select the scenery asset you want to locate.
-Bulk replace it with this Dummy scenery asset.
-Open the Find Object tool (Ctrl-F). Its panel will list all instances of the Dummy scenery asset on the map. They will be auto-named sequentially;
Dummy scenery asset 1
Dummy scenery asset 2
Dummy scenery asset 3...etc.
-Click on any name to zoom to the location of that instance on the map.
-Move, rotate, replace or delete that instance as you wish.
-Use the Bulk Replacement tool to revert remaining instances of the Dummy asset back to the original asset or change them to another asset of your choice."
author "...."
contact-email "...."
license "Freeware, for distribution only by N3V. No publicly distributed reskins, changes to meshes or to the config.txt file. "

thumbnails
{
0
{
image "$screenshot$.jpg"
width 240
height 180
}
}

kuid-table
{
}

~ Deane
 
Last edited:
Hello @Pendolino,
I remeber to have readed that searches now shall be based on the AssetCategories. So is it possible, that the serachcodes in the category-keyword tag should be chaged to category-class codes to be searched in TR19 and upwards?
(See asset.gs lines 401ff.)
 
@Dinorius_Redundicus

Hello Deane, thanks a lot! It worked perfectly: I added an attachment point using Attachment Maker and now the Object Finder works again as intended!

This is a first prototype, using the initial version that doesn't use a mesh-library. I will try modifying the other version to see if the mesh-libray does affect the referenced assets

Screenshot-2025-03-06-122523.png


@ek.skirl

As far as I know, category-keywords work as they did before in TS12
 
Carlo,

I am interested to know what you find.

It's strange that it needs an attachment point. I didn't know that when I made my Dummy asset years ago, I just wanted it to have a visible name.

However, I have seen similar strange behavior in Kind scenery assets before. I recently made some road signs, some with editable name effects, others with no text. I found that the "snap-rotate" function only worked properly on the signs with name effects (and therefore with attachment points). It made no sense to me and the Wiki said nothing about it. So it was an accidental discovery.

A side issue. Your inserted screenshots are not displaying automatically in the forum posts, at least for me. What I see in your post is only a small icon next to a file name (example: Screenshot-2025-03-06-122523.png). If I click on the icon it tries to open a web page at i.ibb.co which sometimes fails and sometimes does open. I am using Microsoft Edge browser.
 
Last edited:
Dean,

I added the attach-mesh with the "a.name" point to the asset using the mesh-library, and it works fine. I then repeated this operation on the trackside version of the two assets (the magenta-yellow one, using the mesh-library, and the green-yellow one, which has its own mesh in the asset). Both of them work as intended.

Since both assets have the same name specified in the "effects" container, they are named sequentially on the map, regardless of their type.

There is a third asset sharing the mesh from the mesh-library, but it is a spline and - as far as I know - splines cannot be named, so it does not include the auto-name tag. On the other hand, I made it with the aim of getting rid of some ancient forest splines made of plane trees, which looked horrible in TS12. In this case, the lack of the naming feature is not essential, since a long row of magenta-yellow 100 m cylinders is visible enough for this purpose.

I usually use Chrome, but the screenshot is is properly displayed even when I switch to Edge. Can you suggest another (free) image hosting service that gives you no issues?
 
It’s good that things are working nicely now, even if the need for attachment points or effect containers seems strange and undocumented.

Regarding the screenshots, I am writing this post on an Apple iPad Mini instead of my Windows computer. It uses a browser called Safari. On this device, I see the file name of your screenshot, no icon, but a large blank area where the screenshot wants to be. So it’s not just a Microsoft Edge problem. I wonder if the connection to i.ibb.co from Australia is just too slow, regardless of the type of web browser.

The free hosting site I use is imgur.com. It does work, but it took me some time to understand their uploading and URL linking process. There are probably better-designed hosting sites out there.
 
Last edited:
Back
Top