OK, I got the magic inserter kinda sorta working. Link to pics. More pics. It doesn't appear that the inserter is messing up - it appears that move names or descriptions are too long.
Code link
1. Get the tool here (pastebin).
2. Prepare your input files:
2a. Rename your t_magic._dt as t_magic.orig.
2b. Go here (Google sheets) and copy into your spreadsheet program.
2c. Delete the first line (header) and the Japanese column.
2d. Save the file in CSV format as magic.data. Use SHIFT-JIS encoding and the tab delimiter. Save the file in the same directory as the original source data from (2a).
3. Run the program using python. I named mine ZnKmagicinsert.py but you can name it whatever you like (no arguments).
3a. Description of program operation: creates the t_magic._dt file, using both the original source data and the translations file, that's suitable for insertion into the game.
4. Open \data\cclm\system\sysstart.bcc using your hex editor. Zero out the rows corresponding to the file you're looking to insert and then save the file. You only need to do this once.
5a. When the program runs, it tells you the size of the output (in hex).
5b. Open \USRDIR\data.lst with your hex editor. Find the value 0xF64A (original size of t_magic._dt, 0x4AF6 or 19190 bytes, but with the bytes reversed per little-endian format).
5c. Replace that value with the new size in hex. Remember to reverse the bytes.
5d. Save the file.
6. Insert the files using UMDgen and save your image. Enjoy!
Imgur isn't working now, so I've uploaded the images here.
Code link
1. Get the tool here (pastebin).
2. Prepare your input files:
2a. Rename your t_magic._dt as t_magic.orig.
2b. Go here (Google sheets) and copy into your spreadsheet program.
2c. Delete the first line (header) and the Japanese column.
2d. Save the file in CSV format as magic.data. Use SHIFT-JIS encoding and the tab delimiter. Save the file in the same directory as the original source data from (2a).
3. Run the program using python. I named mine ZnKmagicinsert.py but you can name it whatever you like (no arguments).
3a. Description of program operation: creates the t_magic._dt file, using both the original source data and the translations file, that's suitable for insertion into the game.
4. Open \data\cclm\system\sysstart.bcc using your hex editor. Zero out the rows corresponding to the file you're looking to insert and then save the file. You only need to do this once.
5a. When the program runs, it tells you the size of the output (in hex).
5b. Open \USRDIR\data.lst with your hex editor. Find the value 0xF64A (original size of t_magic._dt, 0x4AF6 or 19190 bytes, but with the bytes reversed per little-endian format).
5c. Replace that value with the new size in hex. Remember to reverse the bytes.
5d. Save the file.
6. Insert the files using UMDgen and save your image. Enjoy!
Imgur isn't working now, so I've uploaded the images here.