I have some content that I set up to use include ( "..\\[[SameName]]" ) as this was easier than manually entering dozens of include ( "..\\WagonNameHere.wag" ) however TSRE has no clue how to handle this, it just doesn't load anything from the target file of the same name (for those who don't know, if OR sees "[[SameName]]" as the filename in an include statement, it replaces that text with the name of the name of the file the include statement is contained within, which in this case is a wagon file inside the OpenRails subfolder).
The log file ends up spammed with lines like...
Obviously, [[samename]] won't exist. What should be going on here is that [[samename]] gets replaced with "gx-bf_wp2952lda.wag" as the include statement is contained within the /trains/trainset/3dtrains_wp_freight/openrails/gx-bf_wp2952lda.wag file.
Then the include statement should be interpreted as include ( "..\\gx-bf_wp2952lda.wag" ), giving a total file path of g:/or content/miniroutes/ortsfreeware/trains/trainset/3dtrains_wp_freight/openrails/../gx-bf_wp2952lda.wag which, because of the "..\" goes up one level and simplifies to: /or content/miniroutes/ortsfreeware/trains/trainset/3dtrains_wp_freight/gx-bf_wp2952lda.wag (ie: the original .wag file, not inside the OpenRails folder).
Since TSRE is looking for the wrong file, there's loads of missing information and it's impossible to assemble a consist with these particular wagons.
The log file ends up spammed with lines like...
[I] Eng.cpp 152 Base Engine "g:/or content/miniroutes/ortsfreeware/trains/trainset/3dtrains_wp_freight/openrails/gx-bf_wp2952lda.wag"
[I] FileBuffer.cpp 145 "g:/or content/miniroutes/ortsfreeware/trains/trainset/3dtrains_wp_freight/../[[samename]]" not exist
[I] FileBuffer.cpp 145 "g:/or content/miniroutes/ortsfreeware/trains/trainset/3dtrains_wp_freight/" not exist
[I] FileBuffer.cpp 145 "g:/or content/miniroutes/ortsfreeware/trains/trainset/3dtrains_wp_freight/../[[samename]]" not exist
[I] FileBuffer.cpp 145 "g:/or content/miniroutes/ortsfreeware/trains/trainset/3dtrains_wp_freight/" not exist
Then the include statement should be interpreted as include ( "..\\gx-bf_wp2952lda.wag" ), giving a total file path of g:/or content/miniroutes/ortsfreeware/trains/trainset/3dtrains_wp_freight/openrails/../gx-bf_wp2952lda.wag which, because of the "..\" goes up one level and simplifies to: /or content/miniroutes/ortsfreeware/trains/trainset/3dtrains_wp_freight/gx-bf_wp2952lda.wag (ie: the original .wag file, not inside the OpenRails folder).
Since TSRE is looking for the wrong file, there's loads of missing information and it's impossible to assemble a consist with these particular wagons.






Comment