Railway tracks
#1

Can you add railroad tracks to an existing map or do you have to do a whole new map.
If you can add tracks please let me know how.
Thanks
Relic
Reply
#2

You can add railway tracks as object but not as working ones.
Reply
#3

MOVED To correct forum section.
Reply
#4

Quote:You can add railway tracks as object but not as working ones.

This is not correct. It is possible to add working railway tracks by modding an existing map.
You would need to "unlock" the FMB in Map Editor mode.
Map Tools in the download section allow you to do this.

If it is only a small section you want to change then it can be done by editing the map_T file in a graphics editor, like Gimp or Photoshop. The way this works is as follows.

Map_T is a greyscale graphic which displays pixels in 0-255 RGB shades

RGB value 0-31 is the base land texture, as defined in the load.ini file (no roads/rails/tracks) Each pixel is 200x200m
32-63 is the base texture plus a country track
64-95 is the base texture plus rail
96-127 is the base texture plus rail plus country track
128-159 is the base texture plus highway
160-191 is the base texture plus country track plus highway
192-223 is the base texture plus rail plus highway
224-255 is the base texture plus rail plus highway plus country track

The multiple textures occur where you have road and rail etc crossing each other.
Make sure you backup the original map_T before doing any changes.

Example:- Load map_T.tga into graphics package. Use sampler tool to sample rgb colour of specific pixel. Must use a point sample not average. If rgb is 0-31 then you have a land pixel with no road/rail. Increase rgb by 32 to add a track, 64 to add rail or 128 to add a highway.

Its difficult to work out where you are on a map_T because it all looks the same. If you select rgb value 144 +/- 112 then this will select all of the road/rail and track which makes it easier to see what you want to edit.
How you actually do the sampling and selection will vary depending on the graphics package you are using.

Ashe
Reply
#5

asheshouse Wrote:
Quote:You can add railway tracks as object but not as working ones.

This is not correct. It is possible to add working railway tracks by modding an existing map.
You would need to "unlock" the FMB in Map Editor mode.
Map Tools in the download section allow you to do this.

If it is only a small section you want to change then it can be done by editing the map_T file in a graphics editor, like Gimp or Photoshop. The way this works is as follows.

Map_T is a greyscale graphic which displays pixels in 0-255 RGB shades

RGB value 0-31 is the base land texture (no roads/rails/tracks) Each pixel is 200x200m
32-63 is the base texture plus a country track
64-95 is the base texture plus rail
96-127 is the base texture plus rail plus country track
128-159 is the base texture plus highway
160-191 is the base texture plus country track plus highway
192-223 is the base texture plus rail plus highway
224-255 is the base texture plus rail plus highway plus country track

The multiple textures occur where you have road and rail etc crossing each other.
Make sure you backup the original map_T before doing any changes.

Example:- Load map_T.tga into graphics package. Use sampler tool to sample rgb colour of specific pixel. Must use a point sample not average. If rgb is 0-31 then you have a land pixel with now road/rail. Increase rgb by 32 to add a track, 64 to add rail or 128 to add a highway.

Its difficult to work out where you are on a map_T because it all looks the same. If you select rgb value 144 +/- 112 then this will select all of the road/rail and track which makes it easier to see what you want to edit.
How you actually do the sampling and selection will vary depending on the graphics package you are using.

Ashe
Sorry, I forgot that....
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)