Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error. #5

Open
k0chegar opened this issue on Jan 24, 2021 · 7 comments
Open

Error. #5

k0chegar opened this issue on Jan 24, 2021 · 7 comments

Comments

@k0chegar
Copy link

k0chegar commented on Jan 24, 2021

Hi!
Sorry to bother you. When starting the program, an error occurred. Can you tell me what's going on? Thanks!

image

Title | Harukoi * Otome Otome no Sono de Gokigen'you.
Original title | 春恋*乙女~乙女の園でごきげんよう。~

Thanks!

@cqjjjzr
Copy link
Owner

cqjjjzr commented on Jan 25, 2021

This may be due to a wrong Xor key.
Try to open your lcsebody1.lst with a hex editor(WinHex for example) and have a look at the first 16 bytes.

@k0chegar
Copy link
Author

k0chegar commented on Jan 25, 2021

image

@k0chegar
Copy link
Author

k0chegar commented on Jan 25, 2021

image

The last file is erroneous, here is a screenshot.

@cqjjjzr
Copy link
Owner

cqjjjzr commented on Jan 25, 2021

OK.. It's caused by a different key. If you have a Kotlin compiling environment(a Gradle will do), try to modify the index key in line 13 LCSEPackageUtility/src/main/kotlin/charlie/lcsetools/pkgutil/LCSEPackage.kt to 0x01010101. You may also need to modify the key for SNX files, please send the first bytes of the extracted .snx files.

@k0chegar
Copy link
Author

k0chegar commented on Jan 25, 2021

image
image
image

@k0chegar
Copy link
Author

k0chegar commented on Jan 25, 2021

key SNX file 0x02...

Now it works... but... If change the text in the "snx files" to Cyrillic, the game crashes...

image

Is it possible to change the font in the game on this engine? Given the fact that I'm quite stupid in programming.

@cqjjjzr
Copy link
Owner

cqjjjzr commented on Jan 26, 2021

Well, this needs some reverse engineering.

For Chinese translation, you need to modify the game client to:

  1. Change the font to a Chinese font (the font setting can exist in either SNX files or in EXE file, better to change both)
  2. Remove the character border check (which coerces the character in SHIFT-JIS range)

However, in the case of Cyrillic characters, because SHIFT-JIS includes Cyrillic character range, you can try to encode your text in SHIFT-JIS and drop it into the file, and see if it works without modifying the game.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants