Error: The tag 'rem:' is not permitted

gremlin1812

New member
G'Day All, I have come up against this error and am not sure what should be done, using TRS2006.

Error: The tag 'rem:' is not permitted within this container. (Container type 'turntable')
kuid <kuid:60856:28001>
kind "turntable"
region "Belgique"
light 1
mode0 "rotonde1_pit"
mode1 "rotonde1_spinner"
type "Gare"
obsolete-table {
}
rem: "0*1* 2* 3* 4* 5* 6* 7* 8* 9* 10* 11* 12* 13* 14* 15* 16* 17* 18* 19* 20* 21* 22* 23* 24* 25* 26* 27* 28* 29* 30* 31* 32* 33* 34* 35* 36* 37* 38* 39* 40* 41* 42* 43* 44* "
angle 0,7.5,15,22.5,30,37.5,45,52.5,60,67.5,75,82.5,90,97.5,105,112.5,120,127.5,135,142.5,150,157.5,165,172.5,180,187.5,195,202.5,210,217.5,225,232.5,240,247.5,255,262.5,270,277.5,285,292.5,300,307.5,315,322.5,330,337.5,345,352.5,360
track <kuid:64819:38000>

Any ideas on fixing this one, I manage to fix most but this one has me stumped.
Regards
Barrie
 
Or just remove this bit:

rem: "0*1* 2* 3* 4* 5* 6* 7* 8* 9* 10* 11* 12* 13* 14* 15* 16* 17* 18* 19* 20* 21* 22* 23* 24* 25* 26* 27* 28* 29* 30* 31* 32* 33* 34* 35* 36* 37* 38* 39* 40* 41* 42* 43* 44* "

Many errors for incorrect tags can be solved by just removing the tags.

Paul
 
hi,
The problem is the colon right after the "rem". It should be removed or, at least, there should be a space between rem and the colon.. The program is reading "rem:" instead of "rem" so it sees it as an error.
Cheers
Gilles
 
What you've listed is part of an asset's config.txt file. The asset's creator has attempted to specify a section of text as being a comment but unfortunately has used the wrong keyword.

rem is used to introduce a comment in the BASIC programming language (short for "remark").

Two forward slashes (//) are used to introduce a comment in the C programming language, and therefore also in GameScript/TrainzScript because that is effectively an extension of C.

Neither of the above are correct in Trainz config.txt files.

In Trainz config.txt files comments should be introduced with a semi-colon ( ; ).

As the comment should be ignored by Trainz, you have various options to correct it, of which the three most obvious are:
1. Add a semi-colon before the rem
or 2. Delete the rem and replace it with a semi-colon
or 3. Delete the entire comment

As the comment is lengthy and it isn't clear whether it extends over several physical lines or linewraps, the best solution IMHO is to delete it.

So it should now read:
Code:
kuid       <kuid:60856:28001>
kind       "turntable"
region       "Belgique"
light       1
mode0       "rotonde1_pit"
mode1       "rotonde1_spinner"
type       "Gare"
obsolete-table {
}
angle       0,7.5,15,22.5,30,37.5,45,52.5,60,67.5,75,82.5,90,9   7.5,105,112.5,120,127.5,135,142.5,150,157.5,165,17   2.5,180,187.5,195,202.5,210,217.5,225,232.5,240,24   7.5,255,262.5,270,277.5,285,292.5,300,307.5,315,32   2.5,330,337.5,345,352.5,360
track       <kuid:64819:38000>
To edit it, open the asset for editing and edit the config.txt file with Notepad. Then commit it. Apologies if that's obvious.

HTH, John
 
Last edited:
This is a long standing battle between content creators that want comments in the config files and Auran programmer(s) that don't. Technically there are no comments allowed in config files. In the past various methods of indicating comments were used and it seemed to work as they were just ignored by the game as unknown keywords. Auran itself used the // to indicate comments in some early configs (note though config files are not written in Trainz/game script, the tag/container names are unique to config files and the syntax is not the same). Auran will most likely tighten enforcement of allowed keywords even further in configs and all invalid ones will eventually be stripped out.

"rem" is a unique one though as it is an allowed keyword in engine spec configs and its only function seems to be to act as a comment. It has been used in other configs as a result. "rem:" however isn't the same. It's not a valid keyword in any config.

I'd suggest as others above that you move with the winds of change and remove the offending line since its only function is to try to serve as a comment and those are not allowed in configs.

"angle" however is a valid keyword and a necessary one unless the turntable is setup as an animation.

Bob Pearson
 
Last edited:
Barn700 is correct about the 256 character limit to a line.

I ran into that with one of my full circle roundhouses. You can have 72 tracks but you must skip a few as stopping points (4 if I remember correctly) because the number of characters required (and commas count) to setup the angles excedes 256.

Ben
 
G'Day All, thank you for all the replies. The ways of trainz config files is quite foreign to me having only had trainz for two months now and being more conversant with MSTS (which I do still use) but I am learning and I collect all of these fixes and print them out for future reference. It would be nice though if there was more information about this, I have the guide by Paul Hobbs which has helped with the more common problems.
Regards
Barrie
 
Back
Top