Switch ID's changing themselves?

I've noticed as I'm working things that used to work fine will suddenly quit working. I've been trying to narrow this down to something I'm doing but it seems impossible.

Every single time this happens a switch I had previously being thrown will suddenly have another switch ID.

For example I had a clock common event turning off and on switches 1, 2 and 3. (Named Day Evening and Night). Suddenly when I went to playtest today a bunch of seemingly inexplicable things were happening and my day/night script wasn't working.

When I checked it out the day/night cycle was turning on switches 21, 22, and 23 instead of 1 2 and 3.

Is this a known issue? Is there any workaround for it? I'm using RPG Maker MV 1.3.1 if that helps
this does not happen in the engine itself - it can only have been caused by a problem either in your code or in a plugin you installed.


Please post a link to the plugin you're using, and show a screenshot of your plugin manager
Plugin Manager


captureicr4k.png



Plugin attached

View attachment lineofsight.js
One question: had you used those other switches at some time in the past and then changed to the current switch IDs?


Because in that case, you need to start a new game - loading a saved file can contain the old events


Or did you have other plugins installed in the past?


Because that plugin cannot make such a change.


Additionally, please post screenshots of the events that set and use those switches, and tell us how you found out that it goes to the wrong switches.
I've never had any plugins other than that one applied at any time. I've never changed the switch ID's I have upped the max a few times though.

It wasn't a save that had them switched it was the actual editor.
 

Additionally, please post screenshots of the events that set and use those switches, and tell us how you found out that it goes to the wrong switches.


I haven't edited the event since it's initial creation/testing phase. Except to fix it triggering the other switch ID's

I found out that the switch ID's changed because I was playtesting a section and the switch I was using (23) kept getting switched off. I couldn't figure out why then I opened the common event I was using to control the screen tinting and time of day and found that every instance of switch 1, 2, and 3 had been changed to 21, 22, and 23

Screenshot of the event in question
capture0nrwo.png
Since switches are in "sets" of 20, is it possible that at some point, even for testing purposes, you used 21-40 and forgot?

Spoiler
KIwT3se.png
Since switches are in "sets" of 20, is it possible that at some point, even for testing purposes, you used 21-40 and forgot?

Spoiler
KIwT3se.png


I mean anything is possible but it is highly doubtful.

Original thread: https://forums.rpgmakerweb.com/threads/switch-ids-changing-themselves.69207/