Jump to content


Photo

Two Helms of Balduran


  • Please log in to reply
7 replies to this topic

#1 Vlad

Vlad
  • Member
  • 577 posts

Posted 31 August 2006 - 09:33 AM

Please remove the following block from BGT\Compat\BGT\Replace\xAR0602.BAF:

IF
Global("IHaveBalduran","GLOBAL",1)
THEN
RESPONSE #100
SetGlobal("IHaveBalduran","GLOBAL",2)
ActionOverride("Shelf1",CreateItem("HELM07",0,0,0)) // Helm of Balduran
Continue()
END

This way you create a copy of the Helm of Balduran, which already exists there in the original game.

#2 Ascension64

Ascension64
  • Modder
  • 5983 posts

Posted 14 September 2006 - 05:34 AM

Please remove the following block from BGT\Compat\BGT\Replace\xAR0602.BAF:

IF
Global("IHaveBalduran","GLOBAL",1)
THEN
RESPONSE #100
SetGlobal("IHaveBalduran","GLOBAL",2)
ActionOverride("Shelf1",CreateItem("HELM07",0,0,0)) // Helm of Balduran
Continue()
END

This way you create a copy of the Helm of Balduran, which already exists there in the original game.

Exactly where and when does the second copy appear?

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

seanas
  • Modder
  • 1906 posts

Posted 14 September 2006 - 07:48 AM

Exactly where and when does the second copy appear?

both helms of balduran are in the same place: but instead of one, you get two.

[edit] the same place being shelf 1 in AR0602. is it because both balduran's cloak and balduran's helm both use the same variable (IHaveBalduran) when checking whether to transfer items into BG2?

or, more to the point, in the block in AR0602.bcs beginning
Global("TakeImportItems","AR0602",0) (the one that ends with StartCutScene("NewGame") )
there's an action:
ActionOverride("Shelf1",TakeItemListPartyNum("IMPORT03",1)
the first item on IMPORT03.2da is.... HELM07

so two different checks for baldurans helm = two helms of balduran

Edited by seanas, 14 September 2006 - 08:01 AM.

"A simple test of the relative merits of science and religion is to compare lighting your house at night by prayer or electricity" - A. C. Grayling
"EFF files have saves, too." - CamDawg
|| this is radio seanas || BP Series v3 || seanas at work ||


#4 Ascension64

Ascension64
  • Modder
  • 5983 posts

Posted 14 September 2006 - 07:57 AM

The only reason why you would see this occurring is that TakeItemPartyListNum doesn't care whether the party has an item or not specified in the relevant .2DA, creating an instance of that item regardless. Someone else reported the Chainmail+3 being duplicated as well, which appears in IMPORT01.2DA, while Helm of Baludran appears in IMPORT03.2DA.

Can someone clarify?

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


#5 WizWom

WizWom
  • Member
  • 271 posts

Posted 14 September 2006 - 08:28 AM

Straight/clean install of SoA/ToB does not have Helm of Balduran check; they are done with TakeItemListPartyNum in a single startup block.

IIRC, it's in there because TakeItemList is flaky. err, let me test it... Hrm, no, that handles it all fine.

So, yeah, the coding to handle Balduran stuff special is probably extranneous.

#6 Ascension64

Ascension64
  • Modder
  • 5983 posts

Posted 14 September 2006 - 09:00 AM

OK, I just tested TakeItemPartyListNum(), and it seems that it doesn't care whether the player has the items or not. That solves the issue, although it is very stupid to TakeItemParty things that the party doesn't have...

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


#7 CamDawg

CamDawg

    ALL GLORY TO THE HYPNOTOAD

  • Modder
  • 1505 posts

Posted 14 September 2006 - 09:37 AM

The idea behind the import lists is to always have an item on that shelf and on Ilyich. It uses the lists because it makes for a better transition if the item is actually possessed by the party. If nothing matches, it simplies creates the first item in the list--which is why everyone thinks that shelf only has the Helm of Balduran. Very rare is the imported character from BG, much less one without the best helmet in the game.

Why is this Hypnotoad video so popu... ALL GLORY TO THE HYPNOTOAD.
____
The Gibberlings Three - Home of IE Mods

The BG2 Fixpack - All the fixes of Baldurdash, plus a few hundred more. Now available, with more fixes being added in every release.


#8 Ascension64

Ascension64
  • Modder
  • 5983 posts

Posted 14 September 2006 - 08:32 PM

I see, something for igi to include as a post-text to the associated action then I suppose.

EDIT: Wait! Hold on one second. Two Helms of Balduran and two Chainmail+3 are appearing BECAUSE of:

2DA V1.0
HELM07 <------------------ this thing!
ITEMS
1 HELM07
2 MISC72
3 MISC73
4 RING25

Edited by Ascension64, 14 September 2006 - 08:55 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)