Page 1 of 1

Crash And Burn

Posted: Thu Jun 14, 2012 6:46 pm
by Master K
Alright, so something is going on with my script. It's causing my game to crash.

Here's the full script.

Code: Select all

plotscript, syneca ignis, begin
	suspend player
	time loop := false
	
	show text box(281)
	wait for text box
	walk hero(me,up,1)
	wait for hero(me)
	suspend caterpillar
	walk hero(me,left,1)
	wait for hero(me)
	walk hero(1,up,1)
	wait for hero(1)
	walk hero(1,right,1)
	wait for hero(1)
	set hero direction(me,up)
	set hero direction(1,up)
	pan camera(right,1,3)
	wait for camera
	show backdrop(0)
	set NPC position(1,11,11)
	wait(10)
	show map
	wait(10)
	show text box(282)
	wait for text box
	boss introduction
	
	if (check tag(2) == ON) then (
	fight formation(63)
	
	)
	
	if (check tag(3) == ON) then (
	fight formation(62)
	
	)
		
	if (check tag(4) == ON) then (
	fight formation(63)
	
	)
	
	if (check tag(5) == ON) then (
	fight formation(64)
	
	)
	
	play sound(11)
	wait(25)
	show text box(320)
	wait for text box
	teach spell(find hero(hero:Alanna),87)
	
	show text box(289)
	wait for text box
	destroy NPC(0)
	walk NPC(1,down,2)
	wait for NPC(1)
	set hero direction(me,right)
	set hero direction(1,left)
	walk NPC(1,down,1)
	wait for NPC(1)
	set hero direction(me,down)
	set hero direction(1,down)
	walk NPC(1,down,8)
	wait for NPC(1)
	destroy NPC(1)
	wait(15)
	walk hero(me,right,1)
	wait for hero(me)
	set hero direction(1,left)
	show text box(292)
	wait for text box
	set hero direction(me,left)
	resume caterpillar
	camera follows hero(me)
	ignis seperation
	end
	
script, ignis seperation, begin
	walk hero(me,up,2)
	wait for hero(me)
	walk hero(me,left,5)
	wait for hero(me)
	walk hero(me,up,1)
	wait for hero(me)
	show text box(294)
	wait for text box
   ---------------------------------
   ----*Game crashes here*----
   ---------------------------------
	walk hero(me,up,1)
	camera follows hero(1)
	wait for hero(me)
	set hero position(me,0,0)
	earthquake
	show text box(295)
	wait for text box
	earthquake
	fade screen out
	set NPC position(7,6,9)
	wait(10)
	fade screen in
	show text box(296)
	wait for text box
	swap out hero(0)
	swap by position(0,1)
	camera follows hero(me)
	set tag(50,ON)
	time loop := true
	resume player
	end
I don't know why it's doing this. Can anyone offer me help?

Posted: Thu Jun 14, 2012 7:38 pm
by Bob the Hamster
Tell me more about the crash.

Is there an error message? Or does the window close with no error displayed?

Do any error messages appear in g_debug.txt?

Posted: Thu Jun 14, 2012 8:43 pm
by Master K
More about the crash?

There is no error message, first of all. When I advance the text box, my Windows Microsoft message pops up, and says that game.exe has stopped working. It then looks for a solution, and then tells me to close out the frozen window. I did not see any error messages in the g_debug.txt.

Posted: Thu Jun 14, 2012 8:47 pm
by Mogri
What's text box 294? Is it self-redirecting or something? Does it crash before or after the text box is dismissed?

Posted: Thu Jun 14, 2012 8:59 pm
by Master K
Crashes after the textbox, which is just a normal text box.

Posted: Thu Jun 14, 2012 9:23 pm
by Bob the Hamster
Master K wrote:There is no error message, first of all. When I advance the text box, my Windows Microsoft message pops up, and says that game.exe has stopped working. It then looks for a solution, and then tells me to close out the frozen window. I did not see any error messages in the g_debug.txt.
Ah, okay. Thank you for checking.

Can you send me a copy of your .rpg file and a save game right before the script that causes the crash?

EDIT: oh, one other thought. Can you post the earthquake script too?

Posted: Thu Jun 14, 2012 9:33 pm
by Master K
Alright, will do. The file shall be forthcoming.
Oh, and earthquake...

Code: Select all

script, earthquake, begin
	pan camera(left,1,50)
	wait for camera
	pan camera(right,2,50)
	wait for camera
	pan camera(left,2,50)
	wait for camera
	pan camera(right,2,50)
	wait for camera
	pan camera(left,1,50)
	wait for camera
	end

Posted: Thu Jun 14, 2012 10:38 pm
by Bob the Hamster
Thank you very much for the bug report! I was able to reproduce the crash using the file you sent me, and I have fixed it. It was a bug in the "camera follows hero"

I am rebuilding the nightly wip release candidate right now. Wait about 15 minutes, and then re-download and test and let me know how the fix works for you.