Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Unknown Script Conflicting with Switches

Alright, you may or may not've seen my topic in the General RMXP Support forum. If you didn't, here's the original message:

Alright, bear with me, this is my first time asking for help on something like this... (Normally I can figure it out, but I'm at a loss.)

Switches aren't working for me. Period. I tell an event to change a switch to on, but nothing happens, and it doesn't go to the next event page when I tell it to after Switch X is on!

Basically, I'm trying to figure out what might cause this, and if anyone else has had this problem.

Thanks!

P.S. I wasn't sure if this should go in the RGSS support forum, because it might be related to a script I'm using...

Now, here's a list of all the scripts I'm using, so if its not too much trouble I need someone to pinpoint which script it is that might be messing with my switches.

  • RMXP SDK v1.5
  • Slipknot's Letter by Letter Message Window
  • Caldaron's ABS Script
  • Prexus' ABS HUD (Edited by Caldaron)
  • On Map Regeneration by Caldaron
  • Monster's Adaptation by Caldaron
  • Scene_Title_new.new by kRECKER

Thanks to any help I can get!
 
It's not very provable but I think (with very little confidence) that the problem can be with your Scene_Title_new.new by kRECKER.

To test if it's true, go to 'Game_Switches' inside the script editor (I think it's the third script of the list) and change
Code:
  def initialize
    @data = []
  end
with
Code:
  def initialize
    @data = []
    p 'It is OK'
  end

If a window with 'It is OK' appear when you hit new game. The Scene of the tittle is OK.
(Undo the change with initialize)


Maybe there is a script that overwrite 'Game_Switches' (SDK 2.2 do not overwrite it, I'm not that sure about 1.5) or even the Interpreter part of changing switches.
To test that, change (it's at the end of 'Game_Switches')
Code:
  def []=(switch_id, value)
    if switch_id <= 5000
      @data[switch_id] = value
    end
  end

With
Code:
  def []=(switch_id, value)
    p 'changed'
    if switch_id <= 5000
      @data[switch_id] = value
    end
  end

If the 'changed' miniwindow appear, that it's not the problem (undo that test change).
The switch should have changed.

Sorry for being so little help. Good luck.
 
Another thing you could try is to remove the Scene_Title_new and then try the project to see if the switches work. Possible the switches were not defined in the scene_title_new script thus making them not work.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top