(vxace)Crash after a victory in the Colosseum(CSCA script)

I'm using a lot of CSCA scripts like Colosseum..... I'm using some scripts of Mog Hunter also like the "Battle Results". I noticed that without Battle Results of Mog Hunter this crash doesn't happen. But I want both in my game.

NOTE: There are times when this bug doesnt happen in the SAME SITUATION (after a battle in the colosseum). Seems like it happens randomly. But happens ONLY in battles of the colosseum.

Here are the screenshots:

The crash:
1648342751573.png



The line of the error:
1648342918793.png


My scripts:
1648342979391.png
you need a backtracer script to find what the problem might actually be.
The window_base will not be your issue.
when you play test with the console window open, the backtracer will give information that can lead to the actual culprit.
So, maybe in the game installed it may not happen?
in the game installed it may not happen?
No, it will still happen, but it will give you a better idea of what the problem actually is.
@Roninator2 , I found the problem, but I can't solve this.

In theory, when I face a monster in colosseum IN SEQUENCE(it means that I don't tried to face an advanced monster before the first, since the colosseum you have to defeat the PREVIOUS monster before, for example: I opened the game and I tried to face the 2nd monster, then the battle will finish before any turn because I have to DEFEAT the first monster to face the second and so on). These enemies have a configuration on their database on the troops.
ajudae.png

The 2nd monster settings

Note: "Parar batalha" = Stop Battle


ajudae.png

The 1st monster settings


In summary, if I try to face monster 2, bringing me back to the Menu, and right after this I defeat the monster 1, occurs that bug in my first post. I guess it can be solved by events.... but I dont know what exactly what I have to do.
Try this. It seems to work in my tests. And the backtracer actually didn't give me any good information.
Ruby:
module BattleManager
 
  #--------------------------------------------------------------------------
  # ● Process Victory
  #--------------------------------------------------------------------------
  def self.process_victory
    @phase = nil
    @event_proc.call(0) if @event_proc
    $game_temp.battle_result = true ;play_battle_end_me ; replay_bgm_and_bgs
    battle_end(0)
    SceneManager.return
    return true
  end
 
end

Put below battle results
It works!!!! I had to put this script in the last line to work, there are a lot of scripts below the colosseum. Problem solved. Thank you very much one more time :VXA1:

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/vxace-crash-after-a-victory-in-the-colosseum-csca-script.146160/