Jump to content


Photo

[BGT] BUG: Viconia's Magic Resistance


  • Please log in to reply
8 replies to this topic

#1 maoliyuanjiu

maoliyuanjiu
  • Member
  • 6 posts

Posted 19 March 2010 - 05:07 AM

BGT 1.08 (Mar 16th).

When Viconia is directly imported into Shadows of Amn, her MR is set to 65 (from 50). Since that, Cloak of Balduran (or anyother cloth/ring) can not increase Viconia's MR.

Edited by maoliyuanjiu, 19 March 2010 - 11:27 PM.


#2 aVENGER

aVENGER
  • Modder
  • 1680 posts

Posted 21 March 2010 - 03:55 PM

I can confirm this.

Apparently, the issue occurs because of the way that Viconia's BG2 MR bonus is applied (see BGMAG65.SPL). At the moment, this spell sets her MR to 65 which makes the effect attached to her CRE. I'd suggest incrementing her MR by 15 and using timing mode 9 instead which should make the effect permanent. BTW, the faulty bonus can be removed via CTRL + R which will bring Viconia's MR back to 50% again.

Edited by aVENGER, 21 March 2010 - 03:59 PM.


#3 Ascension64

Ascension64
  • Modder
  • 5983 posts

Posted 20 April 2010 - 12:21 AM

Unfortunately, magic resistance bonus (effect 0xA6) is bugged and does not pay attention to permanent/limited timing modes, nor does it max out at 100 or min at 0. I am open to other suggestions about how to permanently change magic resistance (outside hacking).

Edited by Ascension64, 20 April 2010 - 12:50 AM.

--------------
Retired Modder
Note: I do not respond to profile comments/personal messages in regards to troubleshooting my modifications. Please post on the public forums instead.

Baldur's Gate Trilogy-WeiDU and Mods
Throne of Bhaal Extender (TobEx)

Contributions: (NWN2) A Deathstalker (voice acting) - (IWD2) IWD2 NPC Project (soundset editing) - (Misc) SHS PC Soundsets (voice acting)
Legacy: (BG/Tutu/BGT) Beregost Crash Fixer 1.9 (18 Jul 10) - (BG2) Enable conversations with charmed/dominated creatures (18 Jul 10) - (BG2) Experience Corrections (18 Jul 10) - (Misc) Platform Conversion Utility RC2 (13 Feb 10)


#4 aVENGER

aVENGER
  • Modder
  • 1680 posts

Posted 07 May 2010 - 11:41 PM

Unfortunately, magic resistance bonus (effect 0xA6) is bugged and does not pay attention to permanent/limited timing modes, nor does it max out at 100 or min at 0. I am open to other suggestions about how to permanently change magic resistance (outside hacking).


I've attached a modified BGMAG65.SPL which increments Viconia's MR by 15 using timing mode 9.

As far as I can tell, this resolves the problem, since the relevant script block already checks whether Viconia's MR is 50% or not before applying the spell.

IF
  InParty("Viconia")
  CheckStat("Viconia",50,RESISTMAGIC)
  Global("MeetOldenFriends","GLOBAL",4)
THEN
  RESPONSE #100
    ApplySpellRES("BGMAG65","Viconia")
    Continue()
END

Attached Files



#5 Ascension64

Ascension64
  • Modder
  • 5983 posts

Posted 08 May 2010 - 07:14 AM

Have you tested this? As I found out, the magic resistance bonus opcode is buggy and has no coding for permanent timing. There is now a hack for this (see TobEx), but simply changing the timing mode to 9 doesn't fix the problem.

--------------
Retired Modder
Note: I do not respond to profile comments/personal messages in regards to troubleshooting my modifications. Please post on the public forums instead.

Baldur's Gate Trilogy-WeiDU and Mods
Throne of Bhaal Extender (TobEx)

Contributions: (NWN2) A Deathstalker (voice acting) - (IWD2) IWD2 NPC Project (soundset editing) - (Misc) SHS PC Soundsets (voice acting)
Legacy: (BG/Tutu/BGT) Beregost Crash Fixer 1.9 (18 Jul 10) - (BG2) Enable conversations with charmed/dominated creatures (18 Jul 10) - (BG2) Experience Corrections (18 Jul 10) - (Misc) Platform Conversion Utility RC2 (13 Feb 10)


#6 aVENGER

aVENGER
  • Modder
  • 1680 posts

Posted 08 May 2010 - 07:38 AM

Have you tested this? As I found out, the magic resistance bonus opcode is buggy and has no coding for permanent timing. There is now a hack for this (see TobEx), but simply changing the timing mode to 9 doesn't fix the problem.


Yes, it works as intended.

I suspect that the resist magic opcode is only bugged when using a value of 1 for parameter 2 and/or a value of 1 for the timing mode. When parameter 2 is 0 and the timing mode is 9, the opcode seems to work properly. For example, the 10% Magic Resistance reward for passing the Selfish test in Hell (SPIN748.SPL) uses that approach and it always works fine.

Edited by aVENGER, 08 May 2010 - 07:44 AM.


#7 Ascension64

Ascension64
  • Modder
  • 5983 posts

Posted 09 May 2010 - 01:03 AM

Ah, I see. I had a preference not to increment Viconia's MR in case another BG1 mod used any other permanent change - but I can't think of any better way.

--------------
Retired Modder
Note: I do not respond to profile comments/personal messages in regards to troubleshooting my modifications. Please post on the public forums instead.

Baldur's Gate Trilogy-WeiDU and Mods
Throne of Bhaal Extender (TobEx)

Contributions: (NWN2) A Deathstalker (voice acting) - (IWD2) IWD2 NPC Project (soundset editing) - (Misc) SHS PC Soundsets (voice acting)
Legacy: (BG/Tutu/BGT) Beregost Crash Fixer 1.9 (18 Jul 10) - (BG2) Enable conversations with charmed/dominated creatures (18 Jul 10) - (BG2) Experience Corrections (18 Jul 10) - (Misc) Platform Conversion Utility RC2 (13 Feb 10)


#8 aVENGER

aVENGER
  • Modder
  • 1680 posts

Posted 27 May 2011 - 12:00 PM

Bumping this since the issue with Viconia's MR is still present in BGT 1.11

#9 Ascension64

Ascension64
  • Modder
  • 5983 posts

Posted 12 June 2011 - 05:13 PM

Thanks, this fell off my to-do list for some reason.

--------------
Retired Modder
Note: I do not respond to profile comments/personal messages in regards to troubleshooting my modifications. Please post on the public forums instead.

Baldur's Gate Trilogy-WeiDU and Mods
Throne of Bhaal Extender (TobEx)

Contributions: (NWN2) A Deathstalker (voice acting) - (IWD2) IWD2 NPC Project (soundset editing) - (Misc) SHS PC Soundsets (voice acting)
Legacy: (BG/Tutu/BGT) Beregost Crash Fixer 1.9 (18 Jul 10) - (BG2) Enable conversations with charmed/dominated creatures (18 Jul 10) - (BG2) Experience Corrections (18 Jul 10) - (Misc) Platform Conversion Utility RC2 (13 Feb 10)