WzComparerR2 icon indicating copy to clipboard operation
WzComparerR2 copied to clipboard

Comparison picking up redundant (null?) changes

Open PirateIzzy opened this issue 11 months ago • 9 comments

I've noticed that in my comparisons, the Comparer picks up a lot of redundant changes like so:

Image Image

I'm not sure if anything actually changed with these, but I didn't see anything obvious.

PirateIzzy avatar Apr 10 '25 23:04 PirateIzzy

In addition, I noticed that the Comparison lists all of these as changed, but most of them don't have any changes to show at all, and don't link to an actual section.

Image Image Image

The QuestInfo\reward\exp values also show as changed despite being the same value and same type: Image

PirateIzzy avatar Apr 11 '25 01:04 PirateIzzy

I'll try to explain one by one:

  1. It is due to the absense of Equals function on these types, and needs a fix.
  2. N*xon introduced Pages field to all existing Canvas objects so you can see the img checksum also changed after the latest patch, but comparer does not account for the change. (now it is by design)
  3. Value type changed from int32 to int64.

Kagamia avatar Apr 24 '25 05:04 Kagamia

For 3, is it possible to convert from int32 to int64 before the comparison, or is that out of the scope of this issue?

PirateIzzy avatar Apr 24 '25 08:04 PirateIzzy

@PirateIzzy Yes that could be a candidate solution. But it can't cover all cases that NX may change int32 to int64 or string or float type with the same literal value.

I prefer to also print type change if possible.

Kagamia avatar Apr 26 '25 03:04 Kagamia

Up to you if you want to print type change.

PirateIzzy avatar Apr 27 '25 17:04 PirateIzzy

The lastest commit should address all of the issues mentioned above (but not tested).

Kagamia avatar Apr 29 '25 06:04 Kagamia

So I integrated it into my build to test it out, and also tested your build. These are my findings:

Old version (my build): Image

New version (your build): Image

New version (my build): Image

I'm not sure why my latest build has 1 0 appended at the end, as it wasn't present before.

PirateIzzy avatar Apr 29 '25 09:04 PirateIzzy

With @HikariCalyx 's JMS build: Image

Additionally, non-image entries also have extra numbers added: Image

The issue specified to KMS fork is fixed with this commit: https://github.com/HikariCalyx/WzComparerR2-JMS/commit/b75a406858ba584703779575a99f3f4762407f18

HikariCalyx avatar Apr 29 '25 10:04 HikariCalyx