Author Topic: Error: Special Function not found  (Read 4107 times)

eric22222

  • Fanatic
  • ***
  • Posts: 177
    • View Profile
    • Eric Online
    • Email
Error: Special Function not found
« on: 2006-10-21, 06:10:40 PM »
I'm hitting some new snags here: during one level, I get an error saying "special function 35 not found." I have 37 special functions on the map, and four are set to be removed after use. I'm pretty sure the script isn't calling any function at this point in the map. In fact, I don't think there really is any function that should be activated at this point. The error message always pops up immediately after a "display message/image" function, which is the last function of an "activate series of functions" one. Any suggestions would be greatly appreciated!

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2761
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Re: Error: Special Function not found
« Reply #1 on: 2006-10-23, 05:04:35 AM »
Try adding another function to the series in order to determine if the error happens after the message function or after the whole series.

eric22222

  • Fanatic
  • ***
  • Posts: 177
    • View Profile
    • Eric Online
    • Email
Re: Error: Special Function not found
« Reply #2 on: 2006-10-23, 07:33:41 PM »
Well, I added a test function to the end of the series, and it was executed just fine. I got the error message at the after that.

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2761
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Re: Error: Special Function not found
« Reply #3 on: 2006-10-25, 06:08:05 AM »
Try creating some completely different action that activates the same series in order to see if the series is itself causing the problem somehow, or if something else is just activated at the same time as the series as a result of the player's position or some button press.

Do you have a script that is handling the OnSpecialFunction event?

eric22222

  • Fanatic
  • ***
  • Posts: 177
    • View Profile
    • Eric Online
    • Email
Re: Error: Special Function not found
« Reply #4 on: 2006-10-25, 02:48:43 PM »
Script did handle OnSpecialFunction, but it wasn't referencing any of the functions that were being activated.

I was able to stop the problem by unchecking some of the "Remove after use" boxes. I won't have the player return to this map, so it won't have any unwanted side-effects.

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2761
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Re: Error: Special Function not found
« Reply #5 on: 2006-10-25, 06:05:22 PM »
If you have "remove after use" checked for functions that are in a series, I expect the series will cause that error if it is activated a second time because the functions will no longer be there.

eric22222

  • Fanatic
  • ***
  • Posts: 177
    • View Profile
    • Eric Online
    • Email
Re: Error: Special Function not found
« Reply #6 on: 2006-10-25, 09:43:47 PM »
Well, it was the series that was set to be removed after use. The functions within it weren't set for that.