Battle Symphony remove just enemy shadows

So I've been trying to edit the battle symphony script in order to remove just the enemy battler's shadow sprite and keep the actor's  

shadow sprite intact.

Since I'm using resized battlers from the rtp instead of small sprite characters the tiny shadow just looks outta place on enemy battlers

which most already have shadows drawn into the base image.

I've searched forums, and tried my hand at editing the the "Battle Symphony" script with little success. 

I have limited scripting knowledge but I'm a fast learner. Just need someone to tell me if what I want will require a full rewrite  

or i'm just overlooking a simple fix which it typically tends to be with most other script edits and mods I've made.

After 3 weeks of trying various edits in the script I'm stumped.  I can get the actor's to have the shadows but then my enemies

disappear. I've also messed around with creating a new class to handle the shadow sprite similar to the sprite_object class 

that is used to make the icons appear in the "Battle Symphony" script. 

Spoiler
Battle symphony Script

Battle Symphony v1.15 core.txt

The core script is here I know it creates the sprite around here 

Line 1834

#==============================================================================
# ¡ Sprite_Battler
#==============================================================================

class Sprite_Battler < Sprite_Base
 
  #--------------------------------------------------------------------------
  # * Public Instance Variables
  #--------------------------------------------------------------------------
  attr_accessor :effect_type
  attr_accessor :battler_visible
 
  #--------------------------------------------------------------------------
  # new method: pose
  #--------------------------------------------------------------------------
  alias bes_initialize initialize
  def initialize(viewport, battler = nil)
    bes_initialize(viewport, battler)
    correct_change_pose if @battler
    #---
    self.visible = false if SYMPHONY::View::EMPTY_VIEW && (@battler.nil? || @battler.actor?)
    #---
    return if SYMPHONY::View::EMPTY_VIEW
    #---
    return unless SYMPHONY::Visual::BATTLER_SHADOW
    #---
    @charset_shadow = Sprite.new(viewport)
    @charset_shadow.bitmap = Cache.system("Shadow")
    @charset_shadow.ox = @charset_shadow.width / 2
    @charset_shadow.oy = @charset_shadow.height
  end
 

Line 1865

updates it here

Line 1873

#--------------------------------------------------------------------------
  # alias method: update
  #--------------------------------------------------------------------------
  alias bes_update update
  def update
    bes_update
    #---
    return if SYMPHONY::View::EMPTY_VIEW
    #---
    return unless SYMPHONY::Visual::BATTLER_SHADOW
    #---
    @charset_shadow.opacity = self.opacity
    @charset_shadow.visible = self.visible
    @charset_shadow.x = self.x + (self.mirror ? 0 : - 2)
    @charset_shadow.y = self.y + 2
    @charset_shadow.z = self.z - 1
    #---
    @charset_shadow.opacity = 0 if @battler.nil?
  end

Line 1891
It seems as if the script treats both the enemy and actors as battler then ties the shadow sprite to the battler but is there a way to separate the battler types as enemy or actor then draw the shadow accodingly only to the actors as id like instead of to both battlers.

Scripts used include

  •  Battle Symphony v1.15
  • Yanfly Ace Core Engine v1.09
  • Ace Battle Engine v1.22 

I'm curious if anyone can point me in the direction I need to go about modifying the script to get the result I'm looking for.

Any help would be appreciated ! 😀
Well, you can always open them up at an image editing software to remove shadows...
See this line?

Code:
return unless SYMPHONY::Visual::BATTLER_SHADOW
Change it to this:
Code:
return unless SYMPHONY::Visual::BATTLER_SHADOW && @battler.actor?
There are two places where you need to do this.
Thanks for the quick response however when I try that amended code you gave it gives me a   

No method error occurred Line 1858  Undefined method for 'actor?' for nil:Nilclass

which seems odd to me since 4 lines above it the amended code is referenced in a similar fashion

Not sure why that is I tried your fix on base symphony script and without the others I listed as well and the same error so don't believe its a issue that way.

              self.visible = false if SYMPHONY::View::EMPTY_VIEW && (@battler.nil? || @battler.actor?)
              #---
             return if SYMPHONY::View::EMPTY_VIEW
             #---
1858    return unless SYMPHONY::Visual::BATTLER_SHADOW    

replaced with Shaz fix idea

1858 return unless SYMPHONY::Visual::BATTLER_SHADOW && @battler.actor?

Ah I figured out while typing this response I need to add the code this way             (@battler.nil? || @battler.actor?)    not just the @battler.actor? part

meh such a simple fix cant believe I wasted days trying to do it numerous other ways. So much to learn about ruby still sigh.

Thank You a lot    Shaz   🤣 🤘   You saved me from ripping out my hair by over thinking my problem. 

Well guess you can close this thread problem has been solved. :-}
Yes, of course. I don't know why I overlooked that.


Glad you got it working 🙂


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/battle-symphony-remove-just-enemy-shadows.19083/