Run Time Error and Crash (FIXED)

Started by ZZjZmoz, Sun 22/01/2006 15:22:41

Previous topic - Next topic

ZZjZmoz

I was trying to save one of the rooms I edited, and I get

Quote
0xC0000005  AGSEDIT.EXE
EIP = 0x00493FB0
ACI version 2.71.631

during room save.

Then the whole program just crashes. How can I fix this?

Released Late August 2007

Gilbert

Could you remember what you did to the room (like adding some scripts, importing backgrounds, etc.) before the crash?

ZZjZmoz

I actually hadn't edited the game since the version right before this one. Last time, the game would edit and save fine. However, when I transitioned into v2.71, I came up with a few small errors in my scripts (i.e. can't use some variable names, more ';', etc.), but when I accessed a particular room (I think it was '13' or '14' or something like that), the whole thing just wigged out on me and I wound up with the previous error.

Released Late August 2007

Pumaman

So does it happen every time you try to save this particular room?

If so, could you upload the room file for us to take a look at?

ZZjZmoz

It happens every time I save. Not sure if i can upload the room file, but I'll see if I can and get a link back. The really odd thing is that the game was working just fine prior to AGS v2.71.

Released Late August 2007

ZZjZmoz

Here's the link:

http://www.stunninginteractive.com/room16.crm

I hope it works. It doesn't appear to be on my end.  :-\

Released Late August 2007

Gilbert

I got a "file not found" error.

ZZjZmoz

Yea. it's pointing to the right place but not working right.

Released Late August 2007

Pumaman

Failing that, if you try commenting out the entire room script (add  /*  to the first line, and  */  to the end of the last line), does it save successfully?

If so, can you post the room script here?

ZZjZmoz

Here's the room script for room16

Code: ags

// room script file
import int CPIsOn;
import int IsUsingCord;
import int CombinationNumber;

#sectionstart hotspot1_aÃ,  // DO NOT EDIT OR REMOVE THIS LINE
function hotspot1_a() {
Ã,  // script for Hotspot 1 (Hotspot 1): Look at hotspot
		cEgo.Say("It looks like the activation button for that green thing in the middle of the room.");
}
#sectionend hotspot1_aÃ,  // DO NOT EDIT OR REMOVE THIS LINE

#sectionstart hotspot1_bÃ,  // DO NOT EDIT OR REMOVE THIS LINE
function hotspot1_b() {
Ã,  // script for Hotspot 1 (Hotspot 1): Interact hotspot
		cEgo.Say("It's no good...the green thing mustn't be plugged in, or maybe it's out of batteries...");
}
#sectionend hotspot1_bÃ,  // DO NOT EDIT OR REMOVE THIS LINE

#sectionstart hotspot2_aÃ,  // DO NOT EDIT OR REMOVE THIS LINE
function hotspot2_a() {
Ã,  // script for Hotspot 2 (Hotspot 2): Look at hotspot
		Display("The shelves are crammed with complex medical books.");
}
#sectionend hotspot2_aÃ,  // DO NOT EDIT OR REMOVE THIS LINE

#sectionstart hotspot2_bÃ,  // DO NOT EDIT OR REMOVE THIS LINE
function hotspot2_b() {
Ã,  // script for Hotspot 2 (Hotspot 2): Interact hotspot
		cEgo.Say("Uh-uh!Ã,  I'm not reading any of those--WAAAAAY too many big words.");
		cEgo.Say("Maybe if there were something a bit simpler...");
		cEgo.Say("Something for dummies... hmmm...");
}
#sectionend hotspot2_bÃ,  // DO NOT EDIT OR REMOVE THIS LINE

#sectionstart hotspot3_aÃ,  // DO NOT EDIT OR REMOVE THIS LINE
function hotspot3_a() {
Ã,  // script for Hotspot 3 (Hotspot 3): Look at hotspot
		Display("It's a water dispenser that dispenses cold and hot water.Ã,  There is still some water remaining inside.");
}
#sectionend hotspot3_aÃ,  // DO NOT EDIT OR REMOVE THIS LINE

