Crash And Burn

Make games! Discuss those games here.

Moderators: Bob the Hamster, marionline, SDHawk

Post Reply
User avatar
Master K
King Slime
Posts: 1899
Joined: Sat Jun 11, 2011 9:40 pm
Location: A windswept rock in the Atlantic Ocean

Crash And Burn

Post 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?
User avatar
Bob the Hamster
Liquid Metal King Slime
Posts: 7460
Joined: Tue Oct 16, 2007 2:34 pm
Location: Hamster Republic (Ontario Enclave)
Contact:

Post 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?
User avatar
Master K
King Slime
Posts: 1899
Joined: Sat Jun 11, 2011 9:40 pm
Location: A windswept rock in the Atlantic Ocean

Post 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.
User avatar
Mogri
Super Slime
Posts: 4598
Joined: Mon Oct 15, 2007 6:38 pm
Location: Austin, TX
Contact:

Post by Mogri »

What's text box 294? Is it self-redirecting or something? Does it crash before or after the text box is dismissed?
User avatar
Master K
King Slime
Posts: 1899
Joined: Sat Jun 11, 2011 9:40 pm
Location: A windswept rock in the Atlantic Ocean

Post by Master K »

Crashes after the textbox, which is just a normal text box.
User avatar
Bob the Hamster
Liquid Metal King Slime
Posts: 7460
Joined: Tue Oct 16, 2007 2:34 pm
Location: Hamster Republic (Ontario Enclave)
Contact:

Post 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?
Last edited by Bob the Hamster on Thu Jun 14, 2012 9:25 pm, edited 1 time in total.
User avatar
Master K
King Slime
Posts: 1899
Joined: Sat Jun 11, 2011 9:40 pm
Location: A windswept rock in the Atlantic Ocean

Post 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
User avatar
Bob the Hamster
Liquid Metal King Slime
Posts: 7460
Joined: Tue Oct 16, 2007 2:34 pm
Location: Hamster Republic (Ontario Enclave)
Contact:

Post 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.
Post Reply