Importing pre-3.01 game, can't get rid of script error

Started by Magic, Sun 20/04/2008 17:34:52

Previous topic - Next topic

Magic

Hi guys.

I've imported an old game I was working on a year ago and it's generally fine except for this error message I get whenever I enter (as you can tell below) room 9.

Quote
An internal has occurred ... (blah blah)

(ACI version 3.01.1018)

Error: prepare_script: error -18 (no such function in script) trying to run 'room_AfterFadeIn' (Room 9)

I've tried removing the AfterFadeIn script but still get the error while I can't find any mention of 'prepare_script' in the script files. Any suggestions?
- Magic

TwinMoon

The problem is that the game can't find the function room_AfterFadeIn in the script.

Go to the room properties and click on events. Remove the text after Enters room after fade-in.

I think you removed these lines from your room script:

function room_AfterFadeIn()
{
}

The game tries to execute it but can't, hence the error.

Magic

Sorted, cheers (especially for such a quick response). I'm still finding my way around the new interface but should get used to it soon.
- Magic

SMF spam blocked by CleanTalk