Jump to content


Photo

fixed .TP2 file for BP


  • Please log in to reply
14 replies to this topic

#1 Steve

Steve
  • Member
  • 142 posts

Posted 13 November 2008 - 04:36 PM

I combined the patches from the "bugs" thread and BiG World project into the attached .TP2 file. It seems to work and NearInfinity finds fewer broken files, but as always it's caveat emptor. You'll still need the BP files from BiG World's Fixpack for a complete fix.

Attached Files


Edited by Steve, 13 November 2008 - 04:39 PM.


#2 Leomar

Leomar
  • Member
  • 1720 posts

Posted 17 November 2008 - 10:40 AM

Can you tell us, which fixes you have included from the bug-thread?
Because a detailed report of your included fixes would be very helpful.

Greetings Leomar

Edited by Leomar, 17 November 2008 - 10:41 AM.

A Megamod does not mean that you can play all of the mods or all of their content,
but you have more choices or paths through the game.
- Chevalier

BiG World Project - Big Baldur's Gate World

#3 Steve

Steve
  • Member
  • 142 posts

Posted 18 November 2008 - 08:13 PM

I was hoping you wouldn't ask. Oh well, here goes.

1) Holly the Elf's quest from CtB doesn't work. Commented out the code at line 26991 to overwrite AR1900.ARE . This code is in the "Still need conversion" section with the added comment "More spawns added, maybe something else ???" From Post#9 in the BP177 bug reports thread.

2) Lasaonar in the drow pit doesn't attack and the duelmaster not recognizing the fight is over. Changed the code at line 6392 to textually change his script rather than use the xUDLESA.bcs blocks. From Post#39.

3) Creatures going/not going hostile correctly. Commented out the code on line 4512 that adds to EA.IDS. From post#47.

4) Tooltips for items with abilities have them misnamed. Added code on line 4314 to "remove added 0 header". From post#57.

5) C6BOHDI.CRE is corrupt. Rearranged the lines in its COPY block on line 8841. From post#127.

6) Changing effects offset may break other mods. Added lines to protect against this on line 25353. From post#130.

7) Deleting an effect will corrupt .CRE's. Changed >= to > on lines 25462-25479 and 16313-16321. From post#137.

8) Uninitialized %extra_effects%. Added at lines 4129 and 4175.

9) Bad lines added to Animate.ids and Anisnd.ids. Entries use X instead of x. Lines 4466 and 4490.

A) Creatures have a bunch of extra junk in their inventories. Changed most from ADD_CRE_ITEM to REPLACE_CRE_ITEM. Many lines.

B) Haer'Dael attacks party. Changed his script back to WTASIGHT on line 25122.

C) Unknown spells added to .CRE's. Changed to only add if FILE_EXISTS_IN_GAME, lines 25152 and 27365.

#4 -Guest-

-Guest-
  • Guest

Posted 19 November 2008 - 10:39 PM

Thanks.
Does this include the BP ToB trigger fix too? Would be nice to have all BP related fixes in a single tp2.

#5 -Guest-

-Guest-
  • Guest

Posted 19 November 2008 - 10:44 PM

You'll still need the BP files from BiG World's Fixpack for a complete fix.

Oops, didn't notice that. I guess we still need the other ToB fix as well.

#6 Leomar

Leomar
  • Member
  • 1720 posts

Posted 20 November 2008 - 02:31 AM

Thank you very much, Steve. :)
We'll crosscheck your fixes with ours.

Greetings Leomar
A Megamod does not mean that you can play all of the mods or all of their content,
but you have more choices or paths through the game.
- Chevalier

BiG World Project - Big Baldur's Gate World

#7 Marvin

Marvin

    Sirius

  • Member
  • 197 posts

Posted 20 November 2008 - 03:19 PM

Thanks Steve, for your effort!
That'll help the BWP-Team a lot.

Marvin

#8 Leonardo Watson

Leonardo Watson
  • Modder
  • 531 posts

Posted 22 November 2008 - 09:02 PM

