.
Page 2 of 2 FirstFirst 12
Results 16 to 26 of 26

Thread: Brush up on region codes

  1. #16
    Join Date
    Nov 2006
    Location
    Newcastle NSW Australia
    Posts
    6,321
     

    Default

    What a mess Auran created with the changing fortunes of origin, region, category-region-x and category-region. As to 14 = Australia? Region and category-region were never numerical (apart from 00) as far as I am aware. Why do numbers not trigger a fault, or do they? Little wonder people get confused.


    T:ANE SP4 build 105946 and TRS2019 SP1 build 105096
    Win 10, i7 5820K, 3.3 GHz, 32GB ram, GTX 980Ti, 2x512GB SSD

  2. #17
    Join Date
    Oct 2011
    Location
    New Caledonia
    Posts
    3,187
     

    Default

    Quote Originally Posted by Dinorius_Redundicus View Post
    Why do numbers not trigger a fault, or do they? Little wonder people get confused.
    We are talking about the 'region' tag in a route - references to category-region-x and category-region are irrelevant. For a route at build 2 a number is accepted because the parser will try to read it as a KUID. OP should be updating the asset to a much newer build by loading and saving from a newer version. That will either remove or alert to these sorts of error.

  3. #18

    Default

    SailorDan, your last link takes me here:
    I...IND Map


    Jump to: navigation, search
    There is currently no text in this page.You can search for this page title in other pages,or search the related logs.


    But I did search region and find something here: http://online.ts2009.com/mediaWiki/index.php/Region
    The region tag is a legacy tag valid when defined in pre-TRS2006 Trainz versions, but depending upon the Trainz-build version will be obsolescent (may give a warning or just be ignored) or obsolete (will generate an error) in newer releases of Trainz.




    Rob, the numbers I used are just the numbers in front of the letters for each country in the table. I have no idea what it means to TRAINZ if anything, but it apparently is valid for the region tag. AND, if it really is obsolete, why does Trainz not just ignore it instead of making the asset faulty? I still don't know what to replace the letters with, but random numbers appear to work... :O)

  4. #19
    Join Date
    Nov 2006
    Location
    Auran, SA, Adelaide
    Posts
    385
     

    Default

    It is indeed a bit confusing because in the past there have been different uses of the tag 'region'.

    'region' specifying a code such as "USA" or "Britain" crops up in a lot of old assets of all kinds and is actually present in some example configs in the TRS2004 ccg.

    category-region-x is introduced in the TRS2004 ccg. At some point that got shortened to category-region where several regions can be specified by the one tag e.g. category-region "RU;UA;BY;SU".

    A route can have category-region for the sake of search/filtering, and 'region' for the kuid of the kind:region asset. It wasn't always done this way so on a very old route you can find e.g. region "USA" and no reference to the kind:region asset at all.

    To hopefully make things simple:

    If the error is something like: "the tag 'region' in the container scenery is obsolete" then change it to category-region.

    If the error is: "the tag 'region' does not contain a valid kuid", then it's a route and wants a kind:region asset.

    You can sort by type in CM to find the installed kind:region assets.
    Last edited by Rob; July 7th, 2019 at 09:24 PM.

  5. #20

    Default

    Thanks Rob. It sounds like I want to use your last sentence there when fixing existing assets. At least I should be able to get an actual correct value, I hope. In the meantime if there is a link to a table with these "kind region asset" codes, I think that would be worth having out there. Thanks to all of you for your help in this! I wish my fixes could be good for everyone instead of just for me!

  6. #21
    Join Date
    Nov 2006
    Location
    Newcastle NSW Australia
    Posts
    6,321
     

    Default

    Quote Originally Posted by SailorDan View Post
    We are talking about the 'region' tag in a route - references to category-region-x and category-region are irrelevant.
    They did get enmeshed in the general confusion of this thread, so I think you know what I mean.
    T:ANE SP4 build 105946 and TRS2019 SP1 build 105096
    Win 10, i7 5820K, 3.3 GHz, 32GB ram, GTX 980Ti, 2x512GB SSD

  7. #22
    Join Date
    Nov 2006
    Location
    New Zealand
    Posts
    2,344
    Blog Entries
    7
     

    Default

    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 by ianwoodmore; July 7th, 2019 at 11:53 PM.
    N3V Beta Tester. Trainz Pioneer Council. TrainzDev Team.
    Asset X, PEVTools and TARDIS Beta Tester
    http://online.ts2009.com/mediaWiki/i...AssetX_Scripts

  8. #23
    Join Date
    Oct 2011
    Location
    New Caledonia
    Posts
    3,187
     

    Default

    Quote Originally Posted by Forester1 View Post
    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>.

  9. #24

    Default

    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!

  10. #25
    Join Date
    Oct 2011
    Location
    New Caledonia
    Posts
    3,187
     

    Default

    Quote Originally Posted by Forester1 View Post
    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.

  11. #26

    Default

    Ah! The missing piece of the equation. Thanks SailorDan, that is exactly what I needed.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •