Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Ender Hugo on Sun 31/12/2017 20:33:54

Title: Error -18
Post by: Ender Hugo on Sun 31/12/2017 20:33:54
(I'm not sure if this fits in the Beginners Technical Questions) I tried to run my game and this happened
Error: prepare_script: error -18 (no such function in script) trying to run 'ani' (Room 1)
I tried removing my last lines of code(even the whole code) but it keeps showing, please help me!
Title: Re: Error -18
Post by: Crimson Wizard on Sun 31/12/2017 20:40:52
Try doing Build - Rebuild all files.

Usually this happens when game scripts desynchronize (some are newer version, and some left from old version of the game).
Title: Re: Error -18
Post by: Vincent on Sun 31/12/2017 20:41:49
Just one shot in the dark, after you've deleted the whole script go to build -> rebuild all files and it should compile again.

Edit: Crimson Wizard much faster.
Title: Re: Error -18
Post by: Ender Hugo on Sun 31/12/2017 21:26:35
Didn't work
Title: Re: Error -18
Post by: Cassiebsg on Sun 31/12/2017 21:58:16
check the room's EVENTS (the yellow lightbolt), do you have one called "ani"? delete it.
Title: Re: Error -18
Post by: Crimson Wizard on Sun 31/12/2017 22:13:28
Quote from: Cassiebsg on Sun 31/12/2017 21:58:16
check the room's EVENTS (the yellow lightbolt), do you have one called "ani"? delete it.
Also object and hotspot events, if you have them in room.
Title: Re: Error -18
Post by: Ender Hugo on Mon 01/01/2018 00:29:50
Solved it, thanks for the help
Title: Re: Error -18
Post by: eri0o on Mon 01/01/2018 02:55:42
When possible please state how you solved your problem.:sad: