pylivemaker icon indicating copy to clipboard operation
pylivemaker copied to clipboard

Failing to edit a Call command

Open plotratio719 opened this issue 1 year ago • 5 comments
trafficstars

  • pylivemaker version:1.2.0
  • Python version:3.10.9
  • Operating System:WindowsOS
  • LiveMaker game:

I need to edit a line with a call command because there're some text which need to be translated in it. When I try to edit the line with "lmlsb edit" command, it shows "Cannot edit Call commands". I don't need to edit any call commands but I need to replace the text displayed in the game into another language. Is there any other way to edit the Call commands?

cmd_HsiEpk0fda

plotratio719 avatar Jan 27 '24 12:01 plotratio719

Editing Call commands isn't supported in lmlsb edit since modifying them is dangerous (in some cases changing these text strings will break your game).

You may want to try pylivemaker-tools for translating this text. It's a set of scripts made by another user that supports more aggressive string editing than lmlsb edit, and should work for translating your Call commands. Just be aware that it's not officially part of pylm and there's no guarantee modifying these commands is safe to do.

https://pylivemaker.readthedocs.io/en/latest/usage.html#pylivemaker-tools https://github.com/Stefan311/pylivemaker-tools

pmrowla avatar Jan 28 '24 01:01 pmrowla

Thank you for your reply. I've used the pylivemaker-tools by Stefan311, however the extractstrings command can only extract a part of lines of the lsb file, not including the line of Call command which I need to translate. But thank you very much for offering a better way to edit the lsb file.

plotratio719 avatar Jan 28 '24 06:01 plotratio719

I can look into adding support for editing unsafe commands with an additional flag, but it's not something I'll be able to get to right away as I don't have much time to work on pylm at the moment.

pmrowla avatar Jan 28 '24 06:01 pmrowla

You don't have to put a rush on it of course, I'm looking for your update. Thanks for your effort on pylm, it really helps me a lot.

plotratio719 avatar Jan 28 '24 07:01 plotratio719

I'm going to report another question. When I'm trying to edit the Caption Command by using lmlsb edit, I found that although the Caption Command can be editted, I can only edit some of them. The text I need to translate is in the PR_TEXT (分岐があります。このシナリオは途中から開始することができません。), but it is skipped by lmlsb edit. Here is the code.

381: Caption "シナリオ選択テキスト3" "シナリオ選択背景"  20 190      "MS 明朝" 25   16777215 1 0 0           1 "分岐があります。このシナリオは途中から開始することができません。" 0 0 1  0        0    0

Enter new value for each field (or keep existing value)
Name ["シナリオ選択テキスト3"]: <skipping uneditable field>
PR_PARENT ["シナリオ選択背景"]: <skipping uneditable field>
PR_SOURCE []: <skipping uneditable field>
PR_LEFT [20]:
PR_TOP [190]:
PR_ZOOMX []: <skipping uneditable field>
PR_ALPHA []: <skipping uneditable field>
PR_PRIORITY []:
PR_OFFSETX []: <skipping uneditable field>
PR_OFFSETY []: <skipping uneditable field>
PR_FONTNAME ["MS 明朝"]: <skipping uneditable field>
PR_FONTHEIGHT [25]:
PR_FONTSTYLE []: <skipping uneditable field>
PR_LINESPACE []:
PR_FONTCOLOR [16777215]:
PR_ANTIALIAS [1]:
PR_PAUSED [0]:
PR_REPEAT [0]:
PR_ANGLE []: <skipping uneditable field>
PR_ONMOUSEMOVE []: <skipping uneditable field>
PR_ONMOUSEOUT []: <skipping uneditable field>
PR_ONLBTNDOWN []: <skipping uneditable field>
PR_ONLBTNUP []: <skipping uneditable field>
PR_ONRBTNDOWN []: <skipping uneditable field>
PR_ONRBTNUP []: <skipping uneditable field>
PR_ONWHEELDOWN []: <skipping uneditable field>
PR_ONWHEELUP []: <skipping uneditable field>
PR_ONPLAYEND []: <skipping uneditable field>
PR_VISIBLE [1]:
PR_TEXT ["分岐があります。このシナリオは途中から開始することができません。"]: <skipping uneditable field>
PR_HALIGN [0]:
PR_AUTOSCRAP [0]:
PR_IGNOREMOUSE [1]:
PR_CURSOR []: <skipping uneditable field>
PR_POSZOOMED [0]:
PR_ONMOUSEIN []: <skipping uneditable field>
PR_ONIDLE []: <skipping uneditable field>
PR_CLIPLEFT []: <skipping uneditable field>
PR_CLIPTOP []: <skipping uneditable field>
PR_CLIPWIDTH []: <skipping uneditable field>
PR_CLIPHEIGHT []: <skipping uneditable field>
PR_ZOOMY []: <skipping uneditable field>
PR_ANIPAUSED [0]:
PR_ONKEYDOWN []: <skipping uneditable field>
PR_ONKEYUP []: <skipping uneditable field>
PR_ONKEYREPEAT []: <skipping uneditable field>
PR_HANDLEKEY [0]:
PR_ONFOCUSIN []: <skipping uneditable field>
PR_ONFOCUSOUT []: <skipping uneditable field>
PR_TAG []: <skipping uneditable field>
PR_FLOATANGLE []: <skipping uneditable field>
PR_FLOATZOOMX []: <skipping uneditable field>
PR_FLOATZOOMY []: <skipping uneditable field>

plotratio719 avatar Feb 15 '24 13:02 plotratio719