Jump to content

Cloakwood not appearing open


Eva Galana

Recommended Posts

Here's my WEIDU (go ahead, tell me what I messed up! Although looking at this, I have an idea what I did wrong...)! And it is a new game.

 

// Log of Currently Installed WeiDU Mods

// The top of the file is the 'oldest' mod

// ~TP2_File~ #language_number #component_number // [subcomponent Name -> ] Component Name [ : Version]

~GAVIN/GAVIN.TP2~ #0 #0 // Gavin NPC for Tutu and BGT, 14April2008: v8

~GAVIN/GAVIN.TP2~ #0 #1 // Gavin: Romance (mature content): v8

~GAVIN/GAVIN.TP2~ #0 #2 // Gavin: Flirts (adult content): v8

~GAVIN/GAVIN.TP2~ #0 #3 // Gavin: Check for Tutu-Fix Walking Speeds: v8

~GAVIN/GAVIN.TP2~ #0 #4 // Gavin: Alternate Portraits -> Original portrait by berelinde (default): v8

~GAVIN/GAVIN.TP2~ #0 #10 // Gavin: Player Initiated Dialogue: v8

~BG1NPC.TP2~ #0 #0 // The BG1 NPC Project: Required Modifications: v20

~BG1NPC.TP2~ #0 #1 // The BG1 NPC Project: Banters, Quests, and Interjections: v20

~BG1NPC.TP2~ #0 #2 // The BG1 NPC Project: Give Edwin his BG2 portrait: v20

~BG1NPC.TP2~ #0 #3 // The BG1 NPC Project: Give Imoen her BG2 portrait: v20

~BG1NPC.TP2~ #0 #4 // The BG1 NPC Project: Give Jaheira her BG2 portrait: v20

~BG1NPC.TP2~ #0 #5 // The BG1 NPC Project: Give Minsc his BG2 portrait: v20

~BG1NPC.TP2~ #0 #6 // The BG1 NPC Project: Give Viconia her BG2 portrait: v20

~BG1NPC.TP2~ #0 #7 // The BG1 NPC Project: Kivan's "Kivan and Deheriana Companions" portrait: v20

~BG1NPC.TP2~ #0 #8 // The BG1 NPC Project: Add Non-Joinable NPC portraits to quests and dialogues: v20

~BG1NPC.TP2~ #0 #9 // The BG1 NPC Project: Ajantis Romance Core (teen content): v20

~BG1NPC.TP2~ #0 #11 // The BG1 NPC Project: Coran's Romance Core (adult content): v20

~BG1NPC.TP2~ #0 #14 // The BG1 NPC Project: Xan's Romance Core (teen content): v20

~BG1NPC.TP2~ #0 #15 // The BG1 NPC Project: Female Romance Challenges, Ajantis vs Xan vs Coran: v20

~BG1NPC.TP2~ #0 #16 // The BG1 NPC Project: NPCs can be sent to wait in an inn: v20

~BG1NPC.TP2~ #0 #27 // The BG1 NPC Project: Bardic Reputation Adjustment: v20

~BG1NPC.TP2~ #0 #30 // The BG1 NPC Project: Sarevok's Diary Adjustments -> SixofSpades Extended Sarevok's Diary: v20

~BG1NPC.TP2~ #0 #32 // The BG1 NPC Project: Check for TutuFix Walking Speeds: v20

~BG1NPC.TP2~ #0 #10 // The BG1 NPC Project: Branwen's Romance Core (teen content): v20

~BG1NPC.TP2~ #0 #12 // The BG1 NPC Project: Dynaheir's Romance Core (teen content): v20

~BG1NPC.TP2~ #0 #13 // The BG1 NPC Project: Shar-Teel Relationship Core (adult content): v20

// Recently Uninstalled: ~BG1NPC.TP2~ #0 #29 // The BG1 NPC Project: Cloakwood areas availability in Chapter One -> Open four Cloakwood areas (everything but the Mines): v20

// Recently Uninstalled: ~BG1NPC.TP2~ #0 #200 // The BG1 NPC Project: Player-Initiated Dialogues: v20

~BG1NPC.TP2~ #0 #28 // The BG1 NPC Project: Cloakwood areas availability in Chapter One -> Open Cloakwood Lodge (first Cloakwood area only): v20

