Artikash / Textractor

Extracts text from video games and visual novels. Highly extensible.
GNU General Public License v3.0
2.13k stars 205 forks source link

Reader ERROR (likely an incorrect R-code) in UserHook #551

Closed DySQRD closed 3 years ago

DySQRD commented 3 years ago

Hello, since yesterday I have tried to get Textractor to work with World End Economica. This is my first time using Textractor and reading Light Novel actually, so I may be doing something totally wrong and I would be very grateful if you told me what it is. Sorry for any inconvenience. Translating the game is not my intent, WEE already has english translation, however I would like to send unknown kanjis to clipboard so I can create Anki Cards with Yomichan.

I've faced multiple problems which I've been able to solve... somehow, but I cannot get past this one. I managed to save some working hooks using the "Save hooks" option. This is what my SavedHooks.txt looks like :

D:\Steam\steamapps\common\WEE01\WEE1 HD\WEE1.exe , RS932#@5445374 D:\Steam\steamapps\common\WEE01\WEE1 HD\WEE1.exe , |99302830:0:HWFX4@5DF6348 D:\Steam\steamapps\common\WEE01\WEE1 HD\WEE1.exe , |99041348:0:HWFX4@5E740E8 D:\Steam\steamapps\common\WEE01\WEE1 HD\WEE1.exe , RS932#@40622AD , RQ@10C6C44C , RQ@10694C8 , RQ@10C6D78C , RQ@10C682DC , RQ@10C6869C , RQ@10C6DF0C , RQ@10C6DB4C , RQ@10C68A5C , RQ@10C67EEC , |0:0:RS932#@40622AD D:\Steam\steamapps\common\WEE01\WEE1 HD\WEE1.exe , RQ@10C682DC , RQ@10C68A5C , RS932#@40622AD , RQ@10C67EEC , RQ@10C6DB4C , RQ@10C6869C , RQ@10C6C44C , RQ@10C6DF0C , |88359198:0:HWFX4@53CC890 D:\Steam\steamapps\common\WEE01\WEE1 HD\WEE1.exe , RQ@10C682DC , RQ@10C68A5C , RS932#@40622AD , RQ@10C67EEC , RQ@10C6DB4C , RQ@10C6869C , RQ@10C6C44C , RQ@10C6DF0C , |88345382:0:HWFX4@53E7F28 D:\Steam\steamapps\common\WEE01\WEE1 HD\WEE1.exe , RQ@10C682DC , RQ@10C68A5C , RS932#@40622AD , RQ@10C67EEC , RQ@10C6DB4C , RQ@10C6869C , RQ@10C6C44C , RQ@10C6DF0C , |87958238:0:HWFX4@53C3DB0 D:\Steam\steamapps\common\WEE01\WEE1 HD\WEE1.exe , RQ@10C682DC , RQ@10C68A5C , RS932#@40622AD , RQ@10C67EEC , RQ@10C6DB4C , RQ@10C6869C , RQ@10C6C44C , RQ@10C6DF0C , |88358988:0:HWFX4@54440F0 D:\Steam\steamapps\common\WEE01\WEE1 HD\WEE1.exe , RQ@10C682DC , RQ@10C68A5C , RS932#@40622AD , RQ@10C67EEC , RQ@10C6DB4C , RQ@10C6869C , RQ@10C6C44C , RQ@10C6DF0C , |88345382:0:HWFX4@53E7F28

When closing and opening WEE again, Textractor looks through all the hooks I saved and tries to load them, but it results every single time in "Reader ERROR (likely an incorrect R-code) in UserHook". So all my working hooks are now unusable. When I type them into "Add hooks", it results in "invalid code". However any code with this form -> "RSXXX#@XXXXXX" will be accepted ("inserting hook: UserHook") , though it does not add any hook to the list (with the exception of the very first one : RS932#@5445374, but this hook doesn't work with the game). Adding a # before @ codes that does not work do not solve the problem.

So tl;dr, I cannot get my hooks to work after closing the game.

DySQRD commented 3 years ago

Update: removing the |s in SaveHooked.txt prevents the errors from happening, but now all of my hooks are unusable. So I would have to look for a new hook every time I launch the game. Any tips ?

luojunyuan commented 3 years ago

Code begin with R (Read code) may not be used when next time game start. The HD version of the game is made by unity. So you could try XUnity. It also supports copy text to clipboard.

DySQRD commented 3 years ago

Code begin with R (Read code) may not be used when next time game start. The HD version of the game is made by unity. So you could try XUnity. It also supports copy text to clipboard.

Thank you, I will try XUnity later today !

About the R Code, do you mean that they only work for one session of the game or that there is a possibility that they won't work the next time the game is launched ? Why does Textractor has an option to save them then ? How could I obtain the right code to be used every time for this game ?

Artikash commented 3 years ago

The R code will rarely work between sessions on a few old game engines. It is basically guaranteed to not work with Unity, but Textractor lets you attempt to save them just in case. But there is a reliable way to save some Unity hooks described in https://github.com/Artikash/Textractor/issues/307