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

Breaking change: KMST 1.2.1176 changed the structure of Mob and Skill. #265

Open
HikariCalyx opened this issue Jul 11, 2024 · 9 comments
Open

Comments

@HikariCalyx
Copy link
Contributor

HikariCalyx commented Jul 11, 2024

Mob and Skill related data are now stored at Data\Packs\Mob_00000.ms and Data\Packs\Skill_00000.ms, which of course, broke the WzComparerR2 again. Skill seems working fine for now, as Skill details are not fully migrated there.
image
image

My guess is, the data are RSA encrypted by NX as an effort to prevent WZ Editing, and the size is divisible by 256.

@Kagamia
Copy link
Owner

Kagamia commented Jul 11, 2024

😭

Farewell, wcR2.

@KENNYSOFT
Copy link
Contributor

Actually, Skill_00000.ms was already introduced at KMST 1.2.1173 (2024-05-16)

@Kagamia
Copy link
Owner

Kagamia commented Jul 13, 2024

@KENNYSOFT The community is currently working on new client disassemble.
So far we only know that *.ms is encrypted with Snow Cipher but no one knows the key nor the binary format.
The only thing I can do is just wait, I'm not very good at assembly language. And I'm also afraid that when we find the key, NX will replace it in the next version because there's no cost for them and players, the .ms files are only ~100 MB in size.

@HikariCalyx
Copy link
Contributor Author

KMS 1.2.393 has pushed with same encryption method implemented.

@Kagamia
Copy link
Owner

Kagamia commented Aug 10, 2024

#271

With the help of WcR2 community, the *.ms file is cracked.
I‘m not sure if the decryption algorithm could be disclosed now, it may be asked to be deleted due to DMCA.

@HikariCalyx
Copy link
Contributor Author

JMS v427 also has same encryption method implemented, fortunately the existing ms-file branch can handle it with no extra modifications required.
image

@Kagamia
Copy link
Owner

Kagamia commented Sep 28, 2024

I‘ll merge the PR by the next weekend, but the refactor is not complete yet, just for convenience.

@Kagamia
Copy link
Owner

Kagamia commented Oct 1, 2024

#271 Merged.

There're still some known issues that need to fix:

  1. wz_type semantic broken, waiting for refactor.
  2. skill_00000.ms/Skill/Recipe_92**.img can't load, because they're all stored in text format, needs to write a new parser.
  3. *.ms/**/pack_ignore.txt are plain text file, needs GUI support.
  4. entry checksum validation has not implemented yet.

@HikariCalyx
Copy link
Contributor Author

This change has been implemented to CMS v212 and TMS v266.
image

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

3 participants