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.

"Stack Level too Deep" after restarting with F12

Well.. I have many aliased methods in my game, sometimes they're even aliased twice or more (because of some scripts, etc.)

Does anyone know how to prevent this error? I tried near everything I could imagine, e.g. changing the names, using completely different names, etc..

-f0tz!
 
A walkaround this is to set a flag before the alias definition. Nothing to difficult.

Code:
class Scene_Map
  if @seph_enccntrl_scnmap_updatefix.nil?
    alias seph_enccntrol_scnmap_update update
    @seph_enccntrl_scnmap_updatefix = true
  end
end

That think that should do it. I would name the instance variable the same as the new method name, so it is dynamic.
 
mh.. thx.. this would be a possibility, but I cannot imagine that there is no other way..
maybe its possible to "reset" everything somehow? (so F12 has the same effect as closing the game and restarting)

-f0tz!
 

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