nwn2fixes / player

Fixes for the casual NwN2 player
27 stars 11 forks source link

Mysteries of Westgate i_player_hide.uti #29

Open NinjaSpectre opened 5 years ago

NinjaSpectre commented 5 years ago

Posting this in case someone else knows of an easier solution that can be added to these fixes. In Mysteries of Westgate the player is given a feat and a bonus is applied to the item in INVENTORY_SLOT_CARMOUR. If no item currently exists one is created from the i_player_hide.uti file which is located in the westgate2.hak. The blueprint however has the Armor type set to Hide, which causes problems for spell-casters and high Dexterity rogue types. The simple fix is to change the Armor type to Cloth, however the uti file within the hak file is taking precedence over the new one in the Override folder. The only solution I have found is to delete the old blueprint from the hak file. I am hoping there is another way I am overlooking.

kevL commented 5 years ago

I can't think of one.

But note there is a bug in Nwn2 w/ carmors. Player-controllable characters shouldn't be given carmors (aka. skins) at all; Lance Botelle and i both tested and found that if a PC changes weapon and/or shield a bunch of times, somehow the skin causes the ACP (ArmorCheckPenalty) to go way off, iirc.

i've long since forgone equipping a skin on a PC

so, double whammy here.

NinjaSpectre commented 5 years ago

I did notice that the armor check penalty from the hide armor in the carmor was additive when swapping in and out cloth armor in the normal slot. The penalty increased quite fast from -3, -6, -9, -12,....-72.... etc. I didn't notice that behavior with a cloth armor in the carmor, however I haven't tried with shields or weapons.

kevL commented 5 years ago

i'm just going from memory from like a year+ ago, Ninja ...

am kinda sure it was happening with weapon/shield swapping (don't know what material or even if it's applicable), and it took several tries before the bug manifested. What i remember is that ... after several itemswaps the ACP went to something sort of off, then after a couple more swaps it would be something ridiculous like -30

kevL commented 5 years ago

the value would start to bounce around, among negative and positive values (!1)

NinjaSpectre commented 5 years ago

Sounds like a case of the infamous integer overflow flip.... I guess at this point all we can do is laugh....