Caution! TSRE5 can destroy your *.t files for use with OR

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Hannes44
    Senior Member
    • Nov 1999
    • 133
    • Austria.

    #1

    Caution! TSRE5 can destroy your *.t files for use with OR

    After I did a lot of ground-texturing with TSRE 0.618 everything looked fine in the program so I saved and started OR up to test drive. The result of my texturing looks like in the attached screenshot. OR gives a lot of errors like this in the log-file:

    "Expected block terrain_texslot; got error in C:\MSTS-Strecken\Pyhrnbahn\ROUTES\Steyrtalbahn\TILES\-11E0E2B0.t:byte 971

    Warning: Expected end of block terrain_texslots; got more data in C:\MSTS-Strecken\Pyhrnbahn\ROUTES\Steyrtalbahn\TILES\-11E0E2B0.t:byte 21036

    Warning: Remaining Bytes overflow in C:\MSTS-Strecken\Pyhrnbahn\ROUTES\Steyrtalbahn\TILES\-11E0E2B0.t:byte 21036

    Warning: Expected end of block terrain_shader; got more data in C:\MSTS-Strecken\Pyhrnbahn\ROUTES\Steyrtalbahn\TILES\-11E0E2B0.t:byte 21036

    Warning: Expected end of block terrain_shaders; got more data in C:\MSTS-Strecken\Pyhrnbahn\ROUTES\Steyrtalbahn\TILES\-11E0E2B0.t:byte 21036

    Warning: Expected end of block terrain; got more data in C:\MSTS-Strecken\Pyhrnbahn\ROUTES\Steyrtalbahn\TILES\-11E0E2B0.t:byte 21036"

    Strangely in TSRE still everything looks ok.

    Where is the problem?
    Attached Files
  • Hannes44
    Senior Member
    • Nov 1999
    • 133
    • Austria.

    #2
    Maybe I found a problem but I'm not sure if it is connected with the vanishing tiles: TSRE doesn't (always?) remove the newly created terrain texture files when they are replaced with run of the mill multiple usable ordinary terrtex files. I tend to put texture files I previously picked from one tile for speeds sake. If I pick coincidentally a TSRE created terrtex and put it somewhere new, there seems to be trouble; not with TSRE but with OR. The problem with picking a terrtex file is that it is sometimes impossible to determine if it is a freely useable file like e.g. JP1industrial.ace or if it is like e.g. -11e0e2b4_0_10.ace. -11e0e2b4_0_10.ace could look exactly like JP1industrial.ace if TSRE has not changed the file back and renamed it JP1industrial.ace. But OR doesn't like -11e0e2b4_0_10.ace in a place where it doesn't seem to belong. As I said I'm not sure and pity again, that I'm not allowed to post on Elvas Tower, where one could discuss such issues and hope for solutions from Goku.

    Comment

    • crstagg
      4500 Post Veteran


      • Nov 1999
      • 4885
      • Huntsville, AL
      • Texan
      • MSOR

      #3
      I noticed a post on ET this morning by a new member who had joined ET just two days ago. So there is a way to join the ET forum. Unless you have been banned. I suggest you contact Dave Nelson by email or by PM here.
      Charles

      Comment

      • GokuMK
        Senior Member

        • Oct 2015
        • 729
        • Poland

        #4
        Originally posted by Hannes44
        After I did a lot of ground-texturing with TSRE 0.618 everything looked fine in the program so I saved and started OR up to test drive. The result of my texturing looks like in the attached screenshot. OR gives a lot of errors like this in the log-file:
        Can you test this route in msts?
        Originally posted by Hannes44
        Maybe I found a problem but I'm not sure if it is connected with the vanishing tiles: TSRE doesn't (always?) remove the newly created terrain texture files when they are replaced with run of the mill multiple usable ordinary terrtex files.
        Remaining ace files is definitely not the problem. Remaining texture shaders may be. Maybe OR has lower max. shader count than TSRE and that is why it crashes?
        Originally posted by Hannes44
        If I pick coincidentally a TSRE created terrtex and put it somewhere new, there seems to be trouble; not with TSRE but with OR. The problem with picking a terrtex file is that it is sometimes impossible to determine if it is a freely useable file like e.g. JP1industrial.ace or if it is like e.g. -11e0e2b4_0_10.ace.
        Better not pick painted textures (with white borders). It definitely will cause troubles if not now, somewhere in the future.
        Last edited by GokuMK; 09-16-2016, 11:02.

        Comment

        • Hannes44
          Senior Member
          • Nov 1999
          • 133
          • Austria.

          #5
          Thanks for your answer. First I want to say that I love your RE and use it a lot to build routes, it was the cause for my returning interest in trainsimming and route building. I have some experience with MSTSRE and all its quirks. In comparison your RE is comfortable, stable and fun to use, thank you; and I beg you, do not abandon it!

          Unfortunately I cannot test the route with MSTS, I couldn't persuade it to run on my computer since Windows 7.

          I have checked the route with route riter and I attach the relevant part of the report.
          As I found in the report some jpg files mentioned (e.g. grass30.jpg) maybe these are the problem. I never used them as terrtex files though, but it is possible that I painted parts of a tile with them. I assumed there would be created an ace file after painting, and the filetype used for the brush wouldn't matter any more.

          edited: I removed all references to jpg files from the *.t files and replaced them with the default "terrain.ace" but that did change nothing.


          The report says also that microtex.ace would be missing from the route, but microtex.ace is in the terrtex folder and in the terrtex/snow folder.



          Route-Riter report:

          Terrtex file 1 0 )
          terrain_texslot ( "microtex.ace is missing from your route, no alternative is available in the other installed routes.
          Terrtex file 1 0 )
          )
          terrain_uvcalcs ( 1
          terrain_uvcalc ( 1 0 0 0 )
          )
          )
          terrain_shader ( alphaterrain
          terrain_texslots ( 1
          terrain_texslot ( "-11e0e288_10_13.ace is missing from your route, no alternative is available in the other installed routes.
          Terrtex file 1 0 )
          )
          terrain_uvcalcs ( 1
          terrain_uvcalc ( 1 0 0 0 )
          )
          )
          terrain_shader ( alphaterrain
          terrain_texslots ( 1
          terrain_texslot ( "-11e0e2a0_0_2.ace is missing from your route, no alternative is available in the other installed routes.
          Terrtex file 1 0 )
          )
          terrain_uvcalcs ( 1
          terrain_uvcalc ( 1 0 0 0 )
          )
          )
          terrain_shader ( alphaterrain
          terrain_texslots ( 1
          terrain_texslot ( "-11e0e2b4_14_2.ace is missing from your route, no alternative is available in the other installed routes.
          Terrtex file 1 0 )
          )
          terrain_uvcalcs ( 1
          terrain_uvcalc ( 1 0 0 0 )
          )
          )
          terrain_shader ( alphaterrain
          terrain_texslots ( 1
          terrain_texslot ( "forest00_basic.ace is missing from your route, no alternative is available in the other installed routes.
          Terrtex file grass11.jpg" 1 0 )
          terrain_texslot ( "microtex.ace is missing from your route, no alternative is available in the other installed routes.
          Terrtex file grass2.jpg" 1 0 )
          terrain_texslot ( "microtex.ace is missing from your route, no alternative is available in the other installed routes.
          Terrtex file grass30.jpg" 1 0 )
          terrain_texslot ( "microtex.ace is missing from your route, no alternative is available in the other installed routes.
          Terrtex file grass30.jpg" 1 0 )
          )
          terrain_uvcalcs ( 1
          terrain_uvcalc ( 1 0 0 0 )
          )
          )
          terrain_shader ( alphaterrain
          terrain_texslots ( 1
          terrain_texslot ( "grass2.jpg" 1 0 )
          )
          terrain_uvcalcs ( 1
          terrain_uvcalc ( 1 0 0 0 )
          )
          )
          terrain_shader ( alphaterrain
          terrain_texslots ( 1
          terrain_texslot ( "grass11.jpg" 1 0 )
          )
          terrain_uvcalcs ( 1
          terrain_uvcalc ( 1 0 0 0 )
          )
          )
          terrain_shader ( alphaterrain
          terrain_texslots ( 1
          terrain_texslot ( "forest00_basic.ace is missing from your route, no alternative is available in the other installed routes.
          Terrtex file 1 0 )
          )
          terrain_uvcalcs ( 1
          terrain_uvcalc ( 1 0 0 0 )
          )
          )
          terrain_shader ( alphaterrain
          terrain_texslots ( 1
          terrain_texslot ( "-11e0e288_10_13.ace is missing from your route, no alternative is available in the other installed routes.
          Terrtex file 1 0 )
          )
          terrain_uvcalcs ( 1
          terrain_uvcalc ( 1 0 0 0 )
          )
          )
          terrain_shader ( alphaterrain
          terrain_texslots ( 1
          terrain_texslot ( "-11e0e2a0_0_2.ace is missing from your route, no alternative is available in the other installed routes.
          Terrtex file 1 0 )
          )
          terrain_uvcalcs ( 1
          terrain_uvcalc ( 1 0 0 0 )
          )
          )
          terrain_shader ( alphaterrain
          terrain_texslots ( 1
          terrain_texslot ( "-11e0e2b4_14_2.ace is missing from your route, no alternative is available in the other installed routes.
          Terrtex file 1 0 )
          )
          terrain_uvcalcs ( 1
          terrain_uvcalc ( 1 0 0 0 )
          )
          )
          terrain_shader ( alphaterrain
          terrain_texslots ( 1
          terrain_texslot ( "forest00_basic.ace is missing from your route, no alternative is available in the other installed routes.
          Terrtex file grass11.jpg" 1 0 )
          terrain_texslot ( "microtex.ace is missing from your route, no alternative is available in the other installed routes.
          Terrtex file grass2.jpg" 1 0 )
          terrain_texslot ( "microtex.ace is missing from your route, no alternative is available in the other installed routes.
          Terrtex file grass30.jpg" 1 0 )
          terrain_texslot ( "microtex.ace is missing from your route, no alternative is available in the other installed routes.
          Terrtex file grass30.jpg" 1 0 )
          )
          terrain_uvcalcs ( 1
          terrain_uvcalc ( 1 0 0 0 )
          )
          )
          terrain_shader ( alphaterrain
          terrain_texslots ( 1
          terrain_texslot ( "grass2.jpg" 1 0 )
          )
          terrain_uvcalcs ( 1
          terrain_uvcalc ( 1 0 0 0 )
          )
          )
          terrain_shader ( alphaterrain
          terrain_texslots ( 1
          terrain_texslot ( "grass11.jpg" 1 0 )
          )
          terrain_uvcalcs ( 1
          terrain_uvcalc ( 1 0 0 0 )
          )
          )
          terrain_shader ( alphaterrain
          terrain_texslots ( 1
          terrain_texslot ( "forest00_basic.ace is missing from your route, no alternative is available in the other installed routes.
          Last edited by Hannes44; 09-16-2016, 15:00.

          Comment

          • Hannes44
            Senior Member
            • Nov 1999
            • 133
            • Austria.

            #6
            As I could not repair the *.t files I replaced the with files from a backup. Now terrain is back, unfortunately I have to redo a lot of terrain work. Teaches me, to be extra careful when chosing textures for painting terrtexes

            Comment

            • GokuMK
              Senior Member

              • Oct 2015
              • 729
              • Poland

              #7
              You can send me your route if it is small and I will look closer to it.
              Maybe the .jpg files in T file was the problem? My editor supports many texture types (ace, jpg, png ... etc), OR not.
              When you replaced .jpg entries in .t file with "terrain.ace" using text or hex editor, the .t file is fully damaged because you can't edit binary files this way ( they have precalculated byte sizes for each element ).
              You should replace .jpg entries with proper .ace entries (the same name) and that might fix the .t file.

              Comment

              • GokuMK
                Senior Member

                • Oct 2015
                • 729
                • Poland

                #8
                and the filetype used for the brush wouldn't matter any more
                For the brush you can use any texture type. The result will be new .ace texture.
                But if you want to put texture on tile, use only .ace textures.

                Comment

                • Hannes44
                  Senior Member
                  • Nov 1999
                  • 133
                  • Austria.

                  #9
                  Thanks! Suggestion: Would it be possible to insert the name of the texture-file "in use" including the type suffix, maybe in the texture window? It would make texturing a lot more secure and easier.

                  Comment

                  • Hannes44
                    Senior Member
                    • Nov 1999
                    • 133
                    • Austria.

                    #10
                    I have to reply to this thread just once more because I am not able to post on Elvastower, but I find it really offensive of some "rickloader" character to call this thread "silly" in a post on Elvastower forum from 09/21.
                    I still think that there is a real danger in putting a jpg file inadvertently on a tile and that way crashing the *.t file. The users of a software should be aware of this possibility and the author should have the opportunity to safeguard the unwelcome input. I don't understand what's "silly" in informing users and author of an obvious problem. But I'm fed up with those "knowsitalls" judging obviously without knowing the details.

                    Comment

                    • mrmosky
                      New Member
                      • Nov 2016
                      • 8
                      • General

                      #11
                      I would just like to confirm that I had this problem too. It turned out to be caused when you paint a tile with another texture, and then copy that tile into another position. Goku has fixed this in the latest version.
                      Cheers,
                      Geoff

                      Comment

                      • Hannes44
                        Senior Member
                        • Nov 1999
                        • 133
                        • Austria.

                        #12
                        Unfortunately I have to 'resurrect' this thread. It happened to me again. In TSRE5 I loaded a map and used "Make Tile Texture from Map".
                        Then I became curious, if I could paint on top of the imported tile map, - I could not, but somehow the corresponding *.t file got messed up. The problem is more serious than last time, because it doesn't help to substitute the *.t file with an older backup file. What can I do, to restore the route without deleting everything I built since the backup? Help much appreciated.

                        Forgot to mention: in tsre5 v0.6905 everything looks normal.
                        Last edited by Hannes44; 05-04-2017, 00:58.

                        Comment

                        Working...