illegal exception

Started by spook1, Sun 27/06/2004 19:23:23

Previous topic - Next topic

spook1

After hours of looking I need to ask what this error means:
Code: ags

---------------------------
Illegal exception
---------------------------
An exception 0xC0000005 occured in ACWIN.EXE at EIP = 0x77F73905 ; program pointer is +6, ACI version 2.60.698, gtags (1,10)

AGS cannot continue, this exception was fatal. Please note down the numbers above, remember what you were doing at the time and notify CJ on the Tech forum.



Most versions of Windows allow you to press Ctrl+C now to copy this entire message to the clipboard for easy reporting.
---------------------------
OKÃ,  Ã, 
---------------------------


It occurs when the script should executeÃ,  "NewRoom(10);"
I have an object being moved around by a script. When it 'hits' certain coordinates a new room must be entered.
I want to go to room 10. Other rooms are no problem, but room 10 is ...

rtf


I probably don't know what I'm saying, but check to see if "room10.crm" is in the correct directory.
I fail at art.


Gilbert

Can you post that part of script around that "newroom(10)"?

strazer

An older version of AGS yielded the following error message:

Illegal exception! 0xC0000005 occured in ACWIN.EXE at EIP = 0x0043C28E ; program pointer is +6, ACI version 2.56.627, gtags (1,17)

CJ had to say: "the most likely cause is you've deleted the sprite for mouse cursor 6, which is the mouse pointer that comes up in the Ctrl+X window."

So check if there's maybe in an object in room 10 that refers to a missing sprite or something?

spook1

Quote from: Gilbot V7000a on Mon 28/06/2004 11:23:41
Can you post that part of script around that "newroom(10)"?

I doubt if it is the scriopt calling the newroom, since it works ok with other rooms.
Anyway, the function that calls for room(10) is:


function rescue(){

  if ( ( (position.x < 310) && (position.x > 279) && (position.y < 73) && (position.y > 51) ) && (GetGlobalInt(49) == 0)){
     SetGlobalInt(49,1);
     MoveObjectDirect(0,277,55,1);

     SetObjectFrame(0,27,0,9);
     MoveObjectDirect(0,292,60,1);

     DisplaySpeech(EGO, "Yes, I did it!!!!!");
     DisplaySpeech(EGO, "Nu rennen naar de shutlle, voordat ie er weer vandoor gaat!!");
     Wait(10);
     NewRoom(10);
  }
}

The script of room 10 is:


// room script file


function room_a() {
  // script for room: Player enters screen (before fadein)
if (GetGlobalInt(47) ==1) {
          ObjectOff(0);
     ObjectOn(1);
   }   
}

function room_b() {
  // script for room: Player enters screen (after fadein)
if (GetGlobalInt(47)==1) {   

   SetCharacterViewEx(EGO,5,3,ALIGN_LEFT); //volta kijkt schip na...
   MoveObject(1,265,77,1);
   DisplaySpeech(EGO,"Shoot, de noodcapsule is weggeslagen!");
   DisplaySpeech(EGO,"ik moet zo snel mogelijk naar de controle kamer om 'm terug te halen,");
   DisplaySpeech(EGO,"voordat hij buiten bereik van de transmitter is!!!!"); 

   ReleaseCharacterView(EGO); //volta kan weer bewegen
}
if (GetGlobalInt(49) == 1){
  DisplaySpeech(EGO, "Mooi, de capsule staat er weer");
  DisplaySpeech(EGO, "Snel naar binnen en weg voordat het hier uit de hand loopt.");
  MoveCharacterDirect(EGO, 100, 120);
}
}

function room_c() {
  // script for room: Repeatedly execute

}

Pumaman

I can't see anything obvious - any chance you could uploda the game for me to take a look at?

spook1

Sorry, my problem ceesed existing :-)
I do not knweo what I changed, maybe a double newroom command or an inconsistend GI setting? I am not sure. never found a real programming error, but after polishing the room-room transfers the probblem stopped existing.

thanks for thinking along,

spook1

#8
It is back!!Ã,  >:(.
After looking at an object, I get the following error:

Code: ags

---------------------------
Illegal exception
---------------------------
An exception 0xC0000005 occured in ACWIN.EXE at EIP = 0x0046DDA6 ; program pointer is +155, ACI version 2.60.698, gtags (1,10)

AGS cannot continue, this exception was fatal. Please note down the numbers above, remember what you were doing at the time and notify CJ on the Tech forum.

(Global script line 97 is marked by ********)


Most versions of Windows allow you to press Ctrl+C now to copy this entire message to the clipboard for easy reporting.
---------------------------
OKÃ,  Ã, 
---------------------------



orÃ, 

Code: ags

---------------------------
Illegal exception
---------------------------
An exception 0xC0000005 occured in ACWIN.EXE at EIP = 0x77F585C0 ; program pointer is +155, ACI version 2.60.698, gtags (1,10)

AGS cannot continue, this exception was fatal. Please note down the numbers above, remember what you were doing at the time and notify CJ on the Tech forum.

(Room 2 script line 14)


Most versions of Windows allow you to press Ctrl+C now to copy this entire message to the clipboard for easy reporting.
---------------------------
OKÃ,  Ã, 
---------------------------



Global script line 97 indicated by *** in the code below:

Code: ags

function on_mouse_click(int button) {
Ã,  // called when a mouse button is clicked. button is either LEFT or RIGHT
Ã,  if (IsGamePaused() == 1) {
Ã,  Ã,  // Game is paused, so do nothing (ie. don't allow mouse click)
 }
 else if (button==LEFT) {
*****line 97 *****Ã,  Ã, ProcessClick(mouse.x, mouse.y, GetCursorMode() );
Ã,  }
Ã,  else if (button == RIGHT){Ã,  // right-click,
Ã,  Ã,  
Ã,  Ã,  if ((got_inv != -1))Ã,  { // ifÃ,  active inv exists
Ã,  Ã,  Ã,  AddInventory(got_inv);Ã,  // put back in inv window
Ã,  Ã,  Ã,  SetActiveInventory(-1);
Ã,  Ã,  }
Ã,  Ã,  else{Ã,  // right-click, so cycle cursor
Ã,  Ã,  Ã,  Ã,  Ã,  Ã, SetNextCursorMode();
Ã,  Ã,  }
Ã,  }
}



room 2, script line 14, indicated by ****************

Code: ags

function hotspot1_b() {
Ã,  // script for hotspot1: Any click on hotspot
DisplaySpeech(EGO,"De deur naar de gang"); *****************************
DisplaySpeech(EGO,"Laten we maar gaan...");
Wait(10);
NewRoomEx(4,141, 190);Ã,  Ã,  
}



NB!! The grey bar at the bottom of the editor screen warns:
"A serious error occurred in the game engine"

Some further testing shows that for each action I take using the left-mouse button, an error is generated associated witht the the according action. E.g. selecting Quit Game from the gui renders an error for the line QuitGame(1); in the global script.

Suggestions?

Pumaman

Sounds like it could be some sort of font problem, if the error is popping up all over the place in random locations.

Are you using custom fonts? If so, are they TTF or SCI?

Is the game small enough to upload?

spook1


Wow, that is what I call a fast reply :-)

I am using ttf fonts, and the problem indeed started after adding a new fort.
I have removed all fonts and reimported them. That did not work.

What should I do about it??

The game is rather large. I could upload it though; what parts would you be interested in? ac2game.ags is about 22 mb.

regards,

martijn

Pumaman

Looks like AGS doesn't like the new font. Could you upload the TTF file for the font that started messing things up?

The likelihood is though that you'll have to not use that font in your game.

SMF spam blocked by CleanTalk