Jump to content


Photo

SETUP-BGTNEJ makes transition stuck


  • Please log in to reply
9 replies to this topic

#1 Ascension64

Ascension64
  • Modder
  • 5983 posts

Posted 23 January 2011 - 12:11 AM

~SETUP-BGTNEJ.TP2~ #0 #0 // Continuous and Custom Kit Imoen: v1.1

This component in particular does an EXTEND_TOP on ARAM00.BCS with
IF
	InParty("Imoen2")
THEN
	RESPONSE #100
		ActionOverride("Imoen2",LeaveParty())
		ActionOverride("Imoen2",ChangeAIScript("",DEFAULT))
		ActionOverride("Imoen2",ClearAllActions())
		SetGlobal("ImoenPartyBG1","GLOBAL",1)
		ActionOverride("Imoen2",MoveBetweenAreas("AR0602",[3198.2837],6))
		Continue()
END

IF
	InPartyAllowDead("Imoen2")
	Dead("Imoen2")
THEN
	RESPONSE #100
		ActionOverride("Imoen2",LeaveParty())
		ActionOverride("Imoen2",DestroySelf())
		Continue()
END

IF
	InParty("Imoen")
THEN
	RESPONSE #100
		ActionOverride("Imoen",LeaveParty())
		ActionOverride("Imoen",ChangeAIScript("",DEFAULT))
		ActionOverride("Imoen",ClearAllActions())
		SetGlobal("ImoenPartyBG1","GLOBAL",1)
		ActionOverride("Imoen",MoveBetweenAreas("AR0602",[3198.2837],6))
		Continue()
END

IF
	InPartyAllowDead("Imoen")
	Dead("Imoen")
THEN
	RESPONSE #100
		ActionOverride("Imoen",LeaveParty())
		ActionOverride("Imoen",DestroySelf())
		Continue()
END

I suggest REPLACE_BCS_BLOCK instead

replace.baf
IF
	InParty("Jaheira")
	CheckStat("Jaheira",14,DEX)
	Global("MeetOldenFriends","GLOBAL",2)
THEN
	RESPONSE #100
		ApplySpellRES("BGDEX17","Jaheira")
		Continue()
END

new.baf
IF
  InParty("Imoen")
  Global("A6ImoenNeJPurgeGAM","ARAM00",0)
  Global("MeetOldenFriends","GLOBAL",2)
THEN
  RESPONSE #100
    ActionOverride("Imoen",LeaveParty())
    ActionOverride("Imoen",ChangeAIScript("",DEFAULT))
    SetGlobal("ImoenPartyBG1","GLOBAL",1)
    ActionOverride("Imoen",MoveBetweenAreas("AR0602",[3198.2837],6))
    SetGlobal("A6ImoenNeJPurgeGAM","ARAM00",2)
    SetGlobal("MeetOldenFriends","GLOBAL",-1)
    Continue()
END

IF
  InPartyAllowDead("Imoen")
  Dead("Imoen")
  Global("ImoenPartyBG1","GLOBAL",0)
  Global("A6ImoenNeJPurgeGAM","ARAM00",0)
  Global("MeetOldenFriends","GLOBAL",2)
THEN
  RESPONSE #100
    ActionOverride("Imoen",LeaveParty())
    ActionOverride("Imoen",ApplySpellRES("BGLIVE",Myself))
    ActionOverride("Imoen",SetPlayerSound(Myself,-1,DYING))
    ActionOverride("Imoen",ApplySpellRES("BGSILENC",Myself))
    ActionOverride("Imoen",JumpToPoint([0.0]))
    ActionOverride("Imoen",AddFamiliar())
    ActionOverride("Imoen",ApplySpellRES("BGDEATH",Myself))
    SetGlobal("A6ImoenNeJPurgeGAM","ARAM00",2)
    SetGlobal("MeetOldenFriends","GLOBAL",-1)
    Continue()
END

IF
  !InPartyAllowDead("Imoen")
  !Dead("Imoen")
  Global("ImoenPartyBG1","GLOBAL",0)
  Global("A6ImoenNeJPurgeGAM","ARAM00",0)
  Global("A6ImoenWasInParty","GLOBAL",1)
  Global("MeetOldenFriends","GLOBAL",2)
