18.05.2010, 14:36
Thank you. It's possible, you just have to create a proper ed_m02.tga and map_h.tga. For example the Iwo Jima map:
Unpack the original ed_m02.tga.pak (.../ZipNavFilesPacked/iwo) and save it.
Open the Iwo Jima map within the fmb. It runs from AA to DB and from 1 to 80. Each character and each digit are 10000 meter. So the maps dimensions here are( ((3*24) + 2) * 10000 = 740000 m) *( 80*10000 = 800000 m).
Because 1 pixel = 200 m the new tga's dimensions must be 740000/200 = 3700 and 800000/200 = 4000 pixel.
So create (with gimp or something with the same features) 2 tga files with that dimensions. One blue (the ocean), call it ed_m02.tga, one pure black (rgb 0), call this map_h.tga (The distances are mesured here, thats why you need this). Save both files with "Origin" upper left and "no" RLE compression. The ed_m02 must be a rgb file, the map_h a 256 bit grayscale. No transpareny is allowed.
Back to the fmb. The island is situated at the end of CI and 61 (Northern/western cost lines). This is ((2*24) + 9) * 10000/200 = 2850 pixel and 61*10000/200 = 3050 pixel. But you need the y-pixels counted from the upper side (The game counts from the left upper corner). Total y-axis = 4000 pixel, so the true y-value is 4000-3050 = 950 pixel.
Now open your new big ed_m02.tga and the original small one as a layer. Grab the island and shift the crossing of the northern/western shore lines to the pixel position 3050/950. Join the layer. Save as ed_m02.tga with "indexed" to 256 colors, "Origin" upper left and "no" RLE compression.
Put your new ed_m02.tga and your big map_h.tga into the Navs Iwo folder. Run the prog and pack both files. That's it so far.
But you will notice that the airports and names ar misplaced (In the very low left corner). To change this you have to unpack and edit the related two other files (or just delete them):
Airports are within the outNStationary.txt with lines like this:
0_Static vehicles.planes.Plane$BI_1 1 5168.0 3967.5 5855.0 0.0 null
The x/y positions are stored here as 5168.0/3967.5 meters/centimeters
Names are within the texts.txt with lines like this:
7639 9143 7 1 1 0 Iwo_Jima
The x/y positions are stored here as 7639/9143 meters
You just have to add to these values the values you shifted the island in x/y-position (it may be difficult to meet the exact positions, it should be about adding 3050*200m = 610000m for x and adding 950*200m = 190000 for y, i think) and repack the files.
To save the hight information of a map (I think this is not needed in the Pacific) you may also add the original map_h to the created one as you did it with the ed_m's.
Good luck.
Unpack the original ed_m02.tga.pak (.../ZipNavFilesPacked/iwo) and save it.
Open the Iwo Jima map within the fmb. It runs from AA to DB and from 1 to 80. Each character and each digit are 10000 meter. So the maps dimensions here are( ((3*24) + 2) * 10000 = 740000 m) *( 80*10000 = 800000 m).
Because 1 pixel = 200 m the new tga's dimensions must be 740000/200 = 3700 and 800000/200 = 4000 pixel.
So create (with gimp or something with the same features) 2 tga files with that dimensions. One blue (the ocean), call it ed_m02.tga, one pure black (rgb 0), call this map_h.tga (The distances are mesured here, thats why you need this). Save both files with "Origin" upper left and "no" RLE compression. The ed_m02 must be a rgb file, the map_h a 256 bit grayscale. No transpareny is allowed.
Back to the fmb. The island is situated at the end of CI and 61 (Northern/western cost lines). This is ((2*24) + 9) * 10000/200 = 2850 pixel and 61*10000/200 = 3050 pixel. But you need the y-pixels counted from the upper side (The game counts from the left upper corner). Total y-axis = 4000 pixel, so the true y-value is 4000-3050 = 950 pixel.
Now open your new big ed_m02.tga and the original small one as a layer. Grab the island and shift the crossing of the northern/western shore lines to the pixel position 3050/950. Join the layer. Save as ed_m02.tga with "indexed" to 256 colors, "Origin" upper left and "no" RLE compression.
Put your new ed_m02.tga and your big map_h.tga into the Navs Iwo folder. Run the prog and pack both files. That's it so far.
But you will notice that the airports and names ar misplaced (In the very low left corner). To change this you have to unpack and edit the related two other files (or just delete them):
Airports are within the outNStationary.txt with lines like this:
0_Static vehicles.planes.Plane$BI_1 1 5168.0 3967.5 5855.0 0.0 null
The x/y positions are stored here as 5168.0/3967.5 meters/centimeters
Names are within the texts.txt with lines like this:
7639 9143 7 1 1 0 Iwo_Jima
The x/y positions are stored here as 7639/9143 meters
You just have to add to these values the values you shifted the island in x/y-position (it may be difficult to meet the exact positions, it should be about adding 3050*200m = 610000m for x and adding 950*200m = 190000 for y, i think) and repack the files.
To save the hight information of a map (I think this is not needed in the Pacific) you may also add the original map_h to the created one as you did it with the ed_m's.
Good luck.