Modcraft - The community dedicated to quality WoW modding!

Featured => Noggit => Topic started by: Magnus on March 04, 2015, 05:34:54 pm

Title: [Solved] Order rule of reading patches in Noggit
Post by: Magnus on March 04, 2015, 05:34:54 pm
I think Noggit (all versions) reads the patch files in a wrong order.

How to proof:
The only thing I want to change is an area name. F.ex. Quel'talas into something different. Therefore I change the AreaTable.dbc and make a patch patch-6.MPQ The patch I copy into the WoW Client data folder and to the server dbc folder. That works fine. If you go ingame the area has the new name.

But it doesn't work in that way in Noggit. I also copy the patch-6.MPQ into the data folder of my Noggit WoW client.
In Noggit still the old area name appears. Looking to the log, this is the order patches are read:
Code: [Select]
[Debug] Opened archive E:World of Warcraft - NoggitData/common.MPQ
[Debug] Opened archive E:World of Warcraft - NoggitData/common-2.MPQ
[Debug] Opened archive E:World of Warcraft - NoggitData/expansion.MPQ
[Debug] Opened archive E:World of Warcraft - NoggitData/lichking.MPQ
[Debug] Opened archive E:World of Warcraft - NoggitData/patch.MPQ
[Debug] Opened archive E:World of Warcraft - NoggitData/patch-2.MPQ
[Debug] Opened archive E:World of Warcraft - NoggitData/patch-3.MPQ
[Debug] Opened archive E:World of Warcraft - NoggitData/patch-6.MPQ
[Debug] Opened archive E:World of Warcraft - NoggitData/enGB/locale-enGB.MPQ
[Debug] Opened archive E:World of Warcraft - NoggitData/enGB/expansion-locale-enGB.MPQ
[Debug] Opened archive E:World of Warcraft - NoggitData/enGB/lichking-locale-enGB.MPQ
[Debug] Opened archive E:World of Warcraft - NoggitData/enGB/patch-enGB.MPQ
[Debug] Opened archive E:World of Warcraft - NoggitData/enGB/patch-enGB-2.MPQ
[Debug] Opened archive E:World of Warcraft - NoggitData/enGB/patch-enGB-3.MPQ
So I think my patch 6 is overwritten by one of the patches that apears after my one in the log.


Next step:
I copy my patch-6.mpq to patch-enGB-6.MPQ and put it in the enGB folder. After restarting Noggit the area name is shown correctly with my own custom name.

Looking to the log;
Code: [Select]
[Debug] Opened archive E:World of Warcraft - NoggitData/common.MPQ
[Debug] Opened archive E:World of Warcraft - NoggitData/common-2.MPQ
[Debug] Opened archive E:World of Warcraft - NoggitData/expansion.MPQ
[Debug] Opened archive E:World of Warcraft - NoggitData/lichking.MPQ
[Debug] Opened archive E:World of Warcraft - NoggitData/patch.MPQ
[Debug] Opened archive E:World of Warcraft - NoggitData/patch-2.MPQ
[Debug] Opened archive E:World of Warcraft - NoggitData/patch-3.MPQ
[Debug] Opened archive E:World of Warcraft - NoggitData/patch-6.MPQ
[Debug] Opened archive E:World of Warcraft - NoggitData/enGB/locale-enGB.MPQ
[Debug] Opened archive E:World of Warcraft - NoggitData/enGB/expansion-locale-enGB.MPQ
[Debug] Opened archive E:World of Warcraft - NoggitData/enGB/lichking-locale-enGB.MPQ
[Debug] Opened archive E:World of Warcraft - NoggitData/enGB/patch-enGB.MPQ
[Debug] Opened archive E:World of Warcraft - NoggitData/enGB/patch-enGB-2.MPQ
[Debug] Opened archive E:World of Warcraft - NoggitData/enGB/patch-enGB-3.MPQ
[Debug] Opened archive E:World of Warcraft - NoggitData/enGB/patch-enGB-6.MPQ
Now you can see that my patch patch-enGB-6.MPQ was the last one. But that's not the way wow is reading patches.

