I followed the Beregost crash fix solution from Ascension64 for BGTotSC (Original Saga, non EE), and since SHS seems down, here it is for reference:
Original post:
https://web.archive.org/web/20221007021749/www.shsforums.net/topic/44746-beregost-crashes-solved/
What to do to create your own weidu beregost bug fix mod:
Download latest weidu
https://github.com/WeiDUorg/weidu/releases, extract, rename "weidu.exe" to "setup-beregostfix.exe", create folder "beregostfix" and a file inside it called "setup-beregostfix.tp2", with these contents:
Code:
BACKUP ~BeregostFix~
AUTHOR ~Asc64~
BEGIN ~BeregostFix~
//AR3300, FW3300, AR6700 (BG1, BGTutu, BGT)
COPY_EXISTING ~AR3300.ARE~ ~override~
READ_LONG 0xA4 nDoors
READ_LONG 0xA8 offDoors
READ_LONG 0x7C offPoints
READ_LONG 0x80 nPoints
SET i = 0
FOR (i = 0; i < nDoors; i += 1) BEGIN
READ_ASCII ( %offDoors% + %i% * 0xC8 + 0x20 ) DoorId
PATCH_IF ( "%DoorId%" STRING_EQUAL "DOOR3304" ) BEGIN
READ_LONG ( %offDoors% + %i% * 0xC8 + 0x48 ) idxPointsImpededOpen
READ_SHORT ( %offDoors% + %i% * 0xC8 + 0x4C ) nPointsImpededOpen
SET j = 0
FOR (j = %idxPointsImpededOpen%; j < %idxPointsImpededOpen% + %nPointsImpededOpen%; j += 1) BEGIN
READ_SHORT ( %offPoints% + %j% * 0x4) x
READ_SHORT ( %offPoints% + %j% * 0x4 + 0x2) y
PATCH_IF ( x = 243 && y = 326 ) BEGIN
WRITE_SHORT ( %offPoints% + %j% * 0x4) 233
WRITE_SHORT ( %offPoints% + %j% * 0x4 + 0x2) 302
END
PATCH_IF ( x = 243 && y = 327 ) BEGIN
WRITE_SHORT ( %offPoints% + %j% * 0x4) 233
WRITE_SHORT ( %offPoints% + %j% * 0x4 + 0x2) 304
END
PATCH_IF ( x = 242 && y = 325 ) BEGIN
WRITE_SHORT ( %offPoints% + %j% * 0x4) 232
WRITE_SHORT ( %offPoints% + %j% * 0x4 + 0x2) 304
END
PATCH_IF ( x = 233 && y = 303 ) BEGIN
END
END
END
END
Note that the line "COPY_EXISTING ~AR3300.ARE~ ~override~" is changed for BGTotSC/Original Saga from the shs link, as per the comment above it.
Then copy "setup-beregostfix.exe" and the folder "beregostfix" into your bg1 install folder and install like any weidu mod (execute setup-beregostfix.exe, press "I").
This is all specifically for BGTotSC. The BGT installer already has this included. So does the latest bg1 fixpack I'm aware of
https://github.com/Sasha-alTherin/BGFixPack , however it's in beta and I had crashes using that fixpack, so I'm avoiding it. Currrently I'm using the non-weidu baldurdash fixpack
https://sorcerers.net/Games/BG/index_mods.php , the text edits from there, the bugfix above, tweaks antholody, and no crashes yet.