THEN
  RESPONSE #100
    MoveGlobal("ARAM00","Imoen",[0.0])
    ActionOverride("Imoen",SetPlayerSound(Myself,-1,DYING))
    ActionOverride("Imoen",AddFamiliar())
    ActionOverride("Imoen",ApplySpellRES("BGDEATH",Myself))
    SetGlobal("A6ImoenNeJPurgeGAM","ARAM00",1)
    Continue()
END

IF
  !InPartyAllowDead("Imoen")
  Dead("Imoen")
  Global("ImoenPartyBG1","GLOBAL",0)
  Global("A6ImoenNeJPurgeGAM","ARAM00",0)
  Global("A6ImoenWasInParty","GLOBAL",1)
  Global("MeetOldenFriends","GLOBAL",2)
THEN
  RESPONSE #100
    MoveGlobal("ARAM00","Imoen",[0.0])
    ActionOverride("Imoen",ApplySpellRES("BGLIVE",Myself))
    ActionOverride("Imoen",SetPlayerSound(Myself,-1,DYING))
    ActionOverride("Imoen",ApplySpellRES("BGSILENC",Myself))
    ActionOverride("Imoen",AddFamiliar())
    ActionOverride("Imoen",ApplySpellRES("BGDEATH",Myself))
    SetGlobal("A6ImoenNeJPurgeGAM","ARAM00",2)
    SetGlobal("MeetOldenFriends","GLOBAL",-1)
    Continue()
END

IF
  Global("A6ImoenNeJPurgeGAM","ARAM00",1)
  Global("MeetOldenFriends","GLOBAL",2)
THEN
  RESPONSE #100
    SetGlobal("A6ImoenNeJPurgeGAM","ARAM00",2)
    SetGlobal("SPRITE_IS_DEADIMOEN","GLOBAL",0)
    SetGlobal("MeetOldenFriends","GLOBAL",-1)
    Continue()
END

IF
  !InPartyAllowDead("Imoen")
  Global("ImoenPartyBG1","GLOBAL",0)
  Global("A6ImoenNeJPurgeGAM","ARAM00",0)
  Global("A6ImoenWasInParty","GLOBAL",0)
  Global("MeetOldenFriends","GLOBAL",2)
THEN
  RESPONSE #100
    SetGlobal("A6ImoenNeJPurgeGAM","ARAM00",2)
    SetGlobal("MeetOldenFriends","GLOBAL",-1)
    Continue()
END

IF
  Global("MeetOldenFriends","GLOBAL",-1)
  Global("A6ImoenNeJPurgeGAM","ARAM00",2)
  Global("A6ImoenNeJOnce","ARAM00",0)
THEN
  RESPONSE #100
    SetGlobal("A6ImoenNeJOnce","ARAM00",1)
    SetGlobal("MeetOldenFriends","GLOBAL",2)
    Continue()
END

IF
	InParty("Jaheira")
	CheckStat("Jaheira",14,DEX)
	Global("MeetOldenFriends","GLOBAL",2)
THEN
	RESPONSE #100
		ApplySpellRES("BGDEX17","Jaheira")
		Continue()
END



~SETUP-BGTNEJ.TP2~ #0 #6 // Merchant League Bank (BGT required!): v1.1

Produced possible instability with ARAM00.BCS by EXTEND_TOP

IF
	PartyHasItem("VPVOUC10")
THEN
	RESPONSE #100
		IncrementGlobal("IHaveVoucher10","GLOBAL",1)
		TakePartyItemNum("VPVOUC10",1)
END

IF
	PartyHasItem("VPVOUC25")
THEN
	RESPONSE #100
		IncrementGlobal("IHaveVoucher25","GLOBAL",1)
		TakePartyItemNum("VPVOUC25",1)
END

IF
	PartyHasItem("VPVOUC50")
THEN
	RESPONSE #100
		IncrementGlobal("IHaveVoucher50","GLOBAL",1)
		TakePartyItemNum("VPVOUC50",1)
END

IF
	PartyHasItem("VPVOU100")
THEN
	RESPONSE #100
		IncrementGlobal("IHaveVoucher100","GLOBAL",1)
		TakePartyItemNum("VPVOU100",1)
END

IF
	PartyHasItem("vpsword")
	Global("VP_Save_Answerer","GLOBAL",0)