There is a faulty code inside that stops installation:
~HAER[0-9]*\.cre~ ~override~
was added with your file in this block:

// *********************************************************************
// *
// * Some creatures work better with stupid scripts!
// *
// *********************************************************************

ACTION_IF FILE_EXISTS ~data/BG1BCS.bif~ THEN BEGIN
COPY_EXISTING ~SHOAL.cre~ ~override~
~TENYA.cre~ ~override~
~TENYA2.cre~ ~override~
~HAER[0-9]*\.cre~ ~override~
WRITE_ASCII 0x268 ~WTASIGHT~
BUT_ONLY_IF_IT_CHANGES

// But these won't work with them, so they need to be yanked like bad teeth!
COPY_EXISTING ~DROTH.cre~ ~override~
WRITE_ASCII 0x250 ~BPMAGE3~
BUT_ONLY_IF_IT_CHANGES
END



#9 Steve

Steve
  • Member
  • 142 posts

Posted 22 November 2008 - 11:19 PM

I just loaded BP onto a virgin BG2 and I didn't see a problem. What error did it give?

Actually, this is a sloppy fix. It should really be so that the HAER*.cre files aren't changed at all.

The file I uploaded seems to be missing a fix. Add this at line 4177:
SET extra_effects = 0

#10 Mike1072

Mike1072
  • Modder
  • 539 posts

Posted 22 November 2008 - 11:37 PM

I just loaded BP onto a virgin BG2 and I didn't see a problem. What error did it give?

I think you're missing the _REGEXP for this COPY_EXISTING (and by adding it you'll have to escape the periods for the other .cres).

#11 Leonardo Watson

Leonardo Watson
  • Modder
  • 531 posts

Posted 23 November 2008 - 02:26 AM

The error message was:

ERROR locating resource for 'COPY'
Resource [HAER[0-9]*\.cre] not found in KEY file:
[./chitin.key]


Now I made both of your changes and it works. Thank you!

#12 Jarno Mikkola

Jarno Mikkola

    The Imp in his pink raincoat.

  • Member
  • 10911 posts

Posted 23 November 2008 - 03:26 AM

...

So you'll be introducing this via the Big World Installpack? -As I can hardly follow up how this is supposed to be installed... :wacko:

Deactivated account. The user today is known as The Imp.


#13 Steve

Steve
  • Member
  • 142 posts

Posted 23 November 2008 - 11:29 AM

You could replace line 25101 with:
PATCH_IF (SOURCE_SIZE > 0x2d3 AND (~%SOURCE_FILE%~ STRING_MATCHES_REGEXP ~HAER[0-9]*\.cre~)!=0) THEN BEGIN // protects against invalid files

and delete line 25136:
~HAER[0-9]*\.cre~ ~override~

That way we can skip unnecessarily changing Haer'Dalis and ignore the works-for-me/doesn't-work-for-you problem.

#14 Leonardo Watson

Leonardo Watson
  • Modder
  • 531 posts

Posted 23 November 2008 - 09:18 PM

It is now included in BWP Fixpack 6.0.5

#15 Leomar

Leomar
  • Member
  • 1720 posts

Posted 26 March 2009 - 02:08 PM

I have looked through the BW Fixpack BP fixes and don't know if you know all of them, so I'll report them here for completness. The listed fixes you can find in the BiG World Fixpack.

----------------------------------------------------------------------------------------


:: BP v1.77a

:: Taimon's cutscene fix (at the moment not included in the BW Fixpack and I don't know why...)
:: http://www.shsforums...&...st&p=395241
Due to a Windows crash the files in the given link are missing in the BiG World Fixpack and we will add it again.

:: Miloch's COM_CATS_GRACE fix - BPTOLMAG.BAF
:: http://www.shsforums...&...st&p=400984
From Miloch we use the Resfixer, too. See the description of the tool in the given link.

:: Hoppy's Yeti quick fix - changes to Setup-BPv177.tp2
:: http://www.shsforums...&...st&p=395046

:: Steve's fixes (your ones :) )
:: http://www.shsforums...&...st&p=426171

