Jump to content

Icendoan's Various Fixes


Icendoan

Recommended Posts

Jaheira's Curse bug: Jaheira's CON drain could kill her when she was cursed in the cutscene, which would break the game, as the next line is Jaheira's. It adds a check for Jaheira's HP before starting.

 

<<<<<<<< Bg2Fixpack/Inlined/BaronP_HP-fix.d~
ADD_STATE_TRIGGER ~BARONP~ ~0~ ~HPGT("Jaheira",20)~
>>>>>>>>
COMPILE ~BG2Fixpack/Inlined/BaronP_HP-fix.d~

 

Dirbert's Sword Count: Fixes a bug where you only got the reply option to give Dirbert and crew his swords if you have 3 Bastard swords, not 2, not 4, and 5 is plain out of it!

 

<<<<<<<< BG2Fixpack/Inlined/Dirbert-swords.d"
REPLACE_TRANS_TRIGGER "UHKID01" BEGIN 16 END BEGIN 0 END 
BEGIN 16 END BEGIN 0 2 4 6 7 END
"NumItemsParty("SW1H01",3)" "NumItemsPartyGT("SW1H01",2)"
>>>>>>>>
COMPILE ~BG2Fixpack/Inlined/Dirbert-swords.d~

 

Currently, both are untested, but ought to work.

 

Icen

Link to comment

Do you mean I can simple do this at the end of the BETA Core Fixes:

 

  END
 BUT_ONLY_IF_IT_CHANGES

/////												  \\\\\
///// Jaheira's Curse Fix from Icendoan				\\\\\
/////												  \\\\\

<<<<<<<< ~Bg2Fixpack/Inlined/BaronP_HP-fix.d~
ADD_STATE_TRIGGER ~BARONP~ ~0~ ~HPGT("Jaheira",20)~
>>>>>>>>
COMPILE ~BG2Fixpack/Inlined/BaronP_HP-fix.d~

/////												  \\\\\
///// Dirbert's Sword Count Fix from Icendoan		  \\\\\
/////												  \\\\\

<<<<<<<< "BG2Fixpack/Inlined/Dirbert-swords.d"
REPLACE_TRANS_TRIGGER "UHKID01" BEGIN 16 END BEGIN 0 END 
BEGIN 16 END BEGIN 0 2 4 6 7 END
"NumItemsParty("SW1H01",3)" "NumItemsPartyGT("SW1H01",2)"
>>>>>>>>
COMPILE ~BG2Fixpack/Inlined/Dirbert-swords.d~

/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\
/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\
/////												  \\\\\
///// Optional, but cool							   \\\\\

 

 

 

[EDIT]

 

I've seen in this thread that their are some problems with your "Dirbert's Sword Count Fix". I would ask only, if the fix is correct like you described it here or must I do something more?

 

Greetings Leomar

Link to comment

I'd advise you to use the updated Dirbert code.

 

I did some checking, and it looks like inlined files are case-sensitive and require you to not put quotes around their declaration. So, updated, the additions should look like:

 

/////												  \\\\\
///// Jaheira's Curse Fix from Icendoan				\\\\\
/////												  \\\\\

<<<<<<<< bg2fixpack/inlined/baronp_hp-fix.d
ADD_STATE_TRIGGER ~BARONP~ ~0~ ~HPGT("Jaheira",20)~
>>>>>>>>
COMPILE ~bg2fixpack/inlined/baronp_hp-fix.d~

/////												  \\\\\
///// Dirbert's Sword Count Fix from Icendoan		  \\\\\
/////												  \\\\\

<<<<<<<< bg2fixpack/inlined/dirbert-swords.d
REPLACE_TRANS_TRIGGER "UHKID01" BEGIN 16 END BEGIN 0 1 3 5 7 8 END
~NumItemsParty("SW1H01",3)~ ~NumItemsPartyGT("SW1H01",2)~
>>>>>>>>
COMPILE ~bg2fixpack/inlined/dirbert-swords.d~

Link to comment
I have to put "" in mine due to my prefix "#!", which gives me LEXER errors otherwise.

 

Icen

I meant in the declaration of the file, not the COMPILE statement. For example, this appears to work:

<<<<<<<< #!bg2fixpack/inlined/baronp_hp-fix.d
ADD_STATE_TRIGGER ~BARONP~ ~0~ ~HPGT("Jaheira",20)~
>>>>>>>>
COMPILE ~#!bg2fixpack/inlined/baronp_hp-fix.d~

