Author Topic: Error... Method ~ Not set Or Variable Block Not Set  (Read 4315 times)

Keitake

  • Visitor
  • *
  • Posts: 2
    • View Profile
    • Email
Error... Method ~ Not set Or Variable Block Not Set
« on: 2006-06-09, 07:11:47 AM »
I get this irritating error whenever i tried to edit my maps. Here is what it says:
"Variable error not set or block variable not set!"
and followed by:
"Method '~' whatever"...
What could be causing this?

durnurd

  • Lead Lemming
  • Expert
  • Fanatic
  • *****
  • Posts: 1234
  • Games completed so far: 0
    • MSN Messenger - durnurd@hotmail.com
    • View Profile
    • Find My Ed
Re: Error... Method ~ Not set Or Variable Block Not Set
« Reply #1 on: 2006-06-09, 09:46:33 AM »
That's the greatest of all errors.  It basically means, "Something's wrong.  You know it, and I know it.  I know exactly what's wrong, but I'm not going to tell you".  It usually occurs when you delete or change something still in use by the map, like deleting or resizing a tileset, deleting a path somehow without deleting the sprite, deleting the player sprite, or if the map editor crashed and then you saved the project afterwards.  If you have a backup that works that's not too old, the easiest thing to do (after trying all of the normal things like restarting the program or restarting the computer) would be to use the backup.  BlueMonk used to some times offer his help in debugging exactly what the problem was, but I don't want to get your hopes up.  He's very busy with SGDK2 now, and only glaring bugs in the code (like your computer blows up when you try to add a sprite) would prompt him to release another SGDK v1.x.  This may also extend to debugging projects.

Here are some other threads dealing with similar problems:

http://gamedev.comdel.net/index.php?topic=549.0
http://gamedev.comdel.net/index.php?topic=45.0
http://gamedev.comdel.net/index.php?topic=601.0
http://gamedev.comdel.net/index.php?topic=52.0
« Last Edit: 2006-06-09, 09:54:37 AM by durnurd »
Edward Dassmesser

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2761
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Re: Error... Method ~ Not set Or Variable Block Not Set
« Reply #2 on: 2006-06-09, 08:45:58 PM »
1) Does your project use any script?
2) If you can post your project someplace we can get at it, I or someone else on the forums might be able to debug it at least a little bit.

Keitake

  • Visitor
  • *
  • Posts: 2
    • View Profile
    • Email
Re: Error... Method ~ Not set Or Variable Block Not Set
« Reply #3 on: 2006-06-10, 03:50:25 AM »
Thanks everyone! It works fine now. Here is what i did:
1- I reinstall the SGDK.
2- I remake my scripts and check if any bugs was in the scripts.

Thanks again!!!