project-yuki / planning

Project YUKI planning
GNU General Public License v3.0
0 stars 0 forks source link

Senseless Text Interceptor #1

Closed tinyAdapter closed 6 years ago

tinyAdapter commented 6 years ago

For now, text hooker is just sending all texts "as is" to the translator window.

However, for those which texts are "senseless" (which means, they contain too much noises and definitely don't have any texts we need), it should be intercepted and do not send to the translator window. Otherwise, hooker settings page of the translator window will be so laggy that cannot work at all.

For example, something like

sys_wipe__sys_wipesys_wipesys_wipe__sys_wipesys_wipesys_wipe__sys_wipesys_wipesys_wipe__sys_wipesys_wipesys_wipe__sys_wipesys_wipesys_wipe__sys_wipesys_wipe__sys_wipe__sys_wipe00_プロローグ100_プロローグ100_プロローグ100_プロローグ100_プロローグ100_プロローグ100_プロローグ100_プロローグ100_プロローグ100_プロローグ100_プロローグ100_プロローグ100_プロローグ100_プロローグ100_プロローグ100_プロローグ100_プロローグ100_プロローグ100_プロローグ100_プロローグ100_プロローグ100_プロローグ100_プ ロローグ100...

and

_windowbtn_windowbtn_windowbtn_windowbtn_windowbtn_windowbtn_windowbtn_windowbtn_windowbtn_windowbtn_windowbtn_windowbtn_windowbtn_windowbtn_windowbtn_windowbtn_windowbtn_windowbtn_windowbtn_windowbtn_windowbtn_windowbtn_windowbtn_windowbtn_windowbtn_windowbtn_windowbtn_windowbtn_windowbtn_windowbtn_windowbtn_windowbtn_windowbtn_windowbtn_windowbtn_windowbtn_windowbtn_windowbtn_windowbtn_windowbtn_windowbtn_windowbtn_windowbtn_windowbtn_windowbtn_windowbtn_windowbtn_windowbtnwindowbtn...

(hooked from SiglusEngine)

should be throwed. But if you remove those hooks (which I did it firstly), the whole game crashes immediately.

So, there is supposed to be a senseless text interceptor by which:

  1. senseless texts are intercepted,
  2. rules should be customizable through configuration file,
  3. parsing process should be time-saving.

Ijyou.

tinyAdapter commented 6 years ago

First edition implemented. Closed.