No such function in script

Started by Kairus, Mon 12/01/2004 13:01:35

Previous topic - Next topic

Kairus

Now, this is upsetting me. The program keeps crashing because it says there's no script named this or that, but they're all there.
It says:

Error: prepare_script: error -18 (no such function in script) trying to run 'room_c' (room 1).

But the 'room_c' function does exist, and when you open the room and edit the 'player enters the screen (after fadein)' interaction script it shows the script properly, no parenthesis mistakes seem to be happening. It has happened with other script parts and I solved it commenting some functions I wasn't using (yet) but I'll have to eventually uncomment. What could be wrong?
Download Garfield today!

DOWNLOADINFOWEBSITE

strazer

Hi!

I'm new to this, but could it be you created the function by hand? Try creating it with the room interaction editor?

Just a thought.

Regards
Chris

Gilbert

Yeah, just create an empty:

function room_c(){}

in the room script, if it still complains with error about missing parameter just change it to:

function room_c(int blah){}

etc.

If you really want to debug it, try adding a display message in it:

function room_c(){Display("running room_c()");}

So if you're lucky enough, you'll see that message if room_c() is run and possibly track down where it is.

Ishmael

I take it that you have set the interactions correctly... could you post the script, so we could see if there is something wrong in it after all... This could ofcource be a bug.
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.

SMF spam blocked by CleanTalk