Skip to content

[Known 9741] Bug in effect opcode 122 (Create Inventory Item) when using timing mode 0

argent77argent77 Member Posts: 3,476
edited September 2014 in BGII:EE Bugs (v1.2.2030)
I've noticed a serious bug in effect opcode 122 (Create Inventory Item) which is triggered when using timing mode 0 (Instant/Limited).

If you are specifying a duration of 256 or higher, the effective duration is reduced to a few seconds up to a few minutes in the game, depending on the given duration. For example, a duration of 256 is reduced to about 15 to 20 seconds. Both BGEE v1.3 and BG2EE appear to be affected.

Furthermore, if you place the created item on the ground and pick it up again, the timer is cancelled and the item will only disappear after resting.

I have put together a small mod to demonstate this behavior. After installation, create a scroll via game console:
C:CreateItem("A7#SCL1",1)
and use it to create an inventory item. The duration of the item is set to 256 seconds (4m16s). In BGEE and BG2EE it will disappear after 15 to 20 seconds however. In the original BG2 it will remain for the full 256 seconds.
Post edited by Gate70 on

Comments

  • Gate70Gate70 Member, Developer Posts: 3,883
    edited September 2014
    Do you know what items in-game this affects @argent77‌

    Sounds like an 8 bit storage issue :)
    (note, possibly linked to 1084 / 1150)
    Post edited by Gate70 on
  • argent77argent77 Member Posts: 3,476
    In the unmodded game only the level 6 druid spell "Fire Seeds" is using effect opcode 122 with timing mode 0, and with 180 seconds it's still under the limit of 255. But there are mods that make use this effect as well, e.g. Spell Revisions or my Improved Archer kit.
  • Gate70Gate70 Member, Developer Posts: 3,883
    Thanks, logged.
  • argent77argent77 Member Posts: 3,476
    @Gate70‌ Effect opcode 111 (Create Magical Weapon) is also affected by this bug.
  • Gate70Gate70 Member, Developer Posts: 3,883
    edited September 2014
    OK, not sure if that isn't covered by the other issues mentioned above but will update the ticket.
    Thanks
  • HurricaneHurricane Member, Translator (NDA) Posts: 730
    I can confirm that opcode 111 (Create Magical Weapon) is also affected because I found a case where this bug shows in BG:EE v1.3: Branwen's innate ability "Spiritual Hammer" (spin113.spl) has a duration of 600 seconds with timing mode 0, but the effective duration in-game is approximately 40 seconds.

    I've started old vanilla BG1 to cross-check. Branwen's hammer lasts the full duration there.
Sign In or Register to comment.