kudaratan Posted August 23, 2014 Posted August 23, 2014 Hey, so I'm pretty new to hacking. I know how to unpack, edit, and then repack stuff in kirikiri, but that's about it. Thing is, I've got my sights on translating this Rejet game, and after repacking, I've realized the font kinda hates English. Is there a way I can replace it so it looks better, or fix the spacing, at least? Please don't tell me to get a hacker, either--I'd really like to learn how to do this for myself. Any help at all would be appreciated! Thank you! ♡ Quote
Quibi Posted August 24, 2014 Posted August 24, 2014 Geh, I had the same issue when hacking Rejet games. The solution I opted up for was creating a custom font (based on the original font used) and adjust the spacing in that custom font. I used the program High-Logic Font Creator to do that. Also note that this solution only works if you play the game in Japanese locale (AppLocale seems to mess the font beyond repair...) I really wished to find another easier solution but that one seems to work. Quote
Novel21 Posted August 24, 2014 Posted August 24, 2014 Which Rejet game are you hacking and translating? Quote
kudaratan Posted August 24, 2014 Author Posted August 24, 2014 @Quibi Once I create the font, how do I get the game to use it? @Novel21 The ALICE=ALICE demo. Quote
Quibi Posted August 25, 2014 Posted August 25, 2014 Download AE and follow these steps: Open AE. Go to Data Tool tab and select the NOT (X = X XOR $FF) option. Click Process data and choose the file Modules/pf.dat Now a file called pf.dat~ (with tilde) has been created in the same folder, and is editable in a text editor. Search for "font" and you'll find the declaration. Search for Title to change the game's title! Search for Messages to find some save/load dialogs that need translation! There are numerous declaration of fonts for various uses (like name font, dialog font...) From my experience the game probably uses the same font everywhere, but you don't have to (if for example you you want another font to display the characters' names). But you should probably start with one font and see how it goes... Change to the font of your liking and repeat stages 1-2 for the pf.dat~ file. A new file called pf.dat~~ will be created. Replace the original pf.dat file with the new pf.dat~~ file and enjoy I think Rejet are using the game engine for all of their games, so hopefully it will work for you. Also note that you should export the font as ttf (and not otf) since said engine only supports that. kudaratan 1 Quote
Kelebek1 Posted August 25, 2014 Posted August 25, 2014 Such a nice simple format for this game, so easy and complete to edit and uses variables like %name% to make translations no problem at all. Wish all games were this easy lol. Changing the font doesn't seem to fix the spacing though, for me at least. Quote
Quibi Posted August 25, 2014 Posted August 25, 2014 Yeah, just changing the font won't work, you need to create a custom one. Quote
kudaratan Posted August 25, 2014 Author Posted August 25, 2014 @Quibi Thank you very much! Changing the font name to something I had installed worked for me, I didn't have to make a custom one. It just has to be fixed width or it ends up looking funky. I have two more problems now: How do I change the default character name, or how many letters the player can use? I believe her last name is 'Sakuraba', but the most it lets me enter is 'Sakur'. This game has a dictionary, as presented by the 'words' tab, but when I edited them in the only place I could find them, gd.dat, the game crashed when I pressed 'words'. How can I edit the dictionary? Once again, any help at all is greatly appreciated! (´ω`★) Quote
Kelebek1 Posted August 26, 2014 Posted August 26, 2014 The default char name is in the exe itself. In the trial the surname is at 0x4c8964 and first name is right after it. Comes out really badly in-game for me though: "Sakuraba" doesn't actually fit, you're one byte short. So you'd have to edit the exe and distribute your own if you really wanted to set that name as default. The dictionary files are SQL files, did you edit them with a proper SQL editor? EDIT: Found where to edit the length as well: Still requires exe editing though. In a hex editor, edit the byte at 0xbd86, that's the length restriction, it's 5 by default. I don't know if this causes any problems with the game, seems to work though. kudaratan 1 Quote
kudaratan Posted August 26, 2014 Author Posted August 26, 2014 @Kelebek1 Thank you so much! That's perfect! Could you please tell me what programme you're using, and the SQL Editor you use? In all the ones I have downloaded, everything just comes out as complete gibberish. Quote
Kelebek1 Posted August 26, 2014 Posted August 26, 2014 The one in my screenshots is OllyDbg, but you don't need that. Any hex editor will do, I gave the addresses that you need to edit. There's tonnes of hex editors around, HxD or wxMEdit are two free ones. I don't have any SQL editors, it just says at the start of the files "SQLite format 3," so that tells you you'd need a SQLite program to read/write them properly. Quote
Quibi Posted August 26, 2014 Posted August 26, 2014 Oh yeah, fixed width fonts do work, but I kinda don't like fixed-width :X So if you want variable width font you'll have to create a custom one. You can use SqliteBrowser for the sql files. It's a small nice program. Quote
ne_fikys Posted September 17, 2016 Posted September 17, 2016 On 25.08.2014 at 9:28 AM, Quibi said: I think Rejet are using the game engine for all of their games, so hopefully it will work for you. Also note that you should export the font as ttf (and not otf) since said engine only supports that. Good afternoon. I'm trying to make a demo Alice=Alice in Russian. I faced the same problem with a font that you do. Tell me pleace, what the font you are used? Quote
ne_fikys Posted September 17, 2016 Posted September 17, 2016 On 26.08.2014 at 2:01 AM, kudaratan said: @Quibi Thank you very much! Changing the font name to something I had installed worked for me, I didn't have to make a custom one. It just has to be fixed width or it ends up looking funky. I have two more problems now: How do I change the default character name, or how many letters the player can use? I believe her last name is 'Sakuraba', but the most it lets me enter is 'Sakur'. This game has a dictionary, as presented by the 'words' tab, but when I edited them in the only place I could find them, gd.dat, the game crashed when I pressed 'words'. How can I edit the dictionary? Once again, any help at all is greatly appreciated! (´ω`★) Good afternoon. I'm trying to make a demo Alice=Alice in Russian. I faced the same problem with a font that you do. Tell me pleace, what the font you are used? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.