I think they should be read in this way (or similar):
Code: [Select]
Data/common.MPQ
Data/common-2.MPQ

Data/expansion.MPQ
Data/enGB/expansion-locale-enGB.MPQ

Data/lichking.MPQ
Data/enGB/lichking-locale-enGB.MPQ

Data/patch.MPQ
Data/enGB/patch-enGB.MPQ

Data/patch-2.MPQ
Data/enGB/patch-enGB-2.MPQ

Data/patch-3.MPQ
Data/enGB/patch-enGB-3.MPQ

Data/enGB/locale-enGB.MPQ

Data/patch-*.MPQ
Data/enGB/patch-enGB-*.MPQ


Hope you get the idea what I want to say  :D
Title: Re: [Bug] Order rule of reading patches in Noggit
Post by: Steff on March 11, 2015, 05:38:17 am
You should put DBCs into a local patch. Also all interface stuff.
Title: Re: [Bug] Order rule of reading patches in Noggit
Post by: Magnus on March 11, 2015, 11:41:27 am
After all I also found my way where to put patches into the different application folders.

It seems that TC mapextractor, Noggit and the WoW client reads patches in 3 different ways.

While TC claims not to be interested in client modding at all it may be ok for them.

However, Noggit should read patches exactly in the same way as the WoW client is doing it.

For me it works well with a single patch (f.ex. patch-6) including dbcs, interface, maps etc. However I use multilingual DBCs, means I use both column english and german.
Title: Re: [Bug] Order rule of reading patches in Noggit
Post by: Skarn on March 11, 2015, 04:56:10 pm
Locale patches have heigher priority than the usual ones. The loading order is similar to the game.
Title: Re: [Bug] Order rule of reading patches in Noggit
Post by: Magnus on March 11, 2015, 08:19:01 pm
Similar is not exactly ;-)

For example WoW reads the patch-6.mpq AFTER the patch-enGB-3, even the last one is a locale one.
IMHO patches should be read with this pattern:
Code: [Select]
/Data/common.MPQ
/Data/common-2.MPQ
/Data/expansion.MPQ
/Data/enGB/expansion-locale-enGB.MPQ
/Data/enGB/expansion-locale-deDE.MPQ
/Data/lichking.MPQ
/Data/enGB/lichking-locale-enGB.MPQ
/Data/enGB/lichking-locale-deDE.MPQ
/Data/patch.MPQ
/Data/enGB/patch-enGB.MPQ
/Data/enGB/patch-deDE.MPQ
/Data/patch-2.MPQ
/Data/enGB/patch-enGB-2.MPQ
/Data/enGB/patch-deDE-2.MPQ
/Data/patch-3.MPQ
/Data/enGB/patch-enGB-3.MPQ
/Data/enGB/patch-deDE-3.MPQ
/Data/enGB/locale-enGB.MPQ
/Data/enGB/locale-deDE.MPQ
/Data/patch-4.MPQ
/Data/enGB/patch-enGB-4.MPQ
/Data/enGB/patch-deDE-4.MPQ
/Data/patch-5.MPQ
/Data/enGB/patch-enGB-5.MPQ
/Data/enGB/patch-deDE-5.MPQ
/Data/patch-*.MPQ
/Data/enGB/patch-enGB-*.MPQ
/Data/enGB/patch-deDE-*.MPQ
Title: Re: [Bug] Order rule of reading patches in Noggit
Post by: Skarn on March 12, 2015, 07:05:44 am
No, it does not. there are also some differences between different clients. For example, Russian client can't load DBCs and UI from data patches while US one does it perfectly.
Title: Re: [Bug] Order rule of reading patches in Noggit
Post by: Magnus on March 12, 2015, 08:06:44 am
That's really verry strange.  :shock:

Well, I have tested it only for english and german clients.

And also only for 3.3.5a. Don't know how later versions handle this.
Title: Re: [Solved] Order rule of reading patches in Noggit
Post by: Skarn on March 12, 2015, 10:22:17 am
Later versions use a different system of updates.