Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Game crashes when using Visustella Battlecore

A topic by Midas created Jul 04, 2024 Views: 312 Replies: 5
Viewing posts 1 to 2
It appears when using Visustella Battlecore the game crashes when initializing a battle, any chance of a fix? Hope this helps!
Developer(+1)

Hi there!

Well, due to the obfuscation on Visustella Plugins and their terms of use, it's always a "shoot in the dark" when a compatibility need to be made with Visustella. Can be easy, can be hard. Never know.

So let's try something. Find these two pieces of codes:

Sprite_Actor.prototype.getDeathSprite = function() {
    return $dataSystem.optSideView && this._actor.actor().meta[NOTETAG]
}
Sprite_Enemy.prototype.getDeathSprite = function() {
    return this._enemy.enemy().meta[NOTETAG]
}

And replace them with the following:

Sprite_Actor.prototype.getDeathSprite = function() {
    if(this._actor){
        return $dataSystem.optSideView && this._actor.actor().meta[NOTETAG]
    }else{
        return ""
    }
}
Sprite_Enemy.prototype.getDeathSprite = function() {
    if(this._enemy){
        return this._enemy.enemy().meta[NOTETAG]
    }else{
        return ""
    }
}

Let me know if it works or not. Otherwise I will have to take a look by putting these two plugins together. Tell me how to replicate the proble. Are you just starting a battle? Or did you make any type of configuration on the battle core?

Because it seems to me that the "this._actor" is not returning a real actor, but something else, maybe an enemy? Because is kinda not possible that the .actor property would not be a function from this._actor.

So any details you might have can help.

Edited the plugin's code, did not seem to fix it.

I think that battle core does edit enemy sprites because you can make them use sideview actor sprites with it, but I am using visustella OTB battle system with the plugin, to replicate I just launched a troop battle test with the plugins enabled.

Developer(+1)

I will see what I can do. But Not only the obfuscation, but Battle Core also is a big plugin that if he follows the older one from Yanfly, it may also change a lot of stuff on the battle system. I can't promisse I will be able to make a compatibility.

Hey I tried the latest update to the plugin, but I am getting this error now instead of the old one.

Developer(+1)

Hi!

Sorry about that, my bad. I fixed it on 1.0.3. Please download this new version :)