Jump to content


Photo

Bug


  • Please log in to reply
4 replies to this topic

#1 Vlad

Vlad
  • Member
  • 577 posts

Posted 04 March 2014 - 05:54 AM

Hi Ascension,

 

This script block from AR0602 is broken:

 

IF
	OnCreation()
	Global("NewGame","AR0602",0)
	Global("ENDOFBG1","GLOBAL",1)
THEN
	RESPONSE #100
		SetCursorState(TRUE)
		FadeToColor([1.0],0)
		SmallWait(10)
		MoveViewPoint([0.0],INSTANT)
		StartMovie("SOAINTRO")
		SetGlobal("NewGame","AR0602",1)
		SetGlobal("ENDOFBG1","GLOBAL",2)
		Continue()
END

 

You should move setting variables to the top before SetCursorState to read:

 

IF
	OnCreation()
	Global("NewGame","AR0602",0)
	Global("ENDOFBG1","GLOBAL",1)
THEN
	RESPONSE #100
		SetGlobal("NewGame","AR0602",1)
		SetGlobal("ENDOFBG1","GLOBAL",2)
		SetCursorState(TRUE)
		FadeToColor([1.0],0)
		SmallWait(10)
		MoveViewPoint([0.0],INSTANT)
		StartMovie("SOAINTRO")
		Continue()
END

 

Otherwise, the cutscene starts, and these variables never get updated. As a result, when you make a save in this area and load it, the game becomes locked in the cutscene mode.


Edited by Vlad, 04 March 2014 - 05:58 AM.


#2 Salk

Salk
  • Modder
  • 1411 posts

Donator

Posted 28 October 2014 - 09:43 PM

Is there anyone that can confirm the necessity of this code change?



#3 Gel87

Gel87
  • Member
  • 190 posts

Posted 29 October 2014 - 03:41 AM

Is there anyone that can confirm the necessity of this code change?

 

I can't confirm anything since im not good enought, but generally if you have a bug, then some1 comes up with a small change like this to fix it, it's just to make a copy of how it was. Then make the change, if the change doesent fix the problem, you just write it back to what it was....



#4 The Imp

The Imp

    Not good, see EVIL is better. You'll LIVE.

  • Member
  • 5150 posts

Posted 29 October 2014 - 04:45 AM

Is there anyone that can confirm the necessity of this code change?
Well, I can confirm there's merit to make the switch upwards for those Set's, is it necessary(for you) though is a different matter, as I believe it should work on a BGT-weidu -only install just fine, even if it leaves the two GLOBALs unset.

Edited by The Imp, 29 October 2014 - 04:46 AM.

Yep, Jarno Mikkola. my Mega Mod FAQ. Use of the BWS, and how to use it(scroll down that post a bit). 
OK, desert dweller, welcome to the sanity, you are free to search for the limit, it's out there, we drew it in the sand. Ouh, actually it was still snow then.. but anyways.


#5 K4thos

K4thos
  • Modder
  • 315 posts

Posted 29 October 2014 - 11:20 AM

if ENDOFBG1 global is not set than there will be a lot of problems, even without any other mods. For example Edwin will speak his BG1 lines in BG2. I think someone would have noticed problem like this in all these years, so I doubt it is a case for normal installation. But such change should not brake this script block, so I don't see a problem with swapping it like Vlad suggested in OP.


Edited by K4thos, 29 October 2014 - 02:58 PM.