#sectionstart hotspot3_bÃ,  // DO NOT EDIT OR REMOVE THIS LINE
function hotspot3_b() {
Ã,  // script for Hotspot 3 (Hotspot 3): Interact hotspot
		Display("You have nothing to put the water in.");
}
#sectionend hotspot3_bÃ,  // DO NOT EDIT OR REMOVE THIS LINE

#sectionstart hotspot4_aÃ,  // DO NOT EDIT OR REMOVE THIS LINE
function hotspot4_a() {
Ã,  // script for Hotspot 4 (Hotspot 4): Look at hotspot
		cEgo.Say("It says on the bottom that this is an 'automatic chiropractitioning device...'");
		cEgo.Say("Uncle Rigatoni must've used it to fix people's backs at one time.");
		cEgo.Say("There is an outlet on the side for an extension cord.");
}
#sectionend hotspot4_aÃ,  // DO NOT EDIT OR REMOVE THIS LINE

#sectionstart hotspot4_bÃ,  // DO NOT EDIT OR REMOVE THIS LINE
function hotspot4_b() {
Ã,  // script for Hotspot 4 (Hotspot 4): Interact hotspot
		cEgo.Say("Comfy...");
}
#sectionend hotspot4_bÃ,  // DO NOT EDIT OR REMOVE THIS LINE

#sectionstart hotspot5_aÃ,  // DO NOT EDIT OR REMOVE THIS LINE
function hotspot5_a() {
Ã,  // script for Hotspot 5 (Hotspot 5): Look at hotspot
		Display("The diploma reads, 'To Rigatoni McCracken, for having completed 1.5 years of medical school at Crappo County College.'");
}
#sectionend hotspot5_aÃ,  // DO NOT EDIT OR REMOVE THIS LINE

#sectionstart hotspot6_aÃ,  // DO NOT EDIT OR REMOVE THIS LINE
function hotspot6_a() {
Ã,  // script for Hotspot 6 (Hotspot 6): Look at hotspot
		cEgo.Walk(75,Ã,  148, eBlock, eWalkableAreas);
		cEgo.Say("Hmmmm...'Chiropracting for Dummies'...this looks easy enough to read.");
		Display("You pick up the yellow volume and turn to the first and only page.");
		cEgo.Say("Proper chiropracting skills are second nature with the patented Chiromatic Automated Chiropracting Device.");
		cEgo.Say("First, have the patient lie down on the green mattress.");
		cEgo.Say("After that, start pressing the four buttons on the control interface.");
		cEgo.Say("Really, any combination input will fix any and all back problems.Ã,  It's that simple!");
		cEgo.Say("Of course, there is one bug with the system.Ã,  DO NOT press the buttons in the following order...");
		cEgo.Say("Bend, Break, Bend, Break, Fold.");
		cEgo.Say("In the unlikely event that you do enter this combination, you can quickly remedy the situation by pressing more buttons.");
		cEgo.Say("But make sure not to enter the combination...");
		cEgo.Say("Twist, Twist, Fold, Bend, Twist.");
		cEgo.Say("If you do press those buttons, your patient will be in excruciating pain.Ã,  But it can still be fixed by pressing more buttons!");
		cEgo.Say("Of course, there is one exception.Ã,  If you press...");
		cEgo.Say("Break, Fold, Twist, Bend, Fold,");
		cEgo.Say("immediately following the previous incorrect input, you will most likely kill your patient.");
		Wait(40);
		cEgo.Say("Hmmmm...chiropracting seems a lot easier than I thought.");
}
#sectionend hotspot6_aÃ,  // DO NOT EDIT OR REMOVE THIS LINE

#sectionstart hotspot7_aÃ,  // DO NOT EDIT OR REMOVE THIS LINE
function hotspot7_a() {
Ã,  // script for Hotspot 7 (Hotspot 7): Interact hotspot
		cEgo.Walk(42, 164, eBlock, eWalkableAreas);
		cEgo.ChangeRoom(15, 286, 89);
}
#sectionend hotspot7_aÃ,  // DO NOT EDIT OR REMOVE THIS LINE

