Moving the route point of origin and it's relative tiles.

Are you thinking about building your own route? or are you already in progress? Talk to the experts in here and find out the best way to do things!

Moderator: Moderators

Locked
User avatar
SummerADDE
Getting the hang of things now
Posts: 39
Joined: Sun Sep 08, 2013 8:15 pm
Location: Stockholm, Sweden
Contact:

Moving the route point of origin and it's relative tiles.

Post by SummerADDE »

Hello! I have been building a route for a while and had my route Point of origin in a specific location.

But Now, I want to move it to a new location that is supposed to be shared with some future routes.

There is a possible way to do this, but as he say, the process should be automated, and I am wondering if someone would write such a program that would move tiles to new places somehow? and also re-arrange the lat/long coordinates inside the editor as well.

The new location shouln't be exact, but the current Point of origin are at Trondheim, I want to move it to Östersund, and then have other future routes share theese new coordinates.

I also need this in order to join 2 or 3 nearby routes together and they all have their own route Point of origin. some of them are rather small and easy to move manually using the tile method, but I would be happy if I mananged to automate this process, or if someone could find an solution.

(Or other than that, perhaps you should help me out with an PHP code that can rewrite some rows in such tiles? I am trying to sole this out myself, but as I am just only an amateur web develooper and only can write in HTML and PHP, that's why it is my preferred method.)

//ADDE
brysonman46
Very Active Forum Member
Posts: 2047
Joined: Sun Jul 21, 2013 10:30 am
Location: Larbert Central Scotland

Re: Moving the route point of origin and it's relative tiles.

Post by brysonman46 »

The "tile" method is OK, up to a point. Where you will come unstuck is with the most important file in any route - tracks.bin. This contains not only all the properties of each section of track, but also the type, location, and attributes of all the infrastructure (signals, markers, interactive assets, etc). For each example of these, there are global and local X and Y coordinates (the global being the tile references, the local being the offsets from the centre of the tile). Any automated program would need to take all these into account, not just the references at the start of the "ordinary" tiles. I have joined a number of routes, but all pairs have had the same origin. My one attempt to join 2 small ones with separate origins crashed because i missed some references in the tracks.bin. It has been my experience that track laying takes up far less time than scenery laying, so I have "joined" 2 routes ("target" and "other") with different origins by relaying track in the target (to match that in the other route), and then doing the "tile renumber" from other to target (just scenery and mixmap - the terrain is best obtained straight from DEM data, and much would be there already in the target route). It is possible to capture a whole tilesworth of assets by "switching off" adjoining tiles, and track, and using the lasso tool; then move to a new location using Google Earth overlay as the guide. Fiddly but doable. Again, only suitable for densely populated areas (>500 assets).
I wish you luck
User avatar
3DTrains
Very Active Forum Member
Posts: 1090
Joined: Wed Nov 20, 2002 11:08 am
Location: Another Planet
Contact:

Re: Moving the route point of origin and it's relative tiles.

Post by 3DTrains »

I too would like to move all tiles in my route - perhaps only a half dozen east or south. A bug exists in TS where a multi-colored line follows along a particular latitude whenever distant terrain textures are present (disappears from view as you approach, but returns as you move away from the affected area). DTG have been aware of the problem since distant terrain was possible in TS, but with TSW on the way, it's unlikely the bug will ever be quashed.
Cheers!
Marc - 3DTrains

Image
User avatar
longbow
Very Active Forum Member
Posts: 3608
Joined: Mon Mar 18, 2002 12:00 am
Location: Noosa, Australia
Contact:

Re: Moving the route point of origin and it's relative tiles.

Post by longbow »

Presumably displacing the route origin by a whole number of tiles would be much easier to do.
User avatar
SummerADDE
Getting the hang of things now
Posts: 39
Joined: Sun Sep 08, 2013 8:15 pm
Location: Stockholm, Sweden
Contact:

Re: Moving the route point of origin and it's relative tiles.

Post by SummerADDE »

I have checked the tracks.xml and I am noticing that it also have alot of tile references similar to the individual tiles. Theese could be able to move around similarly to the individual tiles themselves. Not sure if that is enough but I will make it a try and see if I mananged to move some tracks that way. Not sure about the other two .bin files as my target route have too less roads and lofts and only a few rows in the main files...
brysonman46
Very Active Forum Member
Posts: 2047
Joined: Sun Jul 21, 2013 10:30 am
Location: Larbert Central Scotland

Re: Moving the route point of origin and it's relative tiles.

Post by brysonman46 »

SummerADDE wrote:I have checked the tracks.xml and I am noticing that it also have alot of tile references similar to the individual tiles. Theese could be able to move around similarly to the individual tiles themselves. Not sure if that is enough but I will make it a try and see if I mananged to move some tracks that way. Not sure about the other two .bin files as my target route have too less roads and lofts and only a few rows in the main files...
This subject has been the topic of a recent thread, see http://forums.uktrainsim.com/viewtopic. ... 1&t=147023

The roads.bin and lofts.bin files are vestiges from the original set up. I think they were designed to act in the same way as tracks.bin. This did not happen, so they can be ignored.
You started this thread some 4/5 months ago. In that time, you could have rebuilt your original route (as you say it was small) at your chosen start location!
User avatar
SummerADDE
Getting the hang of things now
Posts: 39
Joined: Sun Sep 08, 2013 8:15 pm
Location: Stockholm, Sweden
Contact:

Re: Moving the route point of origin and it's relative tiles.

Post by SummerADDE »

brysonman46 wrote:
SummerADDE wrote:I have checked the tracks.xml and I am noticing that it also have alot of tile references similar to the individual tiles. Theese could be able to move around similarly to the individual tiles themselves. Not sure if that is enough but I will make it a try and see if I mananged to move some tracks that way. Not sure about the other two .bin files as my target route have too less roads and lofts and only a few rows in the main files...
This subject has been the topic of a recent thread, see http://forums.uktrainsim.com/viewtopic. ... 1&t=147023

The roads.bin and lofts.bin files are vestiges from the original set up. I think they were designed to act in the same way as tracks.bin. This did not happen, so they can be ignored.
You started this thread some 4/5 months ago. In that time, you could have rebuilt your original route (as you say it was small) at your chosen start location!
Yes, i could, but I am not a guy that builds stuff twice (and I was busy doing other stuff theese 4 months so I was off for a while), and there is this problem, there are new beginner users that starts building routes without doing proper research. I know someone who built loads and loads of tracks and senery and want to merge Another nearby route with it. it was at that Point he realized it is not possible unless he needs to move the tiles.

I have learned my lession for the future, but the past mistakes are still there and I want to fix that. as PHP language is my best expertise I cannot apptemt to write my own "tile mover" porgram to do what I am asking for. (trust me, I have apptempted to do that, but it just makes it harder the more I try, and it would only automate the renaming of files and it's content within...

This is really easy if we ignores coordinates and just concentrate to make a program that renumbers tiles to make it more compatible to merge different routes too. (at least that is what I want to belive)
Locked

Return to “[TS] Route Building”