pylivemaker icon indicating copy to clipboard operation
pylivemaker copied to clipboard

Failing to patch a translated menu lsb

Open ship-j opened this issue 2 years ago • 3 comments

  • pylivemaker version: 1.0.4
  • Python version: 3.11.4
  • Operating System: Windows

Description

I'm attempting to lmpatch an edited ノベルシステム\■初期化.lsb but, like in this post, when I extract the patched exe it still has the older version of the lsb.

What I Did

I lmlsb edited ノベルシステム\■初期化.lsb to translate menu options in only the システムメニュー項目名 array. I tried editing only the first named menu value ("delete character"?) to "test," which shows when lmlsb dumping the edited lsb. I then lmpatch exe ■初期化.lsb which says:

Generating new archive contents... [####################################] 100% b Writing new archive files... Cleaning up temporary files...

As it would a success, iirc. I then delete my save, as per the note at the end of this post and load up the game. The ingame menu remains untranslated though, and when I extract the exe again and dump the lsb, it reflects none of the changes.

I tried extractmenu which did not detect any of the menu options. I think it might only detect menu options for actual gameplay, and not system menus?

Feeling pretty dull here and not sure what I'm doing wrong. Any help is very much appreciated.

ship-j avatar Jul 25 '23 15:07 ship-j

As you noted extractmenu won't work for the system menus, the in-game choice menus use a separate set of commands than the system ones.

Are you sure that your game's system menu is actually using the text options from ノベルシステム\■初期化.lsb? The system LSB's contain default menus but in a lot of cases the actual game will be using images for the system menu buttons and not the text from the LSB.

pmrowla avatar Jul 26 '23 02:07 pmrowla

A good point. Is that otherwise the correct procedure, and would have worked if the game did use the menu text from the lsb? I’ll have to check for menu images tonight. Appreciate the response!

ship-j avatar Jul 26 '23 17:07 ship-j

It's been a while since I looked into the system menus, but I think what you were doing is correct for when a game is using the text menus.

pmrowla avatar Jul 30 '23 01:07 pmrowla