This gives a file not found message:

<<<<<<<< "#!bg2fixpack/inlined/baronp_hp-fix.d"
ADD_STATE_TRIGGER ~BARONP~ ~0~ ~HPGT("Jaheira",20)~
>>>>>>>>
COMPILE ~#!bg2fixpack/inlined/baronp_hp-fix.d~

And this gives the lexer error:

COMPILE #!bg2fixpack/inlined/dirbert-swords.d

Link to comment

Neither Icendoan's nor Mike's Dirbert Sword Count code seem to work.

 

The first still gives a "File not found error".

 

(Typo here:

 

<<<<<<<< BG2Fixpack/Inlined/Dirbert-swords.d"

 

where there is an unwanted " after swords.d)

 

The second gives a "Parsing error".

 

Both stop the installation.

 

Please recheck.

 

EDIT: It appears the syntax error is here:

 

~NumItemsParty("SW1H01",3)~ ~NumItemsPartyGT("SW1H01",2)~

 

Removing the "" will make it compile:

 

~NumItemsParty(SW1H01,3)~ ~NumItemsPartyGT(SW1H01,2)~

Link to comment
The second gives a "Parsing error".

 

Both stop the installation.

 

Please recheck.

 

EDIT: It appears the syntax error is here:

 

~NumItemsParty("SW1H01",3)~ ~NumItemsPartyGT("SW1H01",2)~

 

Removing the "" will make it compile:

 

~NumItemsParty(SW1H01,3)~ ~NumItemsPartyGT(SW1H01,2)~

It parses, installs, and executes properly for me - and this is the syntax used by the game. Please provide a full log of the error message you received along with the code you used to install.

Link to comment

The code I have tried is:

 

<<<<<<<< bg2fixpack/inlined/dirbert-swords.d
REPLACE_TRANS_TRIGGER "UHKID01" BEGIN 16 END BEGIN 0 1 3 5 7 8 END
~NumItemsParty("SW1H01",3)~ ~NumItemsPartyGT("SW1H01",2)~
>>>>>>>>
COMPILE ~bg2fixpack/inlined/dirbert-swords.d~

 

The error log reports:

 

[bg2fixpack/inlined/dirbert-swords.d] PARSE ERROR at line 1 column 0-20

Near Text: REPLACE_TRANS_TRIGGER

syntax error

 

[bg2fixpack/inlined/dirbert-swords.d] ERROR at line 1 column 0-20

Near Text: REPLACE_TRANS_TRIGGER

Parsing.Parse_error

ERROR: parsing [bg2fixpack/inlined/dirbert-swords.d]: Parsing.Parse_error

ERROR: compiling [bg2fixpack/inlined/dirbert-swords.d]!

Stopping installation because of error.

 

ERROR Installing [bETA Core Fixes (please check the readme!)], rolling back to previous state

[bg2fixpack/backup/3/UNSETSTR.3] SET_STRING uninstall info not found

Will uninstall 2 files for [bG2FIXPACK/SETUP-BG2FIXPACK.TP2] component 3.

Uninstalled 2 files for [bG2FIXPACK/SETUP-BG2FIXPACK.TP2] component 3.

SETUP-A6XPPATCH.TP2 0 0 Installed

SETUP-A6XPPATCH.TP2 0 1 Installed

SETUP-A6CHARMPATCH.TP2 0 0 Installed

BG2FIXPACK/SETUP-BG2FIXPACK.TP2 0 0 Installed ~BG2 Fixpack - Core Fixes~

BG2FIXPACK/SETUP-BG2FIXPACK.TP2 0 1 Installed ~BG2 Fixpack - Game Text Update~

ERROR: Parsing.Parse_error

PLEASE email the file SETUP-BG2FIXPACK.DEBUG to webmaster@gibberlings3.net

Using Language [English]

[English] has 1 top-level TRA files

[bg2fixpack/english/setup.tra] has 101 translation strings

Link to comment

Ah, okay! It seems the issue is that the Fixpack ships with WeiDU Version 204 and REPLACE_TRANS_TRIGGER was added in 207.

 

To use this code reliably in the BWP 6.1 Hotfix, Leomar, you'd need to include one of the newer versions of WeiDU.exe renamed to 'Setup-bg2fixpack.exe'.

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...