[DiscordArchive] Should it respect MPQ priority in case you have duplicate files?
[DiscordArchive] Should it respect MPQ priority in case you have duplicate files?
Archived author: robinsch • Posted: 2025-02-24T11:34:27.389000+00:00
Original source
Should it respect MPQ priority in case you have duplicate files?
Archived author: robinsch • Posted: 2025-02-24T11:34:54.401000+00:00
Original source
because it loads the same set of MPQs but not in the correct priority order; i guess if you want to really replicate what the client does it should extract it with respecting the client load order
Archived author: Tea • Posted: 2025-02-24T11:50:09.348000+00:00
Original source
it is the correct client order
Archived author: robinsch • Posted: 2025-02-24T11:52:41.360000+00:00
Original source
Are you sure it respects 2nd arg of SFile::OpenArchive?
Archived author: robinsch • Posted: 2025-02-24T11:53:05.118000+00:00
Original source
I just glanced over it but it doesn't seem to be the correct order, e.g. localized patches according to the array order have higher priority than patch-?.MPQ wildcard which is not correct.
Archived author: robinsch • Posted: 2025-02-24T11:54:56.007000+00:00
Original source
```
alternate.MPQ Priority: 134
patch-A.MPQ Priority: 133
patch-3.MPQ Priority: 132
patch-2.MPQ Priority: 131
enUS\patch-enUS-3.MPQ Priority: 130
enUS\patch-enUS-2.MPQ Priority: 129
patch.MPQ Priority: 128
enUS\patch-enUS.MPQ Priority: 127
base.MPQ Priority: 100
expansion.MPQ Priority: 49
lichking.MPQ Priority: 48
common.MPQ Priority: 47
common-2.MPQ Priority: 46
enUS\locale-enUS.MPQ Priority: 45
enUS\speech-enUS.MPQ Priority: 44
enUS\expansion-locale-enUS.MPQ Priority: 43
enUS\lichking-locale-enUS.MPQ Priority: 42
enUS\expansion-speech-enUS.MPQ Priority: 41
enUS\lichking-speech-enUS.MPQ Priority: 40
```
Archived author: robinsch • Posted: 2025-02-24T11:55:03.321000+00:00
Original source
here is the priority the client uses for 335 client
Archived author: Tea • Posted: 2025-02-24T13:15:38.135000+00:00
Original source
no, i didnt even look at that arg, only SFile::OpenArchive call order