Jump to content


Photo

[COMPLETE] 16 effect opcode wrap around fixes

For beta 0023

  • Please log in to reply
4 replies to this topic

#1 Ascension64

Ascension64
  • Modder
  • 5983 posts

Posted 25 January 2012 - 02:53 PM

TobEx silently already fixed some of the wrap around issues (Strength Mod, Dexterity Mod, Save vs. X Mod), but I've added the rest of them, I hope.

Fixes a G3 reported unfixable exploit.

Attribute Drains Can Cause Scores to 'Wrap Around' To Max Values

This is another fairly well-known exploit, typically abused with the Rod of Terror and the Ring of Human Influence. The Rod of Terror will occasionally drain charisma from its wielder, eventually taking charisma to zero and killing the character. However, while wearing the Ring of Human Influence, the actual charisma will continue to decline to zero but will not kill the character as the ring keeps their working charisma at 18. If the Rod drains more charisma, the actual score will 'wrap around' from 0 to 25. The Ring can then be removed, leaving the character with an artificially inflated, god-like charisma score. This is hardcoded and can not be fixed.


Also should fix the lore wrapping issue and thieving skill wrapping issues reported in the Wish List.

Effect opcodes affected:
-#6 (0x006) Stat: Charisma Modifier [6]
-#10 (0x00A) Stat: Constitution Modifier [10]
-#15 (0x00F) Stat: Dexterity Modifier [15]
-#19 (0x013) Stat: Intelligence Modifier [19]
-#21 (0x015) Stat: Lore Modifier [21]
-#33 (0x021) Stat: Save vs. Death Modifier [33]
-#34 (0x022) Stat: Save vs. Wands Modifier [34]
-#35 (0x023) Stat: Save vs. Petrification/Polymorph Modifier [35]
-#36 (0x024) Stat: Save vs. Breath Weapons Modifier [36]
-#37 (0x025) Stat: Save vs. Spells Modifier [37]
-#44 (0x02C) Stat: Strength Modifier [44]
-#49 (0x031) Stat: Wisdom Modifier [49]
-#59 (0x03B) Stat: Stealth Modifier [59]
-#90 (0x05A) Stat: Open Locks Modifier [90]
-#91 (0x05B) Stat: Find Traps Modifier [91]
-#92 (0x05C) Stat: Pick Pockets Modifier [92]
-#93 (0x05D) Stat: Fatigue Modifier [93]
-#94 (0x05E) Stat: Drunkenness Modifier [94]
-#95 (0x05F) Stat: Tracking Skill Modifier [95]
-#96 (0x060) Stat: Level Change [96]
-#97 (0x061) Stat: Strength-Bonus Modifier [97]
-#106 (0x06A) Stat: Morale Break Modifier [106]
-#108 (0x06C) Stat: Reputation [108]

Edited by Ascension64, 25 January 2012 - 02:53 PM.

--------------
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)


#2 i30817

i30817
  • Member
  • 611 posts

Posted 25 January 2012 - 03:01 PM

Aaaah. Great. For increases too?

#3 Ascension64

Ascension64
  • Modder
  • 5983 posts

Posted 25 January 2012 - 03:02 PM

Should do.

--------------
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 i30817

i30817
  • Member
  • 611 posts

Posted 28 January 2012 - 08:32 AM

Am i missing disarm traps or hideinshadows/movesilently anywhere (vs stealth, that i know it's a combination of both).

#5 Ascension64

Ascension64
  • Modder
  • 5983 posts

Posted 28 January 2012 - 12:51 PM

HideInShadows, DetectIllusions, and SetTraps shouldn't have the problem, since they don't allow setting of INSTANT_PERMANENT changes. It is possible to make them wrap using timing mode 9, but that is absolutely permanent and I can't see a use for that - unless someone wants to make a kit where one of these skills gets worse with higher level...

--------------
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)