It's done. I just tried to do what I described and I succeeded - it works. I made the necessary changes to the setup code as described above and tested the thus modified setup. All the items are now handled properly! I've checked the resulting
BGT build and everything is fine. My corrections are ready to be implemented. I'm providing them in this post.
Let me first say that in order to carefully adjust the COPY commands, I had to examine all the items and their implementation in detail and naturally came across some small remaining errors. Therefore I did not only adjust the COPY commands but also took the opportunity to make a couple of relevant changes and additions to the item patching code. This also involves 3 corrections in the code section called "
BG1 items existing and used in
BG2; rename" - so in contrast to what I said in the first post, there are not one but two code sections I touched. Here is the full documentation and submission.
1. Changing the setup code:a) Section "BG1 items existing in BG2 but not used by BG2"All commands in this section that perform "COPY ~
BGT/Modify/ITM/<item>~ ~override/<item>~" have been replaced by using "COPY_EXISTING ~<item>~ ~override~", except for SCRL5R because this item is not present in a
BG2 installation.
By applying this method,
BGT no longer overrides any changes made to these items by other modifications if
BGT is installed after those modifications. With respect to the
BG2 Fixpack,
BGT used to override a number of significant fixes. This problem is now solved. Fixes from the
BG2 Fixpack which used to be but are no longer reversed include:
- BOW07: correction of proficiency to longbow (although
BGT itself also does this bugfix)
- BOW08: correction of bad timings for its Set Color effects
- CLCK08: correction of the item icon
- DAGG10: correction of the item type to dagger (although
BGT itself also does this bugfix)
- HELM14: correction of its Immunity to Fear and bad timings for the Reset Morale and Remove Fear effects
- MISC2P: correction of its Domination ability to account for elven racial resistance to charm
- TASLOIIL: correction of the weapon range
- all items in the section: any corrections introduced by future versions of the Fixpack
Apart from adjusting the COPY commands, I made the following additional changes to the setup code in this section in order to correct remaining errors:
-
CLCK08: setting the Ability Icon = ICLCK08 instead of ICLCK07
-
SCRL3F: correction of the item type - Books instead of Scrolls (the DevDoc even announces this correction but it was missing from the code the entire time)
-
SCRL3Z: There was code for removing an unused ability from this item (as with similar scrolls) even though this scroll does not have any ability. Therefore this code is removed.
-
SCRL5R: switched setting the description text to appear as the unidentified description and set identified description to None, like all the other scrolls
-
SCRL5S: added code that removes the existing unused ability from this scroll (same problem as with similar scrolls)
Provision: In order for these changes to be implemented, I am providing the modified code that constitutes the code section "
BG1 items existing in
BG2 but not used by
BG2". The existing code simply is to be swapped entirely with the following new one, no other adjustments are required. Here is the replacement:
b) Section "BG1 items existing and used in BG2; rename"As I announced in the beginning of this post, I also altered this section to correct some additional errors I found. The COPY commands in this section are
not altered, as there is no need to because these items are "new", unique resources that are only introduced by
BGT. The three corrections I made to items in this section are:
-
BGMISC56: switched setting the description text to unidentified description like the corresponding
BG1 item, instead of identified description (just a cosmetic change)
-
BGMISC79: corrected the weight to 130 as per the corresponding
BG1 item
-
BGRING08: added the Unusable by Monk flag
Provision: Same procedure - replace the existing code of the entire section with the following one:
That's it for updating the code in Setup-
BGT.tp2.
2. Newly arranged BGT/Modify/ITM folder:Since a lot of the item patching is now done by COPY_EXISTING, I revised the content of this directory. All item files that used to be copied from this location but are now drawn directly from the game have been removed, as they are no longer needed.
Additionally, I deleted a file called SCRL03.itm, which was located in this directory but was not used by any command. Going through all tp2's and BAT files and doing a change-log on the item revealed that
BGT doesn't touch it or use it, so I guess there was no reason for this file to be there. Please correct me if I'm wrong.
Provision: The ITM folder at
BGT/Modify is to be deleted entirely and replaced with this one:
New-ITM-Folder.rar3. Updating DevDoc at BGT\Help\DevDoc\index.html:Finally, the documentation should be updated to reflect the different implementation of the item patching, as well as to include some workings of the
BGT setup that hadn't been documented properly, as I discovered when I went through the item patching code.
a) At "Section 1h. Items", the old, flawed method for patching the items is described. This no longer applies to the
BG1 items existing in
BG2 but not used by
BG2. It only still applies to the items which get renamed.
b) "Section 2d. New resources" contains a table of the items that get modified. While its content is still valid, most of the items there are no longer "new resources", and they are not drawn from "Modify/ITM". This only still applies to the items which get renamed.
c) The documentation of the following specific items is to be newly included or changed:
- GIBBERIL - is missing entirely:
BGT prevents the melee ability from dealing damage to unarmed players
- MISC2P - is incomplete:
BGT also adds the Unusable by Monk flag
- PLAT08 - is incomplete:
BGT also sets the minimum strength to 11
- SCRL2R - is incomplete:
BGT also corrects the identified description (by setting it to None)
- SCRL3Z - new change: no more "Remove ability"
- SCRL5S - new change: add "Remove ability"
- SCRLDRA - is incomplete:
BGT also removes an unused ability
- SCRLKAR - is incomplete:
BGT also removes an unused ability
- SCRLNEI - is incomplete:
BGT also removes an unused ability
- SCRLTAR - is incomplete:
BGT also removes an unused ability
- SCRLVAIL - is incomplete:
BGT also removes an unused ability
- SCRLZHA - is incomplete:
BGT also removes an unused ability
- SW1H13 - is missing entirely:
BGT adds the Droppable flag, adds usability restrictions to make it only usable by Xan, and changes the proficiency to dagger
- SW1H18 - is incomplete:
BGT also changes the proficiency to bastard swords
- TASLOIIL - is missing entirely:
BGT prevents the melee ability from dealing damage to unarmed players
- XVARTIL - is missing entirely:
BGT prevents the melee ability from dealing damage to unarmed players
----- End of submission -----
That is all. As you can see, this is quite an overhaul with some important corrections to the
BGT setup, but I hope that, by using my provision, the changes can be made quickly. Whoever is capable of updating
BGT, please implement this.