Today ima going to share how to get Hook Code in a tedious way. (ノಥДಥ)ノ YASS! I'll call this Combo 3 - JPCSP+Capture2Text+Textractor+TA. Why? Coz I feel like it.. (ノ≧ڡ≦) Teehee~!
Thanks to VNR, AGTH, ITHVNR, and other godly software, most of the J-VN that we encounter can be translated to English without a problem. But 30% of those VN text threads can't be found and need a specific H-Code. We can discover H-Code in the internet forum like here, but what if you can't?
God bless those who understand Japanese, but alas, I'm not the chosen one #pepesad. (⊃◜⌓◝⊂) That convinced me that ima not alone in this dire predicament. Cons of this method, though, every time you quit from Jpcsp, the address will get reset. So is the H-code. (☍﹏⁰)
I hope the user who comes to this post knows how this VN translation works. As the following post is not for the faint heart. It might cause confusion, nauseous, depression, mild concussion (banging your head for an answer, yes I did that), and joy ✌(◕‿-)✌ Having said that, if you're not convinced enough to turn back... Then I wish you, warriors, great luck on the journey ʕ •ᴥ•ʔ/
Warning!
I purposely include my specs above as these processes are pretty memory-consuming, so please notice pc/laptop limitation if a slowness/crash happens in the middle of searching for something.
The total of memory in the below process is 7+ GB.
These are changes that I made apart from default settings.
Jpcsp
Options > Video > Filters > Check Anisotropic
Click on start-windows-amd64.bat. The command prompt will appear. While a Java application (orange icon) will start, don't close any of these two.
Load .iso of your PSP VN. After a black background occupies Jpcsp, click on Run below File & Options.
Things to note for Jpcsp
Don't expect the save state to work like PPSSPP. I'm using a normal in-game process for Load and Save data.
Seiyuu's voice sounds broken in Jpcsp, not sure why. Gonna take care of that after I find the solution.
I haven't configured the Jpcsp graphics setting to get the same result as PPSSPP, not sure if it can do that. So currently, I only use the Anisotropic filter.
Things to note for in-game
Set the 'Show All Text' setting or 'Speed for Text to Max' for the game, which would help during text/hex searching. This step requires a random test if you had no idea of Japanese like me. ᕕ( ᐛ )ᕗ
If there's an option for textbox transparency, I'll recommend setting it to 100%.
Find dialogue or text which doesn't have any new line or weird symbol like this screenshot.
Leave it be, and that's all for the Jpcsp side.
You can skip this section if you can write Japanese words well. Not me ༼;´༎ຶ ༎ຶ༽
Using another OCR software is OK, as long as we can get the Japanese words.
Run Capture2Text.exe
The red icon for Capture2Text will appear on the bottom right side. Choose Preferences if you need to adjust the keys.
Capture the image using 'q' and adjust the height/width according to in-game text size. Press 'q' again to stop capture, and it will show the result as
below.
Things to note about Capture2Text
You won't get it on 1st try. I can guarantee that |ʘvʘ). Train your patience in this part lol.
After the 10th try,
you will get 80% of the characters correctly. Just copy-paste that to g*ogle and find the similar Shift-JIS character in it. That's my quickest hack for this. (~^.^)~
Another hack 2nd, go to G*ogle Translate and set language to Japanese. And find a pencil icon and click it. Now someone can read your amai-zing kanji ( ╹ਊ╹).
End result: 人間の思い込みには不満もある。Banzaiii! ۜ\(סּںסּَ` )/ۜ
This step is an optional one, but having this helps the result.
Use Translation Aggregator to change Shift-JIS character to Hex in the Original Text column like the screenshot below. It should return something gibberish like this. 906C8AD482CC8E7682A28D9E82DD82C982CD9573969E82E082A082E98142
Run Cheat Engine.exe and click on 'Select a process to open in green highlight. It will show what processes are available to choose from, select Jpcsp, and click Open.
Check the Hex box and put the gibberish things inside the array of a byte. Remember to set the Scan Type and Value Type first, then tick the checkbox for Pause the game while scanning. After done, click First Scan to proceed.
If there's any result based on address, try to discern which has a cleaner memory viewer.
889D2A58 (cleaner)
88988BD8
The result is those addresses with cleaner data (889D2A58, 88A38AA4, 88F39738, and 89E44148). It shows that these would be the possible hook code result from
Textractor.
Cheat Engine capability is not limited to this, but to do more will require knowledge from Assembly language, which will spiral into a hurricane.
So, no more. └[∵┌]└[ ∵ ]┘[┐∵]┘
I got to know this software from someone who recommends it in the Comments section.
Thanks again for letting me know ۜ\(סּںסּَ` )/ۜ.
Run Textractor.exe according to the Jpcsp version that you use (x86 or x64)
Attach Jpcsp (Java.exe) to Textractor
After attached, click Search for Hooks > Search for Specific Text and put 人間の思い込みには不満もある。 In the Text field, then OK.
After 1-2 mins, when the result appears in the dropdown, there will be a notification about insert for the hook or any error
.-relax, that error is harmless (❍ᴥ❍ʋ)
The result will appear in the dropdown like this.
Each of them will look like this screenshot.
To know which one is the correct hook code, try to proceed to the following text inside the game and see which Hook Code / H-Code contains new text below.
If you hook to TA, it should look like this.
-see that line break? that's why I set remove line break in TA settings
End of this tutorial~ ( ˘ ³˘)♥
If you manage to reach here while doing all those steps, then gratz, warriors. ヾ(⌐■_■)ノ♪
I hope this tedious way can help humanity to overcome the stupid hook code. kekekeke.
Thank you again for staying with me till this ends.
(シ_ _)シ Until the next one. *POOF
23 comments:
Useful? Not helpful enough? Feel free to rant about it in the comment sections. And be a bit specific about problem, yeah? Saying it doesn't work, wouldn't help much. Like finding nemo in the sea. Still can find, but heck difficult. ଘ(੭*ˊᵕˋ)੭* ̀ˋ ɪɴᴛᴇʀɴᴇᴛs
Hello there! Tysm for the tutorial ;-; have you tried with Diabolik Lovers or Utapri?
ReplyDeleteI got one of these psp game lying somewhere. Gonna find it and let you know the result. (´∀`)
DeleteTbh I tried your tutorial and idk why but, well, the first thing it only gives me like 2 or 3 hook codes lol and none works till the point of showing the next translations -w- I guess I'm doing something wrong x-x
DeleteHey Sayuri, seems like Diabolik Lover, More Blood works fine.
DeleteTry to find word that didn't have any space or symbol like this one, そこまでにしなさい。
https://drive.google.com/open?id=1b00B7zsm_7YFy-ng50jtgba1-Ob2c57g
Tysm! I finally managed to make it work with DL More Blood ;-; also I just tried Kamigami no Asobi (also changed the text speed of the game) but it just extracts the first line or some text, not the entire dialogue x.x
ReplyDelete(^v^)Glad to know that it works on your part. I would recommend trying 5 times with each type of text in the game.
DeleteGot the same problem with Kamigami No asobi, only extract first line of the text T.T
DeleteHi Nhu Le, it means you haven't found the correct address. Try to find sentence without special characters. This is all part of trial and error afterall.
DeleteOh my, thank you for crediting me! I'm glad you found my screaming into the void useful lol.
ReplyDeleteThanks for this tutorial, I've been looking for a tutorial to point people to when they are trying to generate their own hook codes so this is very useful ^.^ I'm going to link this in my recently revamped tutorial for hooking visual novels, hope you don't mind.
Wow, senpai has notices me.
DeleteAnything for uuu.
Really interesting tutorial. To be honest I tried this for one psp game (with the HAT method) but it didn't work. Maybe it is because I was using PPSSPP, cheat engine couldn't detect any text at all. Your tutorial gives me hope again, if I happen to fail again, would you accept to give it a try with my game?
ReplyDeleteThank you anyway!
Sure, just let me know the title. ヘ(◕。◕ヘ)
DeleteOk, sadly it didn't work. The game is Hentai Ouji to Warawanai Neko on PSP. Cheat Engine coudln't find anything as well. Guess I am out of luck. Can you tell me if you happen to have more luck than me?
DeleteThank you
hello, so i came across your blog here looking for help trying to set up VNR and getting everything to work right, that being said i have no idea where to start i got the VN onto VNR and followed the instructions from your previous post but text comes out as kanji, the blue text comes out as the same kanji in the VN, i dont really know what im doing wrong, sorry for all the text.
ReplyDeleteHi Moon, from your statement I don't think you need this post as the kanji appeared. It means VNR recognize the text thread, you just need to make sure the VNR translation setting is working properly. Good luck.
Deletethats the thing, i thought i did everything correctly but it seems i missed something, is there a step by step walkthrough or something of that sort?
DeleteYou can refer to this post about VNR setting. https://scan-vn.blogspot.com/2020/02/about-visual-novel-reader-new.html
Deletegot it thanks
DeleteHello, i wanna ask about Attacht Jpc5c what if doesnt appear since mine doesnt
ReplyDeleteHi filed, try using admin privilege for Textractor.
DeleteI don't even knew about h-codes. This post helped me a lot, your writing is very kind and cute too. God bless you.
ReplyDeleteAw thanks, glad to know that this helped some ppl out there (ノ^_^)ノ.
Deleteyou can't help me i really want to play kamigami no asobi,vintamin series and ishin renka ryouma and i can't find any hook for these games i tried everything with no luck i really want to play these games could you help me i don't know what else to do (┬┬﹏┬┬)
ReplyDelete