Unhandled event error message

Started by Kinoko, Tue 20/01/2004 11:59:50

Previous topic - Next topic

Kinoko

Hi,
I'm sorry if this has already been answered somewhere but I looked around and couldn't find it in any of the FAQs or help guides.

I'm just starting to test my first room in a new game, I've created my  player character and imported the first room, set all the walkable areas, walk-behinds and the baseline, and the starting point for the character. I've basically followed the tutorial up to the "Making your first room" point.

When I setup and test the game, it appears fine and everything seems as it should until I click on an area to try and get my character to walk somewhere. I get an internal error that reads like this:

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

I know next to nothing about scripting so far so even though I can see what's written under the unhandled_event section, it doesn't mean much to me. This error also happens after I look at a certain inventory item, though it lets me click on the GUI (I'm using the MI2 GUI template) buttons and look at another inventory item.

Again, I'm sorry if this is posted elsewhere or should be obvious.
Thanks

Ishmael

I think it's like this:

The error is caused by v2.6 checking function calls and syntexes better. The template is created using a shortcut that v.2.56 and below allowed. The unhandled_event function line should be:

function unhandled_event (int data, int what) {

whey you probably have it as:

function unhandled_event (int data) {

or something. Correct the parameters, of if you're unsure, post the unhandled_event script here so we can tell you what to do to it.
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

Kinoko

Thanks for the swift reply!

Actually, I was just about to try and delete this post as I did a search on the forums and found a bunch of answers for the problem (don't know why a forum search didn't occur to me earlier .. sorry for wasting your time!). I just downloaded the latest version of the scumm template which has the correct coding.

I appreciate the reply though, thanks :)

SMF spam blocked by CleanTalk