| Author |
Modders and mission builders. |
Aloner
Joined: May 20, 2002 Posts: 5 | Posted: 2002-05-20 15:09  
Hi all.
Is it possible to get map image and coordinates mapping in some machine-readable way? Actually I need map images.
Beleive me, it is for GOOD thing .
 
|
Wildcat
Joined: Mar 11, 2002 Posts: 342 | Posted: 2002-05-20 15:35  
If you mean starting co-ordinates just look at the positions of the units in the corresponding .sdf file. If you mean in game, just log the co-ordinates you see in the little box on the top left, they are in lat/long format. In the .sdf file it interprets up to navigational "seconds" I believe, maybe even smaller, so you will have to do some rounding off of numbers and fine tuning for your scenario. Lat/Long format for SH2/DC consists of 2 integers and 6 decimals. I.E- 22.550500. For negative lat just add a - at the front. -22.550500.
Hope this helps
 
|
Aloner
Joined: May 20, 2002 Posts: 5 | Posted: 2002-05-20 18:37  
Probably I wasn't able to say what I need clearly - sorry for my English.
I need to get somehow BIG pictures of map (got some ideas about writing some kind of point-and-click scenario editor). It's quite easy to make .sdf files auto-parsed and generated, but I need map images for interface.
Mapping coords to images will not be hard as I've researched.
I don't know actually in CIS if they are scaled when zooming, or if they are kept in different sizes.
 
|
Aloner
Joined: May 20, 2002 Posts: 5 | Posted: 2002-05-21 09:38  
Sorry for doing it.
Bump!
 
|
Wildcat
Joined: Mar 11, 2002 Posts: 342 | Posted: 2002-05-21 14:14  
As far as I know you won't be able to convert the existing maps in SH2/DC into a user viewable format, so you'll probably have to try using naval charts or air charts of the area you're doing. You could also try making screen captures of areas and joining them together, though that will take a llloooonggg time to finish.
 
|
Aloner
Joined: May 20, 2002 Posts: 5 | Posted: 2002-05-22 07:47  
Sounds bad.
I assume that map images are stored in common/maps in .dat files. Also they probably use Targa or BMP format inside.
I don't need to convert it - just want to know the format of that .dat files to be able to extract images on-the-fly (editor will use database files of DC installation).
Other things are pretty straightforward - not very complex text files parsing.
Anyone got ideas?
 
|
Seeadler
Joined: Feb 27, 2002 Posts: 194 From: Germany
| Posted: 2002-05-22 08:11  
Quote:
|
I assume that map images are stored in common/maps in .dat files. Also they probably use Targa or BMP format inside.
|
|
The maps are build from two files!
The *.jrf files stores the graphic-, coastline-data and the *.dat files stores the depth/altitude-data for the area.
I don't know the actual format of the *.dat files but I think it's ESRI (ArcView Format)
This format I use with SiteBuilder, another product from Multigen-Paradigm Inc. the company who make the Multigen-Creator that is used to create the models in SHII/DC.
If you want access to the *.jrf files, you can write to ultimation, look at this thread:
http://64.246.21.118/phpBB/viewtopic.php?topic=2231&forum=1
I did it, but have no success to get help on that jrf format until yet
They offer me the source-code for a jrf-converter. If I get it in the future, maby I was able to write a input-routine to read and display this maps.
[ This Message was edited by: Seeadler on 2002-05-22 08:17 ]
 
|
Aloner
Joined: May 20, 2002 Posts: 5 | Posted: 2002-05-23 14:09  
Quote:
|
They offer me the source-code for a jrf-converter. If I get it in the future, maby I was able to write a input-routine to read and display this maps.
|
|
Please, can you provide any info about jrf-converter's source code?
 
|
DaleW
Joined: May 18, 2002 Posts: 37 | Posted: 2002-05-23 14:27  
Quote:
|
Please, can you provide any info about jrf-converter's source code?
|
|
I have also write to mark@ultimation.com based on his post here in this forum but have no luck to get the jrf-tool he offered.
Now it's your chance, maby you have more luck then the others!
 
|
Tinfish
Joined: Feb 27, 2002 Posts: 140 From: New Zealand
| Posted: 2002-05-23 16:49  
So it looks like the map is in 2 pieces and gets put together in game, id say you will have a hard time doing this
 
|
Hook
Joined: May 19, 2002 Posts: 13 | Posted: 2002-05-23 17:01  
Based on considerable work with game maps in the past, I'd suggest you ignore the graphic part of the map that's in the game (it's pretty, but it's not the actual map) and concentrate on the map data. You can always generate a graphical map from the map data, although it won't look exactly like the graphic map in the game. But if you're writing a scenario editor, you're more interested in the actual data map, not the graphic one.
Larry
 
|