WzComparerR2 icon indicating copy to clipboard operation
WzComparerR2 copied to clipboard

Etc.wz in GMS client file is not decoded correctly

Open wwj010 opened this issue 3 years ago • 5 comments

image This shows up in GMS v236

wwj010 avatar Oct 06 '22 05:10 wwj010

I don't have a GMS client, hope someone could provide a sample file to me :>

Kagamia avatar Oct 06 '22 10:10 Kagamia

Only occurs when WzVersionDetection is set to default. image As a workaround you can set it to fast.

The root cause is a little complicated, Wz_Image.TryDetectLuaEnc() method has some side effect, it will overwrite the crypto keys in Wz_Structure level, and finally cause the next Wz loading with a wrong crypto key.

Kagamia avatar Oct 07 '22 15:10 Kagamia

image

KMS version is not affected. (I've loaded with WzVersionDetection = default)

You can refer:

  • KENNYSOFT@e21868553f9b6f50044def6a78b7b682f89e2045 for KENNYSOFT#73
  • KENNYSOFT@74cdfadd1b3b6b90c2d8a723ba3278827e02181a for KENNYSOFT#74

KENNYSOFT avatar Oct 08 '22 03:10 KENNYSOFT

@KENNYSOFT cool! really helps.

Kagamia avatar Oct 08 '22 04:10 Kagamia

Reference from https://github.com/KENNYSOFT/WzComparerR2/commit/e21868553f9b6f50044def6a78b7b682f89e2045 Only store encType instead of entire Wz_Crypto for saving memory cost.

Kagamia avatar Oct 11 '22 15:10 Kagamia