Exp snippet crashes game

So I noticed the steam version of Luna was updated to v1.05, so I wanted to try out the victory aftermath snippet, but my game crashes as soon as someone reaches a level-up..


Did I paste the scripts wrong or?


epxpbug.png
I think you forgot another fix for the Aftermath script.
But I pasted all of them.. There's no more than that.
Odd. There were two fixes for the aftermath script. One for Combat Log and the one that you have already.

Include this snippet after the fix for the Aftermath:

Code:
class Scene_Battle < Scene_Base    alias tds_blog_yea_victory_fix_show_victory_display_exp show_victory_display_exp  def show_victory_display_exp    @log_window.clear    tds_blog_yea_victory_fix_show_victory_display_exp  end  end
Doesn't work. Says stack level too deep. So I already have that script part you linked somewhere in my game, and it still won't work.


@popup.push(Sprite_PopupLuna.new(self.viewport, self, [text,nil], rule)) keeps giving errors.
If you don't use any custom EXP bars for this, remove the Custom EXP Bars.
Doesn't work. Says stack level too deep. So I already have that script part you linked somewhere in my game, and it still won't work.

@popup.push(Sprite_PopupLuna.new(self.viewport, self, [text,nil], rule)) keeps giving errors.
Have you tried adding the Luna Damage Popup script to your project? I think that's what that line of code is looking for.
Have you tried adding the Luna Damage Popup script to your project? I think that's what that line of code is looking for.
That worked! Turned out I hadn't pasted the Popup script into the base engine 😛


Thank you!
Now it doesn't show the level-up screen like:


https://yanflychannel.files.wordpress.com/2011/12/va-04.jpg?w=593


Was it taken out for Luna?
There's a setting for it (set :lvup to true) but I've never gotten it to appear at all either.  🙁  It might be a bug? 

I just found a hacky workaround for it by commenting out the "def self.gain_exp" method in the Custom Exp Bars script (around lines 71-73), but the level up window seems to be unaffected by Luna's settings. Also, I dunno if commenting out those lines will end up breaking something else, haha
I tried running it without Luna and it works so there's certainly something in Luna victory that blocks it. Why though? Makes no sense 😛
Maybe try to use the snippet that I found?
Your snippet gave me stack level too deep errors.
There's a setting in Game_Interpreter for max stack level that is set to 100. "Under normal usage, the depth will not exceed 100." But this may be different, so maybe try setting that a little higher to see if that fixes the problem.
There's a setting in Game_Interpreter for max stack level that is set to 100. "Under normal usage, the depth will not exceed 100." But this may be different, so maybe try setting that a little higher to see if that fixes the problem.
Would that help me show https://yanflychannel.files.wordpress.com/2011/12/va-04.jpg?w=593 ?
My coding skills are a bit rusty, but doesn't the snippet just recursively call itself, thus filling up the stack until it overflows?
Why do I think you pasted the snippet underneath the Item and Revival fix?

I seted it like this (though I am not using Luna Egine in this project:

Στιγμιότυπο οθόνης (16).png

And this was on Luna Engine pre-1.5. ...
I posted it under Victory Aftermath Fix like you said, even changed stack level to 120, it still gives me stack level too deep errors.


I don't know what your little snippet does, but it doesn't work..

Original thread: https://forums.rpgmakerweb.com/threads/exp-snippet-crashes-game.42195/