Special Aircraft Service

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Road, rail & town extractor  (Read 2782 times)

0 Members and 1 Guest are viewing this topic.

Nowekat

  • Modder
  • member
  • Offline Offline
  • Posts: 152
Road, rail & town extractor
« on: September 09, 2018, 10:59:50 AM »

When reworking the street and rail net of the black sea map i found it usefully and also necessary to extract the roads and rails and also the towns and villages from the map_t.

For this i wrote a little tool, that creates from a map_t

a map_t.tga without roads and rails ("map_tNoRoadsNoRails.tga")
a TGA with white background with roads and rails alone ("map_t_RoadsAndRails.tga")
and a TGA with white background with the towns and villages alone ("map_t_Towns(Colours).tga).



The road and town files used as layers and after adding transpareny joining them with the "add colours" feature of gimp to the pure map_t are usefull to create a new complete map_t and also the ed_m files.

Before extracting the towns and villages there is a prompt:"Type in colours of towns and villages separated with commas, then press Enter:". Type in then the colours of towns and villages according to the load.ini, for example: "14,15,17,18,19". The tool then will create a "map_t_Towns1415171819.tga".

Of course you also can extract any other colour of a map_t.

The tool also shows the length of the roads and rails. With the BlackSea map i found

4962 km of country roads
933 km of highways
and 1313 km of railroads.

You may download the tool here:

https://www.mediafire.com/file/bvr7wsopin92qzz/map_t_RoadAndTown_Extractor.7z/file

Usage: Throw the tool and the map_t.tga into the same folder. Run the tool. Type in the colours of the map_t to extract towns and villages (or other colours), separated with commas.

Novekat
Logged

Uzin

  • Modder
  • member
  • Offline Offline
  • Posts: 2787
  • On lifetime holidays
Re: Road, rail & town extractor
« Reply #1 on: September 09, 2018, 11:15:07 AM »

Seems promisimg, I shall try it.
Formerly, I used a program "Decomp", but it failed to work properly om some larger maps.
Logged

Nowekat

  • Modder
  • member
  • Offline Offline
  • Posts: 152
Re: Road, rail & town extractor
« Reply #2 on: September 09, 2018, 12:06:14 PM »

I don't think there will be a problem with bigger maps here, also i did not tested this. If your rig can load a map_t, the tool should load it also.

I forgot to mention: I also used the road.tga as a layer to the map_h to paint the roads and rails in the valleys and to delete the old roads. Also it is quite impossible to meet the lowest parts of a valley, this nevertheless helps to paint roads and rails near to the place at least where they should be. I also found that its possible to delete roads and rails within the fmb: Selecting "Rail" or the type of road in the objects menue, pointing with the mouse directly over the road/rail and pressing "Delete" removes them. Don't know if this is kown ;-).

Novekat
Logged

Nowekat

  • Modder
  • member
  • Offline Offline
  • Posts: 152
Re: Road, rail & town extractor
« Reply #3 on: September 09, 2018, 02:19:14 PM »

There was a typo in that program. But this affected only crossing roads/rails, so wrong calculation of the roads/rails lenght was less than 2% with the BlackSea map. I replaced the first download with a fixed version meanwhile.
Logged

Uzin

  • Modder
  • member
  • Offline Offline
  • Posts: 2787
  • On lifetime holidays
Re: Road, rail & town extractor
« Reply #4 on: September 09, 2018, 02:39:32 PM »

Tried on Yugoslavia_1941 map, works well.
Congrats, Nowekat!
Logged

Toobone

  • Mapper
  • member
  • Offline Offline
  • Posts: 513
Re: Road, rail & town extractor
« Reply #5 on: September 10, 2018, 05:39:33 AM »

If Uzin said:"Work" - that's sufficient. Very usful instrument, thanx, Novecat ]cheers[ ]thumleft[
Logged

vonOben

  • Modder
  • member
  • Offline Offline
  • Posts: 883
  • Wer den Tod fürchtet, hat das Leben verloren.
    • vonOben's Flight Sim Mods
Re: Road, rail & town extractor
« Reply #6 on: December 15, 2019, 08:46:42 AM »

Hi Nowekat

Many thanks for all the tools you have made!  :)
I've only used this one so far, but they all seem very useful!  :)

Best regards

vonOben
Logged
vonOben's Flight Sim Mods  http://vonoben.free.fr/ Twenty Years online January 3, 2022!

Uzin

  • Modder
  • member
  • Offline Offline
  • Posts: 2787
  • On lifetime holidays
Re: Road, rail & town extractor
« Reply #7 on: October 03, 2022, 03:07:47 PM »

The tool also shows the length of the roads and rails. With the BlackSea map i found

4962 km of country roads
933 km of highways
and 1313 km of railroads.
The tool is that I most used in making maps, excellently done.
The only thing I do not understand: where to read the length of roads as it is shown above.
Logged

vonOben

  • Modder
  • member
  • Offline Offline
  • Posts: 883
  • Wer den Tod fürchtet, hat das Leben verloren.
    • vonOben's Flight Sim Mods
Re: Road, rail & town extractor
« Reply #8 on: October 03, 2022, 11:29:04 PM »

Hi Ivan

It's displayed in the program window after the extraction process has finished.

Best regards

Per
Logged
vonOben's Flight Sim Mods  http://vonoben.free.fr/ Twenty Years online January 3, 2022!

Uzin

  • Modder
  • member
  • Offline Offline
  • Posts: 2787
  • On lifetime holidays
Re: Road, rail & town extractor
« Reply #9 on: October 03, 2022, 11:48:29 PM »

Hi Ivan

It's displayed in the program window after the extraction process has finished.

Best regards

Per
Many thanks.
I must be blind. ::( ::( ::(
Logged
Pages: [1]   Go Up
 

Page created in 0.068 seconds with 25 queries.