:: Changes REPLACE_BCS_BLOCK actions with REPLACE_TEXTUALLY
:: http://www.shsforums...&...st&p=440413

White Agnus' Torgal fix - changes to Setup-BPv177.tp2
http://www.shsforums...&...st&p=347311
Instead the torgal.cre, we use this:

Setup-BPv177.tp2
Change Line 23479-23481:
WRITE_ASCII 0x250 ~BPPLOT~ #8 // Class (was GENSHT01)
  WRITE_ASCII 0x258 ~BPLEADER~ #8 // Race (was NONE)
  WRITE_ASCII 0x260 ~GENSHT01~ #8 // General (was NONE)
to this:
WRITE_ASCII 0x250 ~BPPLOT~ #8 // Class (was GENSHT01)
  WRITE_ASCII 0x258 ~BPLEADER~ #8 // Race (was NONE)
  WRITE_ASCII 0x260 ~GENSHT01~ #8 // General (was NONE)
  WRITE_ASCII 0x268 ~BPWTSIGT~ #8 // Default (was WTASIGHT)

----------------------------------------------------------------------------------------


We use Taimon's "Creature Offset Checker" to correct offsets for better compatibilities in megamods. By BP there are the following ones:

Zeroed effects offset in [BPv177\ASCEND\CRE\finirat.cre]
Zeroed effects offset in [BPv177\BrownDragon\FileDump\KRAIRSU2.cre]
Zeroed items offset in [BPv177\CRE\ARVOR.CRE]
Zeroed effects offset in [BPv177\CRE\ARVOR.CRE]
Zeroed effects offset in [BPv177\CRE\HOBGO2.cre]
Zeroed effects offset in [BPv177\CRE\HOBGO3.cre]
Zeroed effects offset in [BPv177\CRE\HOBGO4.cre]
Zeroed effects offset in [BPv177\CRE\HOBGO6.cre]
Zeroed effects offset in [BPv177\CRE\HOBGOB03.cre]
Zeroed effects offset in [BPv177\CRE\HOBGOB04.cre]
Zeroed effects offset in [BPv177\CRE\HOBGOB05.cre]
Zeroed effects offset in [BPv177\CRE\HOBGOD.cre]
Zeroed effects offset in [BPv177\CRE\PSQHOSU.CRE]
Zeroed effects offset in [BPv177\KRGNOME\KRFAM01.cre]
Zeroed effects offset in [BPv177\KRGNOME\KRFAM02.cre]

The cre's are o.k., but it could give problems, if another mod want to change a cre later (if it want to use the same offset). Attached are the corrected files.



And we have a new revised German translation of BP I've send to Azazello last year. Do you have it?



The last is a workaround we used for this problem:

DeusEx got a CTD in the Underdark (Beholder Caves, ar2101)
ASSERTION FAILED!
File: CGameEffect.cpp
Line: 2811

Exp: FALSE

Msg: no msg.
Run Debugger?
White Agnus said the following:
The error has to do with BP. The BEHHIV01.cre has the script BPBEHHIV.bcs which causes this CTD:
ASSERTION FAILED!
File: CGameEffect.cpp
Line: 2811

Exp: FALSE

Msg: no msg.
Run Debugger?
If one empty this script and take BEHHIV01.cre the game freezes and this message shows up:
ASSERTION FAILED!
File: ObjCreature.cpp
Line: 12162

Exp: pCreature != NULL && creatureSize > 0

Msg: no msg.
Run Debugger?
If one take the BEHHIV01.cre from the BP backup folder then all is fine.
And that we do.



I forgot another one and it is a hotfix, too.
We copy the file in the given link after the BP installation into the BG2\override folder:
http://www.shsforums...&...st&p=366653



Greetings Leomar

Attached Files


Edited by Leomar, 26 March 2009 - 10:08 PM.

A Megamod does not mean that you can play all of the mods or all of their content,
but you have more choices or paths through the game.
- Chevalier

BiG World Project - Big Baldur's Gate World