Jump to content


Veszerin

Member Since 21 Jun 2006
Offline Last Active Feb 10 2021 05:31 PM

Topics I've Started

[Fixed] Thief HLA component seems to prevent Mage NPCs from using scro

27 January 2021 - 02:23 PM

Edit: I thought the title would truncate with a tooltip or something, title was intended to be "[Fixed] Thief HLA component seems to prevent Mage NPCs from using scrolls as quickslot items and seeing learnable status"

 

-----------

 

I found the cause and fixed for myself but as I hadn't been able to find any mention of this issue anywhere, thought I'd post to flag it and also help anyone else trying to figure it out. 

 

In my recent EET playthrough, I've been having an issue I couldn't figure out, where only my player character (once I dualled from Kensai) could use arcane scrolls from a quickslot. Edwin couldn't use them (but he could copy them to his spellbook), and Imoen was the same as Edwin once she was dualled over.

 

I only really use priest scrolls from quickslot but there's a very nice convenience feature since (EE 1.2?) to highlight scrolls a character can copy to their spellbook in green.

With Refinements Thief HLA component all scrolls appeared as red for all NPCs. The feature only worked for my protagonist once I dualled to mage.

 

I'm not a modder, just have a little familiarity with Near Infinity so bear with me a little.

 

Couldn't find anything browsing through the 2da files for some 'classes that can use scrolls' array, and the scrolls don't have mages excluded in the 'unusable by' list.  It turns out that the thief component adds a '319' Item Usability opcode to all of these scrolls (I'm guessing just the arcane ones?) to exclude all allies. 

 

That appears to be happening at lines 489-512 of https://github.com/U...b/hla_thief.tpa

 

Uninstalling the Thief HLA component w/ the weidu installer fixed the issue. I've played the game a couple times so if there were any string changes in there I'll live with any string mismatches.

 

I've attached my weidu log and a save in case that helps with any fix.

Playing version 2.5.16.6 of BG2EE with Refinements beta 4.27

 

I really do appreciate all the modding work that's been done over the years, I don't know any RPG that has such an extensive modding community. Thanks!