NearInfinityBrowser / NearInfinity

An Infinity Engine Browser and Editor
GNU Lesser General Public License v2.1
85 stars 37 forks source link

How is Near Infinity fixing this keyfile bug in bg2 #128

Closed beefucurry closed 4 years ago

beefucurry commented 4 years ago

Hello,

In the bg2ee v2.5 keyfile "chitin.key" it lists the resource BDHELM16, the Circlet of Lost Souls, as having rtype 1006 (spells) and being in data/Patch25.bif.

By searching the data/*.bif files directly, I can see the item "Circlet of Lost Souls" is actually in data/Patch2.bif with the correct rtype 1005 (items).

Somehow Near Infinity is able to correctly find the real item file in Patch2.bif, instead of looking for the incorrect spl file that chitin.key directs BDHELM16 towards. Can someone tell me how it is doing that? I'm using https://gibberlings3.github.io/iesdp/file_formats/index.htm to understand the file formats and am currently trying to work through the java source code.

Edit: Nevermind I finally got it, a later entry named bdhelm16 overrides the previous one, I wasn't noticing because of the different case. If the owner of the repository would delete or close this, I would appreciate it. Thanks again for the nice tool that NearInfinity is.