Tag 'region' does not contain a valid kuid error

Easy fix.

What region does it say it is in the error message?

Once you get that:

1) Search for region in Content Manager. Unfortunately, there's no category "region" so you have to look for something with region in the name. You might find one that's a good match.

If you need to, you can download something from the DLS.

2) Once downloaded, or chosen from installed regions, right click on the region and choose show asset in a new window.

A new window will open up...

In the upper part is the Asset-kuid line that will open up.

3) Highlight that kuid in the open space.

4) Press CTRL+C to Copy the Kuid to memory.

Once done, you can close that window since it's no longer needed.

5) Right-click on the faulty route.
Choose Open and then Config File text.

Notepad will open up...

6) Delete the line category-region including anything to the right of it.

7) Type in region followed by a bunch of spaces (Don't use TABs) to line up your text and paste (Press CTRL+V) in the KUID you copied.

You now need to place this same kuid in the kuid-table.

8) In the kuid-table, highlight a line and press Enter

9) On the empty line, press CTRL+V to paste the kuid-number

10) Save the conifg.txt file.
11 Close Notepad.

12) Back in Content Manager, submit the route.

13) Check again for errors. If there are none, you're good to go, else check your work.
 
It sounds like Trainz is expecting the value of the region tag to be the kuid number of a Region asset. If the tag value is either empty or something like the code letters for a country (eg. UK, AU, US etc which are valid values for the category-region tag, but not the region tag) then it could trigger that error.
 
This is a text file called REGION MASTER.axm in the TARDIS suite of my repair processes that runs in ASSETX.
It contains all known errors for REGION tag that are faulty in TRAINZ.
Where there is no known valid value Content Manager uses the default value <kuid:-1:78032>.
Note that a common fault is a trailing space. You must use a kuid value NOT an alpha.
If you are not using ASSETX then chose one of the suggested region values below.

Ian

;TARDIS
;MASTER
;as at 1 Mar 21
;
-Info|START of REGION MASTER
; -Info|Called by ENVIRONMENT MASTER
; -Info|Followed by WORLD-ORIGIN MASTER
;
;This section can be run separately, or as part of ENVIRONMENT MASTER.
;
;xxxxxx
;STATUS
;xxxxxx
;
-Info|Approved
;
;
;xxxxxxxxxxxxx
;REGION MASTER
;xxxxxxxxxxxxx
;
;tag 'region' now obsolete in all kind except "map" (route).
;Some kind "map" tag 'region' have invalid alpha value.
;check for tag 'region' in Kind 'map' and bypass deletion if found.
;
;xxxxxx
;REGION - MISSING
;xxxxxx
;
;Default region if missing


-IfMatches|map|kind
-If|region=<NULL>
-Update|region|<kuid:-1:78032>
-Endif
;
-IfNot|region@
-Update|region|<kuid:-1:78032>
-Endif
;
;xxxxxx
;REGION - INVALID
;xxxxxx
;
;This is long list of instances found in Trainz assets.
;Update 'region' to kuid format
;Default region kuid <kuid:-1:78032> used where no specific kuid currently exists.
;
-If|region=Alemania
-Update|region|<kuid2:121787:90000:1>
-Endif
;
-If|region=Allemagne
-Update|region|<kuid2:121787:90000:1>
-Endif
;
-If|region="Alpes suisses"
-Update|region|<kuid:-1:78032>
-Endif
;
-If|region=AU
-Update|region|<kuid:103475:60030>
-Endif
;
-If|region=AUS
-Update|region|<kuid:103475:60030>
-Endif
;
-If|region=Australie
-Update|region|<kuid:103475:60030>
-Endif
;
-If|region=Australien
-Update|region|<kuid:103475:60030>
-Endif
;
-If|region=Australia
-Update|region|<kuid:103475:60030>
-Endif
;
-If|region="Australia "
-Update|region|<kuid:103475:60030>
-Endif
;
-If|region=Britain
-Update|region|<kuid2:386158:1239:1>
-Endif
;
-If|region=Britan
-Update|region|<kuid2:386158:1239:1>
-Endif
;
-If|region=Ca
-Update|region|<kuid:-1:78032>
-Endif
;
-If|region=Canada
-Update|region|<kuid:-1:78032>
-Endif
;
-If|region=Czechoslovakia
-Update|region|<kuid:-1:78032>
-Endif
;
-If|region=Czech Republic
-Update|region|<kuid:-1:78032>
-Endif
;
-If|region=DE
-Update|region|<kuid:150099:1005>
-Endif
;
-If|region=DDR
-Update|region|<kuid:-1:78032>
-Endif
;
-If|region=EEUU
-Update|region|<kuid:-1:78032>
-Endif
;
-If|region=EE.UU
-Update|region|<kuid:-1:78032>
-Endif
;
-If|region=England
-Update|region|<kuid2:386158:1239:1>
-Endif
;
-If|region=Etats-Unis
-Update|region|<kuid:-1:78032>
-Endif
;
-If|region=Europa
-Update|region|<kuid:-1:78032>
-Endif
;
-If|region=Europe
-Update|region|<kuid:-1:78032>
-Endif
;
-If|region=Germany
-Update|region|<kuid2:121787:90000:1>
-Endif
;
-If|region=GR_Autos
-Update|region|<kuid:-1:78032>
-Endif
;
-If|region="Gran Bretaña"
-Update|region|<kuid2:386158:1239:1>
-Endif
;
-If|region=Grande Bretagne
-Update|region|<kuid2:386158:1239:1>
-Endif
;
-If|region=Gr. Bretagne
-Update|region|<kuid2:386158:1239:1>
-Endif
;
-If|region="Morocco "
-Update|region|<kuid:-1:78032>
-Endif
;
-If|region=Mars
-Update|region|<kuid:-1:78032>
-Endif
;
-If|region=Musterregion
-Update|region|<kuid:-1:78032>
-Endif
;
-If|region=New Zealand
-Update|region|<kuid:-1:78032>
-Endif
;
-If|region=Old Time
-Update|region|<kuid:-1:78032>
-Endif
;
-If|region=Ostdeutschland/DDR
-Update|region|<kuid2:121787:90000:1>
-Endif
;
-If|region=Outer Space
-Update|region|<kuid:-1:78032>
-Endif
;
-If|region=Poland
-Update|region|<kuid:-1:78032>
-Endif
;
-If|region=Protrain Perfect
-Update|region|<kuid:150099:1005>
-Endif
;
-If|region=Queensland
-Update|region|<kuid:103475:60030>
-Endif
;
-If|region=Region DDR
-Update|region|<kuid2:121787:90000:1>
-Endif
;
-If|region=Region OldTimer [1930s]
-Update|region|<kuid:-1:78032>
-Endif
;
-If|region=Sen City UK
-Update|region|<kuid2:386158:1239:1>
-Endif
;
-If|region=Swiss_Alps
-Update|region|<kuid:-1:78032>
-Endif
;
-If|region=Swiss Alps
-Update|region|<kuid:-1:78032>
-Endif
;
-If|region=TO
-Update|region|<kuid:-1:78032>
-Endif
;
-If|region=uk
-Update|region|<kuid2:386158:1239:1>
-Endif
;
-If|region=UK
-Update|region|<kuid2:386158:1239:1>
-Endif
;
-If|region=UK 134105
-Update|region|<kuid2:386158:1239:1>
-Endif
;
-If|region=UK Age of Steam
-Update|region|<kuid2:386158:1239:1>
-Endif
;
-If|region=United Kingdom
-Update|region|<kuid2:386158:1239:1>
-Endif
;
-If|region="<US>"
-Update|region|<kuid:425968:1319>
-Endif
;
-If|region=USA
-Update|region|<kuid:425968:1319>
-Endif
;
-If|region="USA "
-Update|region|<kuid:425968:1319>
-Endif
;
-If|region=US
-Update|region|<kuid:425968:1319>
-Endif
;
-If|region=Vintage
-Update|region|<kuid:-1:78032>
-Endif
;
-If|region="Wales"
-Update|region|<kuid2:386158:1239:1>
-Endif
;
-If|region=*World Trees
-Update|region|<kuid:425968:1319>
-Endif
;
-Else
;
;xxxxxx
;REGION - OBSOLETES
;xxxxxx
;
;deletes tag 'region' in all kind except map (route)
;
-IfNot|kind=map@
-Delete|region
-Endif
;
-Endif
;
;xxxxxx
;REGION - DEVELOPMENT
;xxxxxx
;
;CHECK for additional language localisations
;
;See LOCALISATION MASTER.axm
;
;See KIND - Region.axm
;
;See WORLD-ORIGIN MASTER.axm
;
;xxxxxxxxxxxxxxxxx
;EXPAND CONTAINERS
;xxxxxxxxxxxxxxxxx
;
;TBD
;
;xxxxxxxxxxx
;COMPLETION
;xxxxxxxxxxx
;
;completes repairs
;
;
;
;Saves the config file for consistency and ease in maintenance and creation. See AssetX\bin\SortOrder.txt.
;
-Saveconfig
;
-Info|END of REGION MASTER
;
-EXIT
;
;xxxx
;HELP
;xxxx
;
;For further information on LOCALISATION and its tags and containers refer to TrainzWiki.
 
There are some weird "regions" in here.
Protrain Perfect
Outer Space
Mars?????

Where can I find Protrain Perfect on the map?
 
Easy fix.

What region does it say it is in the error message?

Once you get that:

1) Search for region in Content Manager. Unfortunately, there's no category "region" so you have to look for something with region in the name. You might find one that's a good match.

If you need to, you can download something from the DLS.

2) Once downloaded, or chosen from installed regions, right click on the region and choose show asset in a new window.

A new window will open up...

In the upper part is the Asset-kuid line that will open up.

3) Highlight that kuid in the open space.

4) Press CTRL+C to Copy the Kuid to memory.

Once done, you can close that window since it's no longer needed.

5) Right-click on the faulty route.
Choose Open and then Config File text.

Notepad will open up...

6) Delete the line category-region including anything to the right of it.

7) Type in region followed by a bunch of spaces (Don't use TABs) to line up your text and paste (Press CTRL+V) in the KUID you copied.

You now need to place this same kuid in the kuid-table.

8) In the kuid-table, highlight a line and press Enter

9) On the empty line, press CTRL+V to paste the kuid-number

10) Save the conifg.txt file.
11 Close Notepad.

12) Back in Content Manager, submit the route.

13) Check again for errors. If there are none, you're good to go, else check your work.

Issue has been rectified. Many thanks!
 
Back
Top