Jump to content


Photo

Opcode bugs


  • Please log in to reply
6 replies to this topic

#1 Miloch

Miloch

    Barbarian

  • Modder
  • 6579 posts

Posted 13 July 2011 - 02:41 AM

There are some fairly major bugs in the game engine which even TobEx does not (yet) fix. Apparently, certain opcodes aren't removed after you've applied them with a 'when equipped' item and that item is then removed. This happens (for example) with portraits (#107), sex (#71) and alignment changes (#57). For both of the latter, it also happens when using #72 to set the IDS state. However, there is no bug when using opcode #72 to set other IDS states like generic (1), race (2) or class (2) - with the exception of an odd glitch that the titles for these can flicker back and forth a bit on the character screen before finally resolving to the original titles when the 'when equipped' item is removed. For an example of this behaviour in action, see this topic (the state is applied by ysghoul.itm which is removed by yselmin.spl). Kudos if you can figure this one out - very annoying.

Infinity Engine Contributions
Aurora * BG1 NPC * BG1 Fixpack * Haiass * Infinity Animations * Level 1 NPCs * P5Tweaks
PnP Free Action * Thrown Hammers * Unique Containers * BG:EE * BGII:EE * IWD:EE
================================================================
Player & Modder Resources
BAM Batcher * Creature Lister * Creature Checker * Creature Fixer * Tutu/BGT Area Map & List * Tutu Mod List
================================================================
"Infinity turns out to be the opposite of what people say it is. It is not 'that which has nothing beyond itself' that is infinite, but 'that which always has something beyond itself'." -Aristotle


#2 Ascension64

Ascension64
  • Modder
  • 5983 posts

Posted 23 July 2011 - 05:45 PM

Will have a look.

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


#3 i30817

i30817
  • Member
  • 611 posts

Posted 01 November 2011 - 03:32 PM

Hi. Sorry for highjacking this, but what is the status of opcode

#82 (0x052) Set AI Script [82]

IESDP is not clear it works, and this thread indicates it wont:
http://www.shsforums...post__p__523512

Even if it did work, what would happen when it was "removed"? Would it set the script to nill? Would it restore the previous if any? Wouldn't do anything at all (keep the changed script)?

I'm posting here, because if it looks like you're adding some memory to the original arguments of when equipped effects, you might as well add to this one too (after fixing it of course >_> ).

Edited by i30817, 01 November 2011 - 04:18 PM.


#4 10th

10th
  • Member
  • 621 posts

Posted 01 November 2011 - 06:40 PM

#82 (0x052) Set AI Script [82]


Works at least with Restored Dak'kon's Blade from Baldurdash. Item gets equipped and assigns the script to the RACE slot. Script does its job (upgrading the blade). Stays assigned to the character even if not needed anymore, but can be cleared by using ChangeAIScript("",RACE), if that would be added to the existing scripts. Obviously this doesn't restore previously assigned scripts.

Set AI Script has one big problem, as mentioned in the iedsp: it works for every script slot, which means that careless modders might inadvertedly break the game, if they assign scripts to the DEFAULT (*1) and OVERRIDE (*2) script slots for items obtainable by the player (haven't encounted any those). CLASS should also not be touched, due to script customization (Ease of Use AI etc.).

*1. Breaks facestab, and attribute gain components of TB#tweaks. Moreover, breaks werewolf transformation, poisoning by Marek and item shattering of BGT.
*2. Breaks every NPC content mod out there.

10th
Avast! You cannot defeat our titan-mounted submarine staffed by cannibal vikings! - Nodwick

"I grab his deceased spirit and piledrive it back into his body, duplicating raise dead." - Psyren Oots board

#5 i30817

i30817
  • Member
  • 611 posts

Posted 02 November 2011 - 04:06 AM

Ah ok. I'm planning to use RACE for npcs, though if i had used OVERRIDE i'd do a switcheroo when i was finished running to the original.

#6 Miloch

Miloch

    Barbarian

  • Modder
  • 6579 posts

Posted 05 November 2011 - 09:21 PM

Not sure about the hijack questions (not that I mind - valid questions along the same lines no doubt) but since I'm here, did the latest TobEx address this?

Infinity Engine Contributions
Aurora * BG1 NPC * BG1 Fixpack * Haiass * Infinity Animations * Level 1 NPCs * P5Tweaks
PnP Free Action * Thrown Hammers * Unique Containers * BG:EE * BGII:EE * IWD:EE
================================================================
Player & Modder Resources
BAM Batcher * Creature Lister * Creature Checker * Creature Fixer * Tutu/BGT Area Map & List * Tutu Mod List
================================================================
"Infinity turns out to be the opposite of what people say it is. It is not 'that which has nothing beyond itself' that is infinite, but 'that which always has something beyond itself'." -Aristotle


#7 Ascension64

Ascension64
  • Modder
  • 5983 posts

Posted 05 November 2011 - 10:39 PM

Still on to-do. I've mostly fixed issues with existing hacks in the latest TobEx release, allowing it better stability and use with SCS and such, before I venture once more into the unknown, and 'boldly go where no Enterprise has gone before'.

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