~BG1NPC.TP2~ #0 #200 // The BG1 NPC Project: Player-Initiated Dialogues: v20

~WHITE/WHITE.TP2~ #0 #0 // White NPC for BG:EE, BGT and TuTu

Link to comment

BEGIN @1020 /* Open Cloakwood Lodge (first Cloakwood area only) */
 SUBCOMPONENT @1019 /* The BG1 NPC Project: Cloakwood areas availability in Chapter One */
 GROUP @1065 /* The BG1 NPC Project: Tweaks */
 REQUIRE_PREDICATE ((NOT FILE_EXISTS_IN_GAME ~cdt01035.g3~) AND (NOT FILE_EXISTS_IN_GAME ~cdt01036.g3~)) ~The functionality of this component is either already included or superceded by one of your already installed mods.~
 REQUIRE_FILE ~override/X#BG1NPCCore.G3~ @1004 /* ~BG1 NPC Required Changes component is not installed.~ */
COPY ~BG1NPC/Core/X#component.xx~ ~override/X#BG1NPCCloakLodge.G3~
 COPY_EXISTING ~worldmap.wmp~ ~override~
READ_LONG 0x30 "area_num"
READ_LONG 0x34 "area_off"
FOR (index = 0; index < area_num; index = index + 1) BEGIN
  READ_ASCII ("%area_off%" + 0x08 + (0xf0 * "%index%")) "area_res"
  PATCH_IF (("%area_res%" STRING_COMPARE_CASE "fw2200" = 0) OR // cloakwood 1 (tutu)
			("%area_res%" STRING_COMPARE_CASE "ar7000" = 0)) BEGIN // cloakwood 1 (bgt)
	READ_BYTE ("%area_off%" + 0x30 + (0xf0 * "%index%")) "flags"
	WRITE_BYTE ("%area_off%" + 0x30 + (0xf0 * "%index%")) ("%flags%" BOR 0b00000010) // adds 'reveal thru linked area' flag
  END ELSE
  PATCH_IF (("%area_res%" STRING_COMPARE_CASE "fw2100" = 0) OR // cloakwood 2 (tutu)
			("%area_res%" STRING_COMPARE_CASE "ar8800" = 0)) BEGIN // cloakwood 2 (bgt)
	READ_BYTE ("%area_off%" + 0x30 + (0xf0 * "%index%")) "flags"
	WRITE_BYTE ("%area_off%" + 0x30 + (0xf0 * "%index%")) ("%flags%" BAND 0b11111101) // removes 'reveal thru linked area' flag
  END
END
BUT_ONLY_IF_IT_CHANGES

 COPY_EXISTING_REGEXP GLOB ~^\(_ar1901\|ar8701\|ar1901\)\.bcs$~ ~override~
DECOMPILE_BCS_TO_BAF
  REPLACE_TEXTUALLY ~RevealAreaOnMap("FW2200")~ ~RevealAreaOnMap("FW2200") RevealAreaOnMap("FW2100")~
  REPLACE_TEXTUALLY ~RevealAreaOnMap("AR7000")~ ~RevealAreaOnMap("AR7000") RevealAreaOnMap("AR8800")~
COMPILE_BAF_TO_BCS
BUT_ONLY_IF_IT_CHANGES

 PRINT @1003 /* Please remember to start a new game to access the contents of this component. */

 

So, if you started a new game, going to the FAI in chapter 1 should open up the links - it won't be available before you enter that FAI area, because the area script does the "reveal", and it won't run until you get that "entering FAI" movie and are wandering about there. If you load a save where you have already visited the area, it won't work, because the area will already be in the save file, and the script will already have run that block under the old conditions.

 

No worries on the "change your mind" on the Cloakwood areas - it would not cause any hassles for you. As you can see from the log, when you changed out the Cloakwood component, it uninstalled anything it needed to and then re-installed it.

 

As far as your order goes, you are probsably fine. I'd put Gavin and other NPC's in this order http://forums.gibberlings3.net/index.php?showtopic=8122 as we know it works best, but I suspect Gavin is coded to account for BG1NPC things in either order (you might do a quick search or check with berelinde on that). Lava's White NPC is already in the correct order, so you should be fine there.

Link to comment

Archived

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

×
×
  • Create New...