Hello, thank you in advance.
I am looking to make some extremely minor changes to the text in Phoenix Wright: Ace Attorney (just fixing some typos that have always bugged me, call me crazy if you like
)
I have used the Phoenix Wright Script Editor by deufeufeu to extract the script files and convert them to .txt. Is there a easy way to change the .txt file back to a .bin file after I have made minor changes?
In other words, does anyone understand what PWSE does when it converts .bin to .txt, and can what it does be reversed? I've already discovered that the text is stored in some "one byte = several characters" way, but I can't quite figure it out.
Unfortunately deufeufeu's site, which may have had an answer to this, seems to have disappeared.
edit: After some more fiddling by changing one byte at a time and seeing what happens, I've discovered that the text is stored in the expected order. But it's sort of complicated - a certain byte doesn't always refer to the same sequence of characters, and sometimes changing a byte makes the file unreadable or messes up the whole text file.
I've found the location of the first typo I want to fix, but I don't know how to tweak it.
edit2: Just to clarify. There's a .bin in the ROM called mes_all.bin, and PWSE "unpacks" this file into a set of .bin files, each one representing a chapter of text. So if there was compression involved, I guess it would be mes_all.bin that's compressed, since the script files are "artificial". Not sure though! In any case, I've tried lz77, Huffman and RL on the script files and mes_all.bin, no dice.
PWSE doesn't contain a simple function for changing .txt back to .bin. It can create a brand new ROM if you create it from the ground up with custom configuration files and all sorts of complicated stuff. But that would be a nightmare to do just to fix some typos.
I am looking to make some extremely minor changes to the text in Phoenix Wright: Ace Attorney (just fixing some typos that have always bugged me, call me crazy if you like
I have used the Phoenix Wright Script Editor by deufeufeu to extract the script files and convert them to .txt. Is there a easy way to change the .txt file back to a .bin file after I have made minor changes?
In other words, does anyone understand what PWSE does when it converts .bin to .txt, and can what it does be reversed? I've already discovered that the text is stored in some "one byte = several characters" way, but I can't quite figure it out.
Unfortunately deufeufeu's site, which may have had an answer to this, seems to have disappeared.
edit: After some more fiddling by changing one byte at a time and seeing what happens, I've discovered that the text is stored in the expected order. But it's sort of complicated - a certain byte doesn't always refer to the same sequence of characters, and sometimes changing a byte makes the file unreadable or messes up the whole text file.
I've found the location of the first typo I want to fix, but I don't know how to tweak it.
edit2: Just to clarify. There's a .bin in the ROM called mes_all.bin, and PWSE "unpacks" this file into a set of .bin files, each one representing a chapter of text. So if there was compression involved, I guess it would be mes_all.bin that's compressed, since the script files are "artificial". Not sure though! In any case, I've tried lz77, Huffman and RL on the script files and mes_all.bin, no dice.
PWSE doesn't contain a simple function for changing .txt back to .bin. It can create a brand new ROM if you create it from the ground up with custom configuration files and all sorts of complicated stuff. But that would be a nightmare to do just to fix some typos.







