An error for CJ

Started by Shadow, Tue 30/12/2003 17:54:49

Previous topic - Next topic

Shadow

Hi,
I had the following error:
---------------------------
Illegal exception
---------------------------
An exception 0xC0000005 occured in ACWIN.EXE at EIP = 0x0041DE7A ; program pointer is +333, ACI version 2.60.693, gtags (0,30)

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 was when I tried out my new Script. The main chracter has fallen to the ground and got stuck in it. Then he tries to get his had out of the ground and he is animated. I hope this is understandable :)
Here is the script:

 // script for room: Player enters screen (after fadein)
if (Gvilla == 1) {  // wenn Gvilla = 1, dann kommt er grade vom  Strand geflogen
Wait (80);
DisplaySpeech (ROGER, "Nicht schonwieder ...");
Wait (110);
AnimateCharacter (EGO, 0, 5, 0);  
Wait (200);
SetCharacterView (EGO, 3);
DisplaySpeech (EGO, "Endlich bin ich wieder zu Hause");
}



Have I done something wrong???? Everything works, but after the  
last Message the error above occures.
I also tried to take away the if thing, so that he runs this script everytime, but there is still the same error.

Pumaman

It looks similar to the problem in this thread:
http://www.agsforums.com/yabb/index.php?board=2;action=display;threadid=10507&start=0

Can you try the solution suggested there, and see if that helps you.

Shadow

Okay, that works, now the Courser appears and I can move it. But when i click, to move the character the game ends and there is this Message:
---------------------------
Adventure Game Studio
---------------------------
An internal error has occured. Please note down the following information.
If the problem persists, contact Chris Jones.
(ACI version 2.60.693)

Error: run_text_script1: error -1 (Runtime error: wrong number of parameters to exported function 'unhandled_event') running function 'unhandled_event'

---------------------------
OK  
---------------------------

Seems like I done something wrong again, what?????

Pumaman


Shadow

#4
Sorry but I don't understand much from this thing. I just opened a old game from the  2.56 version. I now entered the line:
/**/function unhandled_event () {
/**/DisplaySpeech (ROGER, "Huh?");
/**/}
in the Global script and deleted the old Unhadeld_event function.
But I still get the same result.
Can you tell me please, what I have to put in there?

Shadow

Heeeeeeelpp!!!!!!!!!!!!!!!  I need to fix this, I don't want to do everything again!

Scorpiorus

It has to be unhandled_event (int what, int type)
See these parameters. Also take a look in the script header. There are probably something like:
import function unhandled_event();
replace it with
import function unhandled_event(int what, int type);

SMF spam blocked by CleanTalk