[Ace] Cannot move with Visibility Range? [Solved]

I can’t seem to get this to work – my player just never moves, even though the darkness is there, there are no parallel or autorun processes that should stop me moving, the tilesets are passable, it is a new game file – what could be going wrong?

EDIT: On-map enemies can still move??

http://galvs-scripts.com/2013/05/30/visibility-range/

I've got this setup:

#------------------------------------------------------------------------------#

#  SETTINGS - Don't forget to set these to unused variables and switch!

#------------------------------------------------------------------------------#

 

  SWITCH = 99      # This switch turns the visibility range on/off. Default OFF

 

  SIZEVAR = 10      # This variable controls how far player can see. Default 100

 

  OPACITYVAR = 255  # This variable controls the darkness opacity.   Default 255

   

   

  Z_LEVEL = 10      # Make this higher or lower to change the z level 

                   # (to make it appear above or below other stuff)

 

 

 

 

But my character can't move once they enter the room where the range is switched on :|

 

Can anyone shed any light (haha I'm hilarious) on this?
You don't have another process tied to those switches or variables do you?
You don't have another process tied to those switches or variables do you?
No, and there is nothing switching anything else on either. Only the visibility range/variable for the light range are being turned on.
Does the map/room use a custom tileset? If yes, is the first tile in the B slot set to star passability?


The first B tile has to be set to star or all passabilities on all maps using that tileset will be broken - and that has nothing to do with any script.
Does the map/room use a custom tileset? If yes, is the first tile in the B slot set to star passability?

The first B tile has to be set to star or all passabilities on all maps using that tileset will be broken - and that has nothing to do with any script.
The map works totally fine without the script being switched on, it's nothing to do with the tileset 🙂
Then most probably those switches are used for something else as well (just like suggested a few posts above), you just don't remember that other use.


Simple way to test that: change the maximum number of switches by adding one, change the script to use the new switch instead of the switch # 99 (as the new switch can't have any previous function) and then test again.


If it suddenly works, then start hunting what else was switched on by switch #99 (don't ignore it, it might be that more than one function, switch or variable was used double by the same script or event.
Then most probably those switches are used for something else as well (just like suggested a few posts above), you just don't remember that other use.

Simple way to test that: change the maximum number of switches by adding one, change the script to use the new switch instead of the switch # 99 (as the new switch can't have any previous function) and then test again.

If it suddenly works, then start hunting what else was switched on by switch #99 (don't ignore it, it might be that more than one function, switch or variable was used double by the same script or event.
That seems to have fixed it! For some strange reason, switch 99 doesn't work - so I'm going to have to check all the other scripts to see if there was something that inadvertently used it (maybe in a default setting?) but 101 does! Thanks 😀

EDIT: Facepalm. Yanfly Stop Player Movement Switch was set to 99 -.-
That seems to have fixed it! For some strange reason, switch 99 doesn't work - so I'm going to have to check all the other scripts to see if there was something that inadvertently used it (maybe in a default setting?) but 101 does! Thanks 😀

EDIT: Facepalm. Yanfly Stop Player Movement Switch was set to 99 -.-
Dang it, I told you. 😛 lol Glad you fixed it.
Damn it, you all beat me to it.

And by the way this is why I have all script and common event switch sorted from 4999 to bottom and the rest from 1 to top  😀  That way I make no mistakes  🙂

Original thread: https://forums.rpgmakerweb.com/threads/ace-cannot-move-with-visibility-range-solved.34830/