#sectionstart hotspot8_aÃ,  // DO NOT EDIT OR REMOVE THIS LINE
function hotspot8_a() {
Ã,  // script for Hotspot 8 (Hotspot 8): Look at hotspot
		Display("It's a box of old junk.");
}
#sectionend hotspot8_aÃ,  // DO NOT EDIT OR REMOVE THIS LINE

#sectionstart hotspot8_bÃ,  // DO NOT EDIT OR REMOVE THIS LINE
function hotspot8_b() {
Ã,  // script for Hotspot 8 (Hotspot 8): Interact hotspot
Ã,  if (IsUsingCord == 1) {
		Display("You already are using the extension cord");
	}else{
		Display("You discover an extension cord in the box and attach one end to the Chiropracting Machine.");
	Ã,  cEgo.AddInventory(iCord);
	Ã,  IsUsingCord = 1;
	Ã,  oCordcp.Visible = true;
	}
}
#sectionend hotspot8_bÃ,  // DO NOT EDIT OR REMOVE THIS LINE

#sectionstart hotspot9_aÃ,  // DO NOT EDIT OR REMOVE THIS LINE
function hotspot9_a() {
Ã,  // script for Hotspot 9 (Hotspot 9): Look at hotspot
		Display("It's a simplistic control console.");
}
#sectionend hotspot9_aÃ,  // DO NOT EDIT OR REMOVE THIS LINE

#sectionstart hotspot9_bÃ,  // DO NOT EDIT OR REMOVE THIS LINE
function hotspot9_b() {
Ã,  // script for Hotspot 9 (Hotspot 9): Interact hotspot
Ã,  if (){}
}
#sectionend hotspot9_bÃ,  // DO NOT EDIT OR REMOVE THIS LINE


#sectionstart room_aÃ,  // DO NOT EDIT OR REMOVE THIS LINE
function room_a() {
Ã,  // script for Room: Player enters screen (after fadein)
Ã,  if ((cJohnny.Room == 16) && (CombinationNumber < 4)){
Ã,  Ã,  cEgo.Walk(86, 126, eBlock, eAnywhere);
Ã,  Ã,  cEgo.Walk(149, 122, eBlock, eAnywhere);
Ã,  Ã,  cJohnny.Walk(88, 172, eBlock, eAnywhere);
		cJohnny.Walk(201, 140, eBlock, eAnywhere);
		cJohnny.LockView(23);
		Wait(15);
		cEgo.ChangeRoom(100, 268, 183);
Ã,  }else if ((cJohnny.Room == 16) && (CombinationNumber == 4)){
		cJohnny.Say("Oh shit!!!");
		cJohnny.UnlockView();
		cJohnny.LockView(21);
		cJohnny.Animate(0, 5, eOnce, eBlock, eForwards);
		cJohnny.Animate(0, 5, eOnce, eBlock, eBackwards);
		cJohnny.ChangeRoom(-1, 1, 1);
		cJohnny.UnlockView();
		cBurntjohn.ChangeRoom(16, 202, 140);
		cEgo.Say("Wow...");
		cEgo.Walk(51, 175, eBlock, eWalkableAreas);
		cEgo.Say("I can't imagine how the police would let Uncle Rigatoni keep a machine like this.");
	}
}
#sectionend room_aÃ,  // DO NOT EDIT OR REMOVE THIS LINE

#sectionstart room_bÃ,  // DO NOT EDIT OR REMOVE THIS LINE
function room_b() {
Ã,  // script for Room: Player enters screen (before fadein)
Ã,  if (IsUsingCord == 1) {
		oCordcp.Visible = true;
Ã,  }else{
		oCordcp.Visible = false;
	}Ã,  
}
#sectionend room_bÃ,  // DO NOT EDIT OR REMOVE THIS LINE

Released Late August 2007

Pumaman

#10
It's probably this line causing the error:

if (){}

An empty bracketed expression like that can cause the script compiler to crash in 2.71. It will be fixed in the next version, but for now just comment that line out and it'll probably fix it.

Edit by strazer:

Fixed in AGS v2.72 Beta 5.

SMF spam blocked by CleanTalk