Possible to keep default battleback when using custom?

Hey I was wondering if there was any way to keep the default battlebacks VX Ace uses that look like some sort of blurred swirl of the area while putting a sort of 'foreground' battleback over it, from what I've tried putting any battleback just seems to remove it and make any transparent space black so I was wondering if I could keep that base one with another on top of it
Heres an example of what I mean
They're just images that come with it, no? If so, you can just open it in your image manipulation program of choice and put your custom one on top of it.
They're just images that come with it, no? If so, you can just open it in your image manipulation program of choice and put your custom one on top of it.
I could get the base images but I meant I wanted it to stay matching the color of the map the fight appears on, how the the base battleback does if you leave it blank
Like that example image was done on a blue dungeon tile so it was blue but if you do it on say a red carpet the default background will be red and I was hoping to keep it doing that automatically so I dont need to save a bunch of different variations of the battleback and manually place them if I want it to match the area of the battle if thats possible
They're just images that come with it, no?
not those

@fasfa123 those blurred backgrounds are a special function based on the tileset, and not every tileset uses that option.

It has something to do with area type of the tileset and the function is only triggered by not setting a battleback for the map.
Unfortunately for you it has been too long since I last had used Ace and I don't even have it installed.
you'll have to wait until a scripter who still has it installed can check the code to see how these backgrounds were created from the tiles and explain it to you.
not those

@fasfa123 those blurred backgrounds are a special function based on the tileset, and not every tileset uses that option.

It has something to do with area type of the tileset and the function is only triggered by not setting a battleback for the map.
Unfortunately for you it has been too long since I last had used Ace and I don't even have it installed.
you'll have to wait until a scripter who still has it installed can check the code to see how these backgrounds were created from the tiles and explain it to you.
Yeah I'm just hoping someone knows if theres a way
Luckily having perfect battlebacks isnt integral to testing so its not like this is something I need to figure out right now, and its not too hard waiting
those blurred backgrounds are a special function based on the tileset, and not every tileset uses that option.
And so far every tileset Ive used seems to work making one, even a couple custom tileset I made myself and I have no idea how you'd set that on so it seems if I can get it working with the added 'foreground' back it should work in all my maps at least
@fasfa123 Here you go! I went ahead and wrote a simple script for using the blurry battlebacks at the same time as the normal battlebacks.

Spoiler: Battleback Script
Ruby:
=begin

Snapshot Battleback Script
  ver 0.5

  Allows the blurred snapshot to be drawn while
  using normal battlebacks as well.
 
  To change whether the snapshot gets drawn
  mid-game, you can use the script call:
 
  $game_system.blurry_battleback = true/false

=end

module HB
  module SNAPSHOT
    
    #Default setting for snapshot battleback
    DRAW_SNAPSHOT_BATTLEBACK = true
    
  end
end

class Game_System
 
  alias hb_bb_initialize initialize
  def initialize
    hb_bb_initialize
    @blurry_battleback = HB::SNAPSHOT::DRAW_SNAPSHOT_BATTLEBACK
  end
 
  def blurry_battleback?
    @blurry_battleback
  end
 
  def blurry_battleback=(state)
    @blurry_battleback = state
  end
end

class Spriteset_Battle
 
  def create_blurry_battleback?
    return false if $BTEST
    $game_system.blurry_battleback?
  end
 
  alias hb_create_blurry_battleback create_battleback1
  def create_battleback1
    @blurry_back = Sprite.new(@viewport1)
    @blurry_back.z = -1
    if create_blurry_battleback?
      @blurry_back.bitmap = create_blurry_background_bitmap
    else
      @blurry_back.bitmap = Bitmap.new(1,1)
    end
    hb_create_blurry_battleback
  end
  #--------------------------------------------------------------------------
  # * Create Battle Background (Floor) Sprite
  #--------------------------------------------------------------------------
 
  alias hb_battleback1_bitmap battleback1_bitmap
  def battleback1_bitmap
    if create_blurry_battleback?
      if battleback1_name
        Cache.battleback1(battleback1_name)
      else
        Bitmap.new(1,1)
      end
    else
      hb_battleback1_bitmap
    end
  end
 
  alias hb_bb_update update
  def update
    hb_bb_update
    update_blurry_battleback
  end
 
  def update_blurry_battleback
    @blurry_back.update
  end
 
  alias hb_bb_dispose dispose
  def dispose
    dispose_blurry_battleback
    hb_bb_dispose
  end
 
  def dispose_blurry_battleback
    @blurry_back.bitmap.dispose
    @blurry_back.dispose
  end
 
end

And to add on to what Andar was saying, if this setting is set to Field Type:
Tilesetsetting.png

Then the map will replace the battleback1 automatically depending on the tile.
@fasfa123 Here you go! I went ahead and wrote a simple script for using the blurry battlebacks at the same time as the normal battlebacks.

Spoiler: Battleback Script
Ruby:
=begin

Snapshot Battleback Script

  Allows the blurred snapshot to be drawn while
  using normal battlebacks as well.
 
  To change whether the snapshot gets drawn
  mid-game, you can use the script call:
 
  $game_system.blurry_battleback = true/false

=end

module HB
  module SNAPSHOT
   
    #Default setting for snapshot battleback
    DRAW_SNAPSHOT_BATTLEBACK = true
   
  end
end

class Game_System
 
  alias hb_bb_initialize initialize
  def initialize
    hb_bb_initialize
    @blurry_battleback = HB::SNAPSHOT::DRAW_SNAPSHOT_BATTLEBACK
  end
 
  def blurry_battleback?
    @blurry_battleback
  end
 
  def blurry_battleback=(state)
    @blurry_battleback = state
  end
end

class Spriteset_Battle
 
  def create_blurry_battleback?
    $game_system.blurry_battleback?
  end
  #--------------------------------------------------------------------------
  # * Create Battle Background (Floor) Sprite
  #--------------------------------------------------------------------------
  alias hb_create_battleback1 create_battleback1
  def create_battleback1
    if create_blurry_battleback?
      @blurry_back = Sprite.new(@viewport1)
      @blurry_back.bitmap = create_blurry_background_bitmap
      @blurry_back.z = -1
      @back1_sprite = Sprite.new(@viewport1)
      @back1_sprite.bitmap = battleback1_bitmap
      @back1_sprite.z = 0
      center_sprite(@back1_sprite)
    else
      hb_create_battleback1
    end
  end
 
  alias hb_battleback1_bitmap battleback1_bitmap
  def battleback1_bitmap
    if create_blurry_battleback?
      if battleback1_name
        Cache.battleback1(battleback1_name)
      else
        Bitmap.new(1,1)
      end
    else
      hb_battleback1_bitmap
    end
  end
 
  alias hb_bb_dispose dispose
  def dispose
    dispose_blurry_battleback if create_blurry_battleback?
    hb_bb_dispose
  end
 
  def dispose_blurry_battleback
    @blurry_back.bitmap.dispose
    @blurry_back.dispose
  end
 
end

And to add on to what Andar was saying, if this setting is set to Field Type:
View attachment 353436
Then the map will replace the battleback1 automatically depending on the tile.
Hey thanks a lot for the script! Tested it for a while and it works well in game, but it has 1 problem I noticed in causing battle tests from the database to crash with this error, would it be an easy fix?
@fasfa123 I've updated the code above. The game should no longer crash while testing from the database.
Thank you, seems to be working perfectly now!

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/possible-to-keep-default-battleback-when-using-custom.181134/