Tuesday, December 11, 2018

Some stuff you can do with your Touhou games.

Post oleh : judg3GH | Rilis : December 11, 2018 | Series :
Wanna make your Touhou games feel a little bit more unique?

This one doesn't really apply for all games, since games from MoF and above are using more image assets than text assets, but at least you can change some text assets in Touhou 6, 7 and 8. I think 9 as well. Maybe there's more but I haven't checked in enough detail or didn't really care to check that.

Your best friend in this case might be HxD Hex Editor, or any Hex Editor in general.

Okay, so open up your Hex Editor and open the executable of the game you wish to change things in. I will choose IN for this instance.

Your screen should look something like this.
https://cdn.discordapp.com/attachments/292361774634893312/521745797465899008/unknown.png

Press Ctrl+F and look up "Full Power Mode".
https://cdn.discordapp.com/attachments/292361774634893312/521745964671696897/unknown.png

You should find it about here.
https://cdn.discordapp.com/attachments/292361774634893312/521744291421356032/unknown.png

Now, you CAN change that string as long as you keep the same character length. If you make that string smaller or larger, the executable won't open anymore, so you would have to change it back to the initial value or just use any other message that has the same length.
  • EoSD's full power message is 17 characters long;
  • PCB's full power message is 16 characters long;
  • IN's full power message is 16 characters long.

You can put basically anything you want as long as you respect the character length.
https://cdn.discordapp.com/attachments/292361774634893312/521744343929978890/unknown.png

I've put "It's gamer time!" as an example. This respects the character length, and it should show up in your game after you save the changed code by pressing Ctrl+S.

Now if you open up your game, the new message should appear when you reach max power.
https://cdn.discordapp.com/attachments/292361774634893312/521744399533604865/unknown.png

Now of course, you can change other stuff as well, not only the full power message. For example the executable's window name. This one works on all Touhou games, but as long as your game's original executable is already patched to English or has one available. If your Touhou game has thpatch to get your game in English, then that will not work.


Here's another list with character lengths for the games I was able to change the window names of:
  • EoSD's window name is 50 characters long;
  • PCB's window name is 40 characters long;
  • IN's window name is 36 characters long;
  • PoFV's window name is 48 characters long;
  • MoF's window name is 37 characters long;
  • SA's window name is 39 characters long;
  • HM's window name is 33 characters long;
  • ULiL's window name is 17 characters long.

It's pretty much the same rule as the full power message. Respect the character length.
Here's an example on PCB.
https://cdn.discordapp.com/attachments/292361774634893312/521744529267884052/unknown.png


If you have any comments, I'll gladly answer them.
Oh by the way! I'm looking forward to expand on my fangame library, so if you have any suggestions, please send them in the comments, and maybe (maybe) I will also make a review on it.

google+

linkedin

3 comments

Tulis comments
avatar
Anonymous
Admin
December 17, 2018 at 10:15 AM

did zun add anymore secrets?

Reply
avatar
judg3GH
Admin
December 18, 2018 at 1:29 AM

I've covered pretty much everything I was able to find and change.
I wish I could extend the article but I don't have enough experience to get more in-depth.

Reply
avatar
Unknown
Admin
July 28, 2021 at 5:27 AM

I believe there is no problem if you make the string smaller than the space allocated at the executable file's .data section, as longer as you place a null terminator (hex 0x00) right after it.

Reply