Skip to content

Commit

Permalink
Disable invalid ARP010 area transition trigger to prevent crash - tha…
Browse files Browse the repository at this point in the history
…nks to Roxanne for reporting the issue!
  • Loading branch information
agb1 committed Nov 3, 2016
1 parent d5a0d76 commit 64aceca
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions TDDz/_ONSETOfTheDARKESTDAY/BAF/ARPO10.BAF
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,24 @@ THEN
Explore()
END

// A travel trigger for DOOR0153 is defined in arp010.are but leads nowhere, so traversing it causes a crash
// Door 153 was the old transition from TDD to ToB, which is no longer valid in TDDz
// The following block disables that trigger, which prevents the crash; we use True() so it always applies
// Because TDDz uses original assets from TDD, this method is simpler than patching the area file itself
// But if in the future that DOOR0153 trigger is removed from the area, this block can be removed too
// Thanks to Roxanne for reporting this problem - https://github.com/BiGWorldProject/TDDz/issues/2
IF
Global("tz_TDD_Complete","GLOBAL",0)
True()
// Global("tz_TDD_Complete","GLOBAL",0)
THEN
RESPONSE #100
TriggerActivation("DOOR0153",FALSE)
END

IF
Global("tz_TDD_Complete","GLOBAL",1)
THEN
RESPONSE #100
TriggerActivation("DOOR0153",TRUE)
END

// The following block from the original TDD is commented out because it would allow the same crash
//IF
// Global("tz_TDD_Complete","GLOBAL",1)
//THEN
// RESPONSE #100
// TriggerActivation("DOOR0153",TRUE)
//END

0 comments on commit 64aceca

Please sign in to comment.