THEN
	RESPONSE #100
		SetGlobal("VP_Save_Answerer","GLOBAL",1)
		Continue()
END

IF
	PartyHasItem("vpnjclck")
	Global("VP_Save_WolfCloak","GLOBAL",0)
THEN
	RESPONSE #100
		SetGlobal("VP_Save_WolfCloak","GLOBAL",1)
		Continue()
END

IF
	PartyHasItem("vpptnbag")
	Global("VP_Save_PotionCase","GLOBAL",0)
THEN
	RESPONSE #100
		SetGlobal("VP_Save_PotionCase","GLOBAL",1)
		Continue()
END

IF
	PartyHasItem("vpscrbag")
	Global("VP_Save_ScrollTub","GLOBAL",0)
THEN
	RESPONSE #100
		SetGlobal("VP_Save_ScrollTub","GLOBAL",1)
		Continue()
END

IF
	PartyHasItem("vpambelt")
	Global("VP_Save_Quiver","GLOBAL",0)
THEN
	RESPONSE #100
		SetGlobal("VP_Save_Quiver","GLOBAL",1)
		Continue()
END

IF
	PartyHasItem("vpgenbag")
	Global("VP_Save_GenBag","GLOBAL",0)
THEN
	RESPONSE #100
		SetGlobal("VP_Save_GenBag","GLOBAL",1)
		Continue()
END

IF
	PartyHasItem("ulfists")
	Global("VP_Save_BoxGloves","GLOBAL",0)
THEN
	RESPONSE #100
		SetGlobal("VP_Save_BoxGloves","GLOBAL",1)
		Continue()
END

Suggest using REPLACE_BCS_BLOCK

replace.baf
IF
	PartyHasItem("MISC47") // Golden Pantaloons
	Global("IHavePants","GLOBAL",0)
THEN
	RESPONSE #100
		SetGlobal("IHavePants","GLOBAL",1)
		Continue()
END

new.baf
Put the new code on top of the pantaloons block


I think this is part of NeJ2, but I don't have enough bandwidth to find out. Can someone please confirm and also notify author?

Thanks.

--------------
Retired Modder
Note: I do not respond to profile comments/personal messages in regards to troubleshooting my modifications. Please post on the public forums instead.

Baldur's Gate Trilogy-WeiDU and Mods
Throne of Bhaal Extender (TobEx)

Contributions: (NWN2) A Deathstalker (voice acting) - (IWD2) IWD2 NPC Project (soundset editing) - (Misc) SHS PC Soundsets (voice acting)
Legacy: (BG/Tutu/BGT) Beregost Crash Fixer 1.9 (18 Jul 10) - (BG2) Enable conversations with charmed/dominated creatures (18 Jul 10) - (BG2) Experience Corrections (18 Jul 10) - (Misc) Platform Conversion Utility RC2 (13 Feb 10)


#2 smeagolheart

smeagolheart
  • Member
  • 278 posts

Posted 02 February 2011 - 11:19 AM

So if we've already installed this before seeing this post and now the transition is stuck, does that mean we have to reinstall the whole thing or is there something we can do to fix it at this point? Am I understanding something wrong?

#3 Jarno Mikkola

Jarno Mikkola

    The Imp in his pink raincoat.

  • Member
  • 10911 posts

Posted 02 February 2011 - 11:30 AM

So if we've already installed this before seeing this post and now the transition is stuck, does that mean we have to reinstall the whole thing or is there something we can do to fix it at this point? Am I understanding something wrong?

Well, if you wish to have this fixed, I would suggest that you would --change-log the "ARAM00.BCS" file, then open the backup files with NearInfinity and export the source files(.baf), and then pack then into the same archive(made from the "change-log" folder) with the original file from the logging there and upload it onto a post ... this has the effect that you both possibly confirm the suspected failure, and get a fix...
And no, there is no need to reinstall, at least at this point.

Edited by Jarno Mikkola, 02 February 2011 - 11:34 AM.

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


#4 smeagolheart

smeagolheart
  • Member
  • 278 posts

Posted 02 February 2011 - 03:26 PM

So if we've already installed this before seeing this post and now the transition is stuck, does that mean we have to reinstall the whole thing or is there something we can do to fix it at this point? Am I understanding something wrong?

Well, if you wish to have this fixed, I would suggest that you would --change-log the "ARAM00.BCS" file, then open the backup files with NearInfinity and export the source files(.baf), and then pack then into the same archive(made from the "change-log" folder) with the original file from the logging there and upload it onto a post ... this has the effect that you both possibly confirm the suspected failure, and get a fix...
And no, there is no need to reinstall, at least at this point.



Ok I did it I think. All the sources were the same name so I put them in a subfolder. Also here's weidu.log
Attached File  change-log results.zip   543.23K   405 downloads
Spoiler

Attached Files


Edited by smeagolheart, 02 February 2011 - 03:29 PM.


#5 Ascension64

Ascension64
  • Modder
  • 5983 posts

Posted 02 February 2011 - 11:23 PM

Or if you have NearInfinity and know how to use it, open up ARAM00.BCS and delete everything above the script block that begins:

IF
	OnCreation()
THEN
	RESPONSE #100
...

Don't delete this script block though. (make sure you backup as always).

Edited by Ascension64, 02 February 2011 - 11:23 PM.

--------------
Retired Modder
Note: I do not respond to profile comments/personal messages in regards to troubleshooting my modifications. Please post on the public forums instead.

Baldur's Gate Trilogy-WeiDU and Mods
Throne of Bhaal Extender (TobEx)

Contributions: (NWN2) A Deathstalker (voice acting) - (IWD2) IWD2 NPC Project (soundset editing) - (Misc) SHS PC Soundsets (voice acting)
Legacy: (BG/Tutu/BGT) Beregost Crash Fixer 1.9 (18 Jul 10) - (BG2) Enable conversations with charmed/dominated creatures (18 Jul 10) - (BG2) Experience Corrections (18 Jul 10) - (Misc) Platform Conversion Utility RC2 (13 Feb 10)


#6 -Hina-

-Hina-
  • Guest

Posted 21 May 2012 - 05:08 AM

Sorry, but for the noob:
What exactly do I have to do with the code presented above if I want to install the Continuous and Custom Kit Imoen? Or is the problem already fixed with the BWP Fixpack?
Thanks for your help!

#7 Hina

Hina
  • Member
  • 23 posts

Posted 29 May 2012 - 08:04 AM

Hm, I figured that the fix seems to be incorporated in the Big world fixpack. But the Debug after my installation says:
WARNING: cannot find block matching [BGTNeJ/BGTComp/replace.baf]
during the install of the Continuous and custom kit Imoen component. I assume the fix wasn't successful then?
Do I have to expect a stuck transition now?

Edited by Hina, 31 May 2012 - 01:25 AM.


#8 Sai

Sai
  • Member
  • 67 posts

Posted 31 May 2012 - 04:25 PM

Have you checked on the big world forums themselves (Warning: Might require German).

#9 Lollorian

Lollorian

    smiley addict

  • Member
  • 4150 posts

Posted 31 May 2012 - 06:53 PM

I assume the fix wasn't successful then?

Would help to know whether the fix was applied or not - and if not, why :P So please open the command prompt and point to your BGII-SoA folder. Then run these:
weidu ARAM00.BCS
mkdir change-log123
weidu --log nul --change-log ARAM00.BCS >change-log123/change-log.txt --out change-log123
You'll see a new folder called change-log123. Zip/rar/7z that folder and upload it for peeps to investigate ^_^

"I am the smiley addict, yellow and round, this is my grin :D when I'm usually around :P.
When there's trouble brewing, see me post, cuz it's usually a wall o' yellow and your eyes are toast!!!"

BWP GUIDE - BWP FIXES - impFAQ - NPC LIST - KIT LIST - AREA LIST

GitHub Links : BWP Fixpack | Lolfixer | BWP Trimpack | RezMod


#10 Hina

Hina
  • Member
  • 23 posts

Posted 01 June 2012 - 04:07 AM

Sorry, I'm sure I'm just too dumb but I can't get this to work. The change-log.txt only contains this:

[weidu] WeiDU version 23102
This is a non-stable version. Unless you're sure about what you're doing, consider downgrading.
Unknown argument: [mkdir]

I just typed your lines in the command prompt. :whistling:

Edited by Hina, 01 June 2012 - 04:08 AM.