Exp snippet crashes game

BCj

Veteran
Veteran
Joined
Jun 19, 2014
Messages
1,731
Reaction score
929
First Language
Dutch
Primarily Uses
N/A
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
 
Last edited by a moderator:

AceOfAces_Mod

Engineering to infinity!
Veteran
Joined
Sep 7, 2014
Messages
1,721
Reaction score
1,200
First Language
Greek
Primarily Uses
RMVXA
I think you forgot another fix for the Aftermath script.
 

BCj

Veteran
Veteran
Joined
Jun 19, 2014
Messages
1,731
Reaction score
929
First Language
Dutch
Primarily Uses
N/A
But I pasted all of them.. There's no more than that.
 

AceOfAces_Mod

Engineering to infinity!
Veteran
Joined
Sep 7, 2014
Messages
1,721
Reaction score
1,200
First Language
Greek
Primarily Uses
RMVXA
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
 

BCj

Veteran
Veteran
Joined
Jun 19, 2014
Messages
1,731
Reaction score
929
First Language
Dutch
Primarily Uses
N/A
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.
 
Last edited by a moderator:

AceOfAces_Mod

Engineering to infinity!
Veteran
Joined
Sep 7, 2014
Messages
1,721
Reaction score
1,200
First Language
Greek
Primarily Uses
RMVXA
If you don't use any custom EXP bars for this, remove the Custom EXP Bars.
 

Melkino

Villager
Member
Joined
Mar 17, 2012
Messages
9
Reaction score
1
First Language
English
Primarily Uses
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.
 

BCj

Veteran
Veteran
Joined
Jun 19, 2014
Messages
1,731
Reaction score
929
First Language
Dutch
Primarily Uses
N/A
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 :p


Thank you!
 

Melkino

Villager
Member
Joined
Mar 17, 2012
Messages
9
Reaction score
1
First Language
English
Primarily Uses
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
 
  • Like
Reactions: BCj

BCj

Veteran
Veteran
Joined
Jun 19, 2014
Messages
1,731
Reaction score
929
First Language
Dutch
Primarily Uses
N/A
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 :p
 

AceOfAces_Mod

Engineering to infinity!
Veteran
Joined
Sep 7, 2014
Messages
1,721
Reaction score
1,200
First Language
Greek
Primarily Uses
RMVXA
Maybe try to use the snippet that I found?
 

BCj

Veteran
Veteran
Joined
Jun 19, 2014
Messages
1,731
Reaction score
929
First Language
Dutch
Primarily Uses
N/A
Your snippet gave me stack level too deep errors.
 

VideoWizard

Dragon Kingdoms Series producer
Veteran
Joined
Mar 13, 2012
Messages
510
Reaction score
418
First Language
English
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.
 

SamJones

Autorun
Veteran
Joined
Jul 12, 2015
Messages
113
Reaction score
47
First Language
English
Primarily Uses
RMMV
My coding skills are a bit rusty, but doesn't the snippet just recursively call itself, thus filling up the stack until it overflows?
 

AceOfAces_Mod

Engineering to infinity!
Veteran
Joined
Sep 7, 2014
Messages
1,721
Reaction score
1,200
First Language
Greek
Primarily Uses
RMVXA
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. ...
 

BCj

Veteran
Veteran
Joined
Jun 19, 2014
Messages
1,731
Reaction score
929
First Language
Dutch
Primarily Uses
N/A
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..
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Frostorm wrote on Featherbrain's profile.
Hey, so what species are your raptors? Any of these?
... so here's my main characters running around inside "Headspace", a place people use as a safe place away from anxious/panic related thinking.
Stream will be live shortly! I will be doing some music tonight! Feel free to drop by!
Made transition effects for going inside or outside using zoom, pixi filter, and a shutter effect
I have gathered enough feedback from a few selected people. But it is still available if you want to sign up https://forums.rpgmakerweb.com/index.php?threads/looking-for-testers-a-closed-tech-demo.130774/

Forum statistics

Threads
105,992
Messages
1,018,191
Members
137,772
Latest member
Kirakirna
Top