Jump to content

Accurate map for DCS:Syria theatre


Flappie

Recommended Posts

As promised, I'm starting my new accurate map project: Syria!

The result will be usable in Tacview, CombatFlite, DCS Web Editor, as a kneeboard mod, as a webmap or as a simple GeoTIFF file.

I'll try to detail the process all along the project, step by step.

 

If you dont know about my previous project, check it here.


Edited by Flappie
  • Like 8
  • Thanks 14

Don't accept indie game testing requests from friends in Discord. Ever.

Link to comment
Share on other sites

First step: the making of a giant screenshot of the Syria map.

 

I'll use AutoHotKey to automate the take of many many screenshots.

First, I need to select the right zoom level. It seems the vegetation layer is bugged in DCS:Syria: when the zoom level is too important, the vegetation layer gets more polygons and many of them should not appear (areas painted in green with no trees).

zoom.png

Once the zoom level is chosen, I need to find a way to automate the screenshots trimming, because I don't want to see UI elements on my screenshots. I'm using an old free version of Photo Filtre 7 to achieve that:

trimming.png

Once the trimmed screenshot size is determined, I need to calculate how many screenshots I'll need to complete my giant screenshot. Only then I can achieve my AutoHotKey script. Once it will be ready, all I'll have to do is press a button and AutoHotKey will take all needed screenshots.

Then I'll feed my Photo Filtre automation script with these screenshots, and it will do the trimming.

Then I'll... well I haven't found a way to automate this part so... I'll make a giant jigsaw puzzle on GIMP. Fortunately, it has a magnetic grid, which helps avoiding positioning errors.

 

I still have a lot of work to do! See you soon.


Edited by Flappie
grammar
  • Like 5
  • Thanks 4

Don't accept indie game testing requests from friends in Discord. Ever.

Link to comment
Share on other sites

32 minutes ago, okopanja said:

Hi Flappie,

This is very interesting, I was wondering what are your data source here?

I gather it's: Topograhical map + town.lua + ...?

Are you doing this manually?

Hi, I'll use ASTERDEM as the topographic source, but many things are to be done manually or semi-automatically, yes.

Lines especially, such as rivers (very tedious) and powerlines (very simple) are to be drawn by hand.

When it comes to surfaces, I use one of these huge screenshot to isolate what I'm after, so I can convert the shape into a polyline shape. The first huge screenshot will be used to draw rivers and powerlines, but it will also serve as a control reference for other data. Then I'll make another huge screenshot where I'll mask a lot of things in the ME to keep only vegetation areas (green), urban areas (orange) and waterbeds (sea, lakes, and very large rivers).

Roads and railroads will be made semi-automatically using a script from @Hardcard (I'll place vehicles on roads and ask them to go here and there, then I'll transform poisiton points into lines). Then the position of the bridges will be deducted using SQL scripting (if a road or a railroad crosses a river/railroad/another road, there must be a bridge). Bridges azimuth will be calculated by the same SQL script.

I will have to find the location of tunnels on my own. Of course, help would be greatly appreciated.

I'm pretty sure users did a list of available helipads with coordinates. I'll use it.

Radio beacons and town names will be retrieved from the game files.

Don't worry, you'll know almost everything for I want to detail the whole process in this thread.


Edited by Flappie
  • Like 4

Don't accept indie game testing requests from friends in Discord. Ever.

Link to comment
Share on other sites

I found a way to spare myself the jigsaw puzzle chore: Image Magick!

I had been using this software "crop" feature within a PHP script to create tiles for my Caucasus kneeboard mod. And it just occured to me that this program also has an "append" feature! 🤌

This will help me speed up the process and do more interesting things than stichting pictures together.


Edited by Flappie
  • Like 3

Don't accept indie game testing requests from friends in Discord. Ever.

Link to comment
Share on other sites

  • 2 weeks later...

Step 2 : georeferencing giant screenshots

 

I lost some precious time on step 1. My initial giant screenshot was way too big and the GIMP simply couldn't process it. After many failed tries, I had to make a smaller one to get it working on the GIMP (44660x25840).

Now, before I start producing different screenshots for each layer (waterbeds, vegetation, urban areas), I need to make sure the size of my first screenshot is compatible with Quantum GIS. Let's try and georeference the waterbeds screenshot.

Once Quantum GIS is opened, I call the Georeferencing tool and feed it with my giant .PNG.

The goal here is to add more reference points to the picture, and to assign them the right coordinates. Before I took the giant screenshot, I drew red circles on the ME map to outline a set of coordinates. Now all I need to do is superimpose my reference points on these red circles. Let's do it:

georef1.png

This step is a bit tricky: if I mistype one of the coordinates, the georeferencing will fail miserably.

After some time, the table is filled with reference points:

georef2.png

Now, it's time to execute the georeferencing process:

georef3.png

And... that's a bingo! The purple coastline is a vector layer from the Natural Earth project. It allows me to check that my DCS Syria screenshot was georeferenced correctly.

georef4.jpg

Now, the good news: since all my giant screenshots will be automatically taken by my AutoHotKey script, they will share the same size and will depict the exact same location, which means I will be able to re-use all these reference points I've just made. That's all for tonight.

  • Like 6
  • Thanks 2

Don't accept indie game testing requests from friends in Discord. Ever.

Link to comment
Share on other sites

  • 2 weeks later...

First, you need to find the right projection (the one used by the sim).

Then you export the file as a giant PNG. Of course, you need to find the correct coordinates of your export frame.

Then you need to cut the giant PNG into tiles and convert them to the DDS format. I used ImageMagick to do these two operations.

Send me a PM and I'll help once I get back home.

  • Thanks 1

Don't accept indie game testing requests from friends in Discord. Ever.

Link to comment
Share on other sites

  • 1 month later...
 

Step 3 : creating vector data

 

I realise my previous giant screenshot was not precise enough to extract waterbeds. I'll make a more detailed one later. In the meantime, let's start drawing lines... power lines. All I need to do is draw lines over my georeferenced screenshot. This should not take too long.

powerlines.jpg

10 minutes later, a surprise: the ME power lines layer of Syria terrain is sometimes wrong. Here's an example:

powerline_errors.jpg

As you can see, the line above the other one is not part of the terrain. I won't draw it.

30 minutes later: another surprise. Some power lines are absent from the ME layer... Well, it happens in real life too, doesn't it?

missing_powerlines.jpg


Edited by Flappie

Don't accept indie game testing requests from friends in Discord. Ever.

Link to comment
Share on other sites

Done! All powerlines are vectors on my map, now. And their position is very precise, thanks to the use of SharkPlanner.

powerlines.jpg

Next step: railways. I'll use Hardcard's "Google trains".


Edited by Flappie
  • Like 6
  • Thanks 1

Don't accept indie game testing requests from friends in Discord. Ever.

Link to comment
Share on other sites

Friday evening. I needed to do something very simple. Beacons are done! I simply reformatted DCS Syria "beacons.lua" file.

beacons.png

Oops! It just occured to me that I forgot to do powerlines in Cyprus... Back to work.

  • Like 4

Don't accept indie game testing requests from friends in Discord. Ever.

Link to comment
Share on other sites

  • 2 weeks later...

Work on airbases has started. Once again, I make use of a modified version of SharkPlanner. It saves me a lot of time compared to what I used to do to draw Caucasus airbases. 😃

Paphos.png


Edited by Flappie
typo
  • Like 8

Don't accept indie game testing requests from friends in Discord. Ever.

Link to comment
Share on other sites

  • 1 month later...
  • 4 months later...

I have put this project on hold for the moment. Both my testing and parenthood activities take all of my free time. And my job does not help either. 😬

I recently asked devs to allow custom raster charts from the Saved Games folder. If they made it happen, it would probably motivate me enough to resume work on this map.

  • Like 4
  • Thanks 7

Don't accept indie game testing requests from friends in Discord. Ever.

Link to comment
Share on other sites

  • 3 weeks later...
  • 3 weeks later...
  • 1 month later...

All 64 airbases are done! 🤪

You can't see them well at this scale but rest assured they were all made with as much love as the one above.

AB.png

  • Like 8
  • Thanks 4

Don't accept indie game testing requests from friends in Discord. Ever.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...