Map Format

Everything about mods can be found here.

Moderator: Morax

Re: Map Format

Postby Duck_42 » 13 Jun 2014, 21:44

I found the problem with the cartographic view in v56. The "Unknown5" byte array is, in fact, an array of color data for the mini map. The map editor sets that array to all zeroes, which is why the mini map is black.

In v60 they changed the way the data is stored, so I can't just copy and paste that block from a v60 map. So, I'm now trying to figure out how the colors are stored and which colors are displayed where on the minimap. More to follow...
User avatar
Duck_42
Avatar-of-War
 
Posts: 237
Joined: 29 May 2012, 03:16
Has liked: 5 times
Been liked: 18 times
FAF User Name: Duck_42

Re: Map Format

Postby nine2 » 14 Jun 2014, 03:15

This is what I need to get strategic preview working in game!
nine2
Councillor - Promotion
 
Posts: 2416
Joined: 16 Apr 2013, 10:10
Has liked: 285 times
Been liked: 515 times
FAF User Name: Anihilnine

Re: Map Format

Postby Duck_42 » 14 Jun 2014, 06:07

User avatar
Duck_42
Avatar-of-War
 
Posts: 237
Joined: 29 May 2012, 03:16
Has liked: 5 times
Been liked: 18 times
FAF User Name: Duck_42

Re: Map Format

Postby nine2 » 14 Jun 2014, 06:12

Well done. This time you only beat me by a few minutes ... just came here to post what i've worked out what all the colours are and how we can write a console app.

Which field was the contour interval ?
nine2
Councillor - Promotion
 
Posts: 2416
Joined: 16 Apr 2013, 10:10
Has liked: 285 times
Been liked: 515 times
FAF User Name: Anihilnine

Re: Map Format

Postby Duck_42 » 14 Jun 2014, 07:17

The first one (usually 18 00 00 00).
User avatar
Duck_42
Avatar-of-War
 
Posts: 237
Joined: 29 May 2012, 03:16
Has liked: 5 times
Been liked: 18 times
FAF User Name: Duck_42

Re: Map Format

Postby Duck_42 » 14 Jun 2014, 07:24

By the way partytime, I've already pushed an updated version of the map generator (with the mini map color handling) up to Bitbucket. I've separated the map load/save code so it builds into a standalone DLL (which can be used for other projects).

I see no reason to even bother with the v60 map format. We have no map editors that can read them, and in my opinion, the aesthetic improvements in v60 do not justify the effort that would be required.
User avatar
Duck_42
Avatar-of-War
 
Posts: 237
Joined: 29 May 2012, 03:16
Has liked: 5 times
Been liked: 18 times
FAF User Name: Duck_42

Re: Map Format

Postby nine2 » 14 Jun 2014, 10:12

Running your console app from the zip you provided, I get this on my 64 bit machine:
Unhandled Exception: System.BadImageFormatException: Could not load file or assembly 'SCMAP Reader Writer, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format.
at Minimap_Fix_Tool.Program.Main(String[] args)
nine2
Councillor - Promotion
 
Posts: 2416
Joined: 16 Apr 2013, 10:10
Has liked: 285 times
Been liked: 515 times
FAF User Name: Anihilnine

Re: Map Format

Postby nine2 » 14 Jun 2014, 10:13

I still want to read v60 so that we can analyze the maps that come with FA, but agree it's not worth it probably
nine2
Councillor - Promotion
 
Posts: 2416
Joined: 16 Apr 2013, 10:10
Has liked: 285 times
Been liked: 515 times
FAF User Name: Anihilnine

Previous

Return to Mods & Tools

Who is online

Users browsing this forum: No registered users and 1 guest