Please Help, How Do I Recreate A Accidentally Deleted Landscape Tile

Discussion in 'PC Editor Discussion' started by Trainspotting Norden, Nov 21, 2024.

  1. Trainspotting Norden

    Trainspotting Norden Well-Known Member

    Joined:
    Nov 7, 2023
    Messages:
    165
    Likes Received:
    319
    Hi,
    I accidentally deleted a Landscape Tile on my Route Hannover-Hamburg. I am getting frustrated because no one could help me with my problem. Although there is a Thread on this already where the same problem was solved, that doesn't work for me. I have the coordinates of the missing tile, is there maybe a command how to regenerate the tile or how do I tell the tile creating tool to just create a new tile in this one spot? For some reason I only get it to create a tile at 0,0. How would I tell it to create a tile at my tile coordinates?
    In the spot where the tile used to be nothing was built yet, so it is empty. I dont need the new tile to follow my geodata, a flat tile would get the job done. Just someone please help me to fix this, I am really frustrated with this problem. :( This has taken all my motivation to continue building as long as this tile Problem isn't fully fixed.
    Thanks to everyone helping me :) Bild.jpeg
     
  2. Lulon

    Lulon Active Member

    Joined:
    Dec 3, 2017
    Messages:
    111
    Likes Received:
    120
    I think what might work is to just use the command again to create tiles near your kml path.
    But I don't remember what that command was. I only remember there was one command for creating landscape tiles and one for creating track tiles or something.
    So if only the landscape tile is missing just run the command to create all landscape tiles around your kml path. As parameter I think only 1 km would be enough. The command would not overwrite existing tiles. It would just recreate in the missing tiles.
    If you select your SRTM tiles, it should also apply SRTM immediately.
    I assume you created your tiles with a command like that in the first place so you should have a KML with a path, not only locations.
    But please back up your route before trying this.
     
  3. Trainspotting Norden

    Trainspotting Norden Well-Known Member

    Joined:
    Nov 7, 2023
    Messages:
    165
    Likes Received:
    319
    sadly that did not work, I created a new KML path that just covered the area around the hole. Tiles generated somewhere, but no there. DTG Alex could you please help me with this? Thanks :)
     
    Last edited: Nov 23, 2024
  4. RobertSchulz

    RobertSchulz Well-Known Member

    Joined:
    Oct 10, 2023
    Messages:
    1,863
    Likes Received:
    2,613
    Do you know the xy coordinate of the tile? When you go into the Tiles folder of the map, is the LT tile with the coordinate inside of it?
     
    Last edited: Nov 23, 2024
  5. Trainspotting Norden

    Trainspotting Norden Well-Known Member

    Joined:
    Nov 7, 2023
    Messages:
    165
    Likes Received:
    319
    yea, I know the coordinates. And yes, they are in the tile folder still
     
  6. RobertSchulz

    RobertSchulz Well-Known Member

    Joined:
    Oct 10, 2023
    Messages:
    1,863
    Likes Received:
    2,613
    Delete the LT and ST tile (But not the TT and TS) for the coordinate tile and run the command to generate the landscape tiles again. Make sure the kml and SRTM is selected.

    Before you delete them, make a backup of the tiles folder by copy it to somewhere else.
     
  7. Trainspotting Norden

    Trainspotting Norden Well-Known Member

    Joined:
    Nov 7, 2023
    Messages:
    165
    Likes Received:
    319
  8. Trainspotting Norden

    Trainspotting Norden Well-Known Member

    Joined:
    Nov 7, 2023
    Messages:
    165
    Likes Received:
    319
    for some reason, I only have ST tiles, how do I get the rest? That would explain a lot of problems ;). So to explain a little more, what I did now was select both SRTM and kml. Then I used the DTG command to generate tiles around the line in the kml. Nothing happened again. I could technically generate all Landscape tiles again (around 3000-4000), but the I would have double tile, wouldn't I?
    Thanks for helping out :)
     
    Last edited: Nov 24, 2024
  9. RobertSchulz

    RobertSchulz Well-Known Member

    Joined:
    Oct 10, 2023
    Messages:
    1,863
    Likes Received:
    2,613
    You definitely not only have ST tiles. Because if so, in the screenshot above I wouldn't see any landscape and tracks at all. So I guess either the Editor doesn't show them in its browser (the bug which made some files disappear) or you need to scroll down to find them.

    Anyway, check the Tiles folder in Windows Explorer. You'll definitely find all tiles listed there, if they don't visually appear in the Editor.

    -------------------------------------------------------------------------------------------------------------

    It maybe would be helpful to give a short explanation of the tiles by the way, so it comes more clear what they are. All of this to my understanding of them.

    For every coordinate, you have 4 tile types. LT, ST, TT and TS.

    LT = Landscape Tile = the landscape on its own
    ST = Scenery Tile = blueprints, meshes and foliage you place onto the landscape
    TT = Track Tile = tracks
    TS = Track Scenery Tile = blueprints and meshes you add in Network Edit mode (signals, switches, OHLE etc.)

    LT and ST tiles are generated with the command
    ts2ed.experimental.CreateSceneryAndLandscapeTilesFromKML 3

    TT and TS tiles are generated with the command
    ts2ed.experimental.CreateTrackTilesFromKML 1

    With the digit after the command one adjusts the range how far away tiles are created from the KLM line in kilometers. I simply used the numbers Lukas used in the masterclass video here.

    The landscape and scenery tiles obviously need to be farther away from the kml line, 3 kilometers. Track tiles we only need close to the kml line (where our route runs along), so 1 km is fine.

    So if you executed both of these commands at the start of your project, you should have all 4 of these tile types. Otherwise, you wouldn't have been able to have a landscape, place tracks and scenery at all.

    Aside that Route building mode, of course "needs to know" where tiles are being created, you need to press "Use selected assets" for the kml file (and the SRTM in order to generate the landscape with Non-Lidar DEM). But this is something you should also have done at the start of the project, so nothing new.

    However, what is new is that I told you to delete the LT and ST tiles for the tile which is missing, because I think there is a problem with them, causing not to show the tile up in the Editor.

    The reason why I say to only delete the LT and ST tiles is because the TT and TS tiles are handled invividually and don't seem to be broken as the most of the tracks are spawned correctly in the screenshot above. Deleting the TT and TS tiles would erase all your progress with track laying for the missing tile and is IMHO not necessary. Your issue is with the landscape, not the tracks.

    So, go into the Windows Explorer and delete the LT and ST tile for the missing tile. Then after you did that, do the same as once at the beginning of your project by using "Use Select Assets" for the kml and SRTM files and then run the command ts2ed.experimental.CreateSceneryAndLandscapeTilesFromKML 3


    I did that already and it didn't created doubled tiles, no.

    I used it to extend my landscape, as I wanted to go farther than initially planned for the project. I added the lines in the original kml file, used the new kml file and did all of the tile generation process with the commands again. Worked fine.

    But before you do that, always do backups of your project. I did that from the very start. In case, I were in your problem with a deleted tile, I just simply could go back to a previous version of my plugin on my backup drive and replace the old LT and ST tiles with the faulty current ones without the need to redo the tile creation process again.

    This would have saved you a lot of time and trouble.

    If you didn't do that already, I think its now the time to at least start with backup your plugin regularly from now on.
     
    Last edited: Nov 25, 2024
    • Helpful Helpful x 1
  10. Trainspotting Norden

    Trainspotting Norden Well-Known Member

    Joined:
    Nov 7, 2023
    Messages:
    165
    Likes Received:
    319
    Thank you so much, that Finally worked! :)
     

Share This Page