Good luck with your moving, Renard - I know how disrupting it can be...
Happy new year, everyone! I've got some news, too. I didn't have time to work on this project until yesterday, but I've achieved some progress. Here's my workflow, after unpacking the Samba de Amigo ver. 2000 GDI:
- Make changes to any file
- Rebuild GDI
- Run it with Null DC
Replacing audio (.ADX):
If you replace any .ADX file, it just works. That's the easiest part so far. FYI, it seems any stage length is defined not by the audio duration, but by the Amigo (.AMG) file.
Replacing Amigo files (.AMG):
Directly bringing a Wii .AMG file to the Dreamcast (e.g., copying BailaMe.amg over SAMBA_DE_JANEIRO.AMG) crashes Null DC.
So I inspected the Amigo files. Long story short, Dreamcast .AMG files are little endian, while Wii files are big endian. A quick conversion allowed me to play Baila Me from the Wii version on the Dreamcast emulator! I could play "original" Easy, Normal and Hard modes, but without any background image or animation. Also, playing in "hustle" mode crashes Null DC after a couple of seconds.
This means I have to investigate more the file format. It has a simple structure: a block name (4 chars), block length (dword) and block content. In a typical Samba de Amigo ver. 2000 .AMG file, these are the blocks found, in order:
|HEAD|CAM_|EASY|EASY|HARD|HARD|DA_E|DA_E|DA_H|DA_H|DA_N|DA_N|DA_S|DA_S|ACT_|NORM|NORM|ACT_|ACT_|ACT_|SUPR|SUPR| END_ |
I've written a very simple parser and already understand most of the data on HEAD, EASY, NORM, HARD, SUPR, DA_? and END_ blocks. I guess CAM_ (camera?) and ACT_ (actors?) might be related to the background animations. DA_? blocks are for hustle mode.
Wii files are basically the same, except they also have a ONSH block, which might be related to training modes.
Sample from parser:
23,748 VOLARE.AMG [DC]
HEAD 136 bytes
00000020 | 32 entries
00000000 | 0
00000000 | 0
000001ED | 493
000002E4 | 740
000003DC | 988
000004D4 | 1236
000005CC | 1484
[... 8< ...]
00001B93 | 7059
00000000 | 0
CAM_ 1480 bytes
0000002E 00000000 00000001 FFFFFE70 00000034 FFFFFF2E FFFFFE70 00000037 FFFFFF24 00000001 00090002 00000190 00000034 FFFFFF2E 00000190 00000037 FFFFFF24 000001ED 00000001 0000006E 00000043 000000A9 00000000 00000046 00000000 000001EE 00050002 FFFFFF92 00000043 000000A9 00000000 00000046 00000000 000002E4 00000001 0000002A 0000008B 00000035 00000000 00000046 00000000 000002E5 00050002 FFFFFFEA 00000037 00000035 00000000 00000046 00000000 000003DC 00000001 00000023 0000003A FFFFFFF8 0000000F 0000004D FFFFFFDD 000003DD 00050002
[... 8< ...]
EASY 1400 bytes
00000000 | Player 0
000000E1 | 225 max amigo points
000000AC | 172 commands
0000012C 00000123 | frame 300 ( 5.00 s), cmd 00000000000100100011 begin continuous shake, medium left, medium right
000001AF 00000128 | frame 431 ( 7.18 s), cmd 00000000000100101000 end continuous shake, medium left, medium right
000001ED 00000121 | frame 493 ( 8.22 s), cmd 00000000000100100001 normal shake, medium left, medium right
0000020C 00000121 | frame 524 ( 8.73 s), cmd 00000000000100100001 normal shake, medium left, medium right
0000022B 00000121 | frame 555 ( 9.25 s), cmd 00000000000100100001 normal shake, medium left, medium right
0000024A 00000121 | frame 586 ( 9.77 s), cmd 00000000000100100001 normal shake, medium left, medium right
00000269 00000101 | frame 617 ( 10.28 s), cmd 00000000000100000001 normal shake, medium right
00000288 00000101 | frame 648 ( 10.80 s), cmd 00000000000100000001 normal shake, medium right
000002A7 00000101 | frame 679 ( 11.32 s), cmd 00000000000100000001 normal shake, medium right
000002C6 00000101 | frame 710 ( 11.83 s), cmd 00000000000100000001 normal shake, medium right
000002E4 00000121 | frame 740 ( 12.33 s), cmd 00000000000100100001 normal shake, medium left, medium right
00000303 00000121 | frame 771 ( 12.85 s), cmd 00000000000100100001 normal shake, medium left, medium right
00000322 00000121 | frame 802 ( 13.37 s), cmd 00000000000100100001 normal shake, medium left, medium right
00000341 00000121 | frame 833 ( 13.88 s), cmd 00000000000100100001 normal shake, medium left, medium right
00000360 00000021 | frame 864 ( 14.40 s), cmd 00000000000000100001 normal shake, medium left
[... 8< ...]
I'm documenting everything to publish a more complete report later. Unfortunately, I'll be very busy on the next weeks, so I might resume working on this only next month...
[]s!
Edit: Doh! Just now I've seen this thread again and noticed Renard already found out about endiannes, hustle mode, etc. (facepalm)! I guess editing the first thread is not such a good idea (we get no notification of editing, only about new replies). Anyway, at least I can confirm what he has found.
