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.

Weird Error with trying to overwrite Scene_Equip#update_right

Good day to everybody, I'm having an odd problem with my CMS Equip Menu, method Scene_Equip#update_right

First off, a brief list of details

  • [#] SDK Version is 2.4
    [#] Scene_Equip < SDK::Scene_Base
    [#] This method in question is defined below all other previous definitions
    [#] I tried to overwrite this method, but it just called the old method
    [#] I tried aliasing, calling it before the new code
    [#] I tried aliasing, calling it after the new code
    [#] I changed se to .buzzer_se to test and it played .buzzer_se and .cancel_se together (during overwrite)
    [#] I tried aliasing, called it in a condition like the example too...

Code:
if Input.trigger?(Input::C)
  $game_system.se_play($data_system.cancel_se)
  @right_window.active = false
  @right_window.index = -1
  @command_window.active = true
else ; scene_equip_old_method
end

...So, somehow maybe both methods are being called at the same time, reguardless of overwrite/alias (please note, that example was only the alias, but yes it did it when I overwrite it to.) How is that even possible for me to have that glitch, provided all the steps I took above?

Here, I've uploaded a demo on a new game, you'll have to check it out for yourself because it doesn't make any damn sense! Open the menu, go to equip, select Custom, it should activate the "@right_window". When you press B, it should re-activate "@command_window", but instead it goes back to Scene_Menu...

http://www.mediafire.com/?sharekey=a721 ... b9a8902bda

I left the alias in the project, but if you delete the alias you'll notice its an overwritten method, yet it still executes the old method even without alias present.
 

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