June 15th, 2009, 13:21
Wind Waker - sea maps
Okay, I've finally found the time to play Wind Waker again and now I want to make a map for it, like the maps on vgmaps.com
However, I don't know how.
I'm pretty sure that the sea maps are stored in \res\Fmap\Fmap.arc
This extracts two folders, cm and fm.
cm contains 196 Yaz0-compressed files. After decompressing, there are 196 new files, all 10432 bytes in size.
fm contains 49 Yaz0-compressed files. In WW, the overall map is 7x7 squares which is 49. So these files could be the "zoomed out" maps. 196 = 49x4, so the cm files could be the zoomed in maps (1000x1000 and 200x200), and something else.
Note: this is all speculative, I have no idea what the files are yet.
All mentioned files appear to start with the following bytes: 0x02 0x02 0x00 0x64 0x00 0x64
They are not BTI files (tested by converting them to DDS) and not TPL files (tested by converting with using tplx)
If anyone has information on these files, or wants to help, please say so
by taking a picture of my tv while showing the map, I could count the number of pixels each map tile takes. I think they are 48x48 pixels (though it's difficult to be 100% sure)
The big maps (1000x1000 and 200x200) take up 5x5 tiles, which would make them 240x240 pixels.
Last edited by Spinal83; June 15th, 2009 at 13:36.
June 27th, 2009, 15:27
85 views and 0 replies
I'm going to try a different approach: run the game in an emulator. Then I will know the exact size of the maps, and maybe even see how the files are loaded.
I'll report back when I got the game running (unfortunately I do not have a DVD-ROM player capable of reading GC discs so it will take a while to get the game in "some other way")
I like beer
No replies because nobody knows (me too) what that file type is, with this header (0x02 0x02 0x00 0x64 0x00 0x64), I guess...
I repeated all that you've done - no success, too...
I don't know what to do next with those files.
Last edited by Anton; July 1st, 2009 at 22:52.
Yeah, I was afraid of that... I digged into the Dolphin source code a bit, but couldn't find anything useful.
I don't know how they handle things, but there was no mention of RARC files, BTI files, Yaz0 compression or whatever in the source.
I guess it will be printscreen copy-pasting to make the map...
I like beer
Not a bad idea, because if you even will figure out what to do with those files, the resolution of that maps won't be very high. Maybe printscreening will be even better in quality, I guess.
Originally Posted by Spinal83
The archive Fmap.arc indeed contains the images of the sea map. I've never tried the BTI to DDS converter, but the files are just standard BTI files. Because it looks like your converter doesn't work with all BTI-formats, I've written a BTI conversion program for you.
This program is a console program. It can convert a given BTI file to BMP and TGA format by giving the filename as an argument. To make life easier for you, I've also added support for ARC archives. When you specify the filename of an ARC archive as argument, the converter will convert all BTI files it finds in the archive to BMP and TGA format. The converter recursively creates directories to store the image files. As extra bonus I’ve also included Yaz0 and Yay0 decompression-routines, so all Yaz0 and Yay0 compressed files will be decompressed automatically during the conversion. You only have to extract the Fmap.arc file from the Gamecube image and feed it directly to my BtiConverter.
This is a basic step-by-step plan to use the program:
1. Extract the ZIP file and place BtiConvert.exe in an empty directory
2. Place the Fmap.arc file in the same directory as BtiConvert.exe
3. Start Windows Explorer and go to the directory containing the two files
4. Drag the Fmap.arc file and place it on top of the BtiConvert.exe file
5. The converter will pop-up and extracts the files
6. When the console-window closes, the images are ready to use
When no images or directories appears, you can use the command prompt:
1. Choose 'Run' from the Start-menu and type 'cmd'
2. Use 'cd' to change to the directory containing the two files
3. Type: 'BtiConvert.exe Fmap.arc'
4. The images should be extracted
Because I get an 'Unable to move/copy file' error while uploading the attachment, I'm using RapidShare:
The images are indeed black-and-white, because they’re stored as black-and-white in the Gamecube Image. The menu-program of the game first paints the background of the map (using texture-environment-colors to color it up) and blends the sea map images on top of the map-background. That's why the images have alpha-planes. The game has to use separate images, because some locations might not be discovered yet.
The converter saves all images as full-color images. Because the BMP format doesn't support alpha (only RGB), I've chosen to write the image as two separate BMP files (one full-color RGB image and one grayscale Alpha image). The TGA image-format, however, does support alpha-channels, so the 32-bit color (Red, Green, Blue, Alpha) can be saved as a single TGA file. The TGA file is just a combination of the two BMP files (the full-color RGB image ‘_color.bmp’ and the grayscale Alpha image ‘_alpha.bmp’). Try to load the TGA file in Photoshop and look for Alpha-planes. You'll see the alpha-image as a separate alpha-plane in the TGA file.
I found out that nearly all map-overviews are stored in low-resolution images with only a few colors. The icons, for example ‘\Res\Msg\Itemicon.arc’, are stored as full-color images.
If you're also looking for the dungeon-maps, they're saved in the same ARC archive as the 3d-model. For the first room of the Earth-temple, extract '\Res\Stage\M_dai\Room0.arc' and feed it to the converter. You’ll end up with the image shown in the submap-box on the screen. The complete dungeon maps are saved per floor in '\Res\Stage\M_dai\Stage.arc'. The textures are saved inside the model-file (model.bdl) and won’t be extracted.
July 20th, 2009, 16:44
I go away for a few days and now I find this. Thanks a lot!
I've only looked at the sea maps so far (which was my original plan) but it works with dungeon maps as well, I'll try that too.
Thanks again for your program!
July 30th, 2009, 14:09
Just to let you all know: this program also works on the maps (radar) and various other bti's used in Pikmin 2!
Last edited by Spinal83; July 30th, 2009 at 14:18.