Brush up on region codes

REGION MASTER.axm

This script fixes a number of Kind 'map' (Route) errors relating to tag 'region' as well as deleting this tag anywhere else.

;TARDIS
;MASTER
;as at 1 Jan 19
;
-Info|START of REGION 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 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=Britain
-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=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
-Category|category-keyword||Check_region
;
-Endif
;
-Endif
;
;xxxxxxxxxx
;COMPLETION
;xxxxxxxxxx
;
;completes repairs
;
;
;
;Saves the config file for consistency and ease in maintenance and creation. See AssetX\bin\SortOrder.txt.
;
-Sort
;
-Saveconfig
;
-Info|END of REGION MASTER
;
-EXIT
;
;xxxxxxxxxxx
;DEVELOPMENT
;xxxxxxxxxxx
;
;TBD
;
-EXIT
;
;xxxx
;HELP
;xxxx
;
;For further information on this tag refer to TrainzWiki and for TANE to folder resources\validation.
;
 
Last edited:
SailorDan, your last link takes me here:
I...IND Map

The links I posted take you to the Kind 'MAP' page of the Trainz wiki, or to the 'region' tag on that page. That is the region you need to use for the routes. The references to other regions are not relevant for routes.

Replace the tag value with any region KUID, such as <kuid:-1:78032>.
 
Again, all I see at the links is the same table, no KUID numbers. But I will use ianwoodmore's script above and create my own table from it to know what the KUIDs should be. Thanks again all!
 
Again, all I see at the links is the same table, no KUID numbers. But I will use ianwoodmore's script above and create my own table from it to know what the KUIDs should be. Thanks again all!

That's the wrong way to do it. The region you select might not exist.

You change the region for a route using the Edit Route option in Surveyor. The list provided in that option are the valid regions for a route.
 
Back
Top