Author Topic: Error -18  (Read 288 times)

Error -18
« on: 31 Dec 2017, 20:33 »
(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!
« Last Edit: 31 Dec 2017, 20:36 by Ender Hugo »

Crimson Wizard

  • AGS Project Tracker Admins
    • Best Innovation Award Winner 2013, for spearheading the AGS 3.3.0 project
    •  
    • Lifetime Achievement Award Winner
    •  
    • Crimson Wizard worked on a game that was nominated for an AGS Award!
      Crimson Wizard worked on a game that won an AGS Award!
Re: Error -18
« Reply #1 on: 31 Dec 2017, 20:40 »
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).

Vincent

  • "That is not a good reason"
    • I can help with play testing
    •  
    • I can help with scripting
    •  
    • I can help with translating
    •  
Re: Error -18
« Reply #2 on: 31 Dec 2017, 20:41 »
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.

Re: Error -18
« Reply #3 on: 31 Dec 2017, 21:26 »
Didn't work

Cassiebsg

  • Cavefish
  • Fleeing the Cylon tyrrany...
    • Cassiebsg worked on a game that was nominated for an AGS Award!
Re: Error -18
« Reply #4 on: 31 Dec 2017, 21:58 »
check the room's EVENTS (the yellow lightbolt), do you have one called "ani"? delete it.
There are those who believe that life here began out there...

Crimson Wizard

  • AGS Project Tracker Admins
    • Best Innovation Award Winner 2013, for spearheading the AGS 3.3.0 project
    •  
    • Lifetime Achievement Award Winner
    •  
    • Crimson Wizard worked on a game that was nominated for an AGS Award!
      Crimson Wizard worked on a game that won an AGS Award!
Re: Error -18
« Reply #5 on: 31 Dec 2017, 22:13 »
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.

Re: Error -18
« Reply #6 on: 01 Jan 2018, 00:29 »
Solved it, thanks for the help

Re: Error -18
« Reply #7 on: 01 Jan 2018, 02:55 »
When possible please state how you solved your problem.:sad:
« Last Edit: 01 Jan 2018, 03:10 by eri0o »