Jump to content
lavalord96

Invisible face glitch??

Recommended Posts

Alright I've used this forum to help me fix a glitch once, so I hope this will work again. So here is the problem, I have been making my game and I have just completed the alpha version for it and am now working on it's second part of the story. I have ran into a fairly annoying glitch where one of my actors doesn't have their face displayed in the in-game menu, I should also note, its JUST for this one specific actor (her name is Solar) I have replaced Solar with other actors and their faces shown up just fine, I'm not sure if this has to do with one of my scripts that I've installed, or just as simple as not making the actor face sheet the correct dimensions. It's not game breaking, but it certainly is annoying to deal with! Here is a picture of my issue (Funnily enough, her sprite is working for some reason...) I have also included my event that effects this situation. I can't seem to find this problem any where else, and yes, I am using ONLY Yanfly scripts for the aspects of the game, I have two other scripts that specifically effect the title ONLY.

ACTOR FACE PROBLEM PART 2.PNG

ACTOR FACE PROBLEM.PNG

Share this post


Link to post
Share on other sites

Kinda hard to tell from provided information;

The event doesn't seem to have anything to do with this and I suppose you didn't toy with the menu code, so that leaves that basic question to start with -

 

Are you sure Solar's face is correctly set in the [Actor Tab] in the Database? Does the face show properly in the [Graphic] setting there?

 

If yes, what scripts exactly you're using?

Share this post


Link to post
Share on other sites

That's interesting.. I'm afraid I can't really tell anything without seeing the code.

 

Try hitting CTRL+SHIFT+F in the script editor and search for

draw_actor_face

and show the results.

 

Then also search for
draw_face

 

If any script is having anything to do with this, it might pinpoint which one is doing that.

 

Eventually you can check things yourself by removing custom scripts to see if anything changes. If adding a particular script causes that, then it would be much easier to locate the problem.

Share this post


Link to post
Share on other sites

Alright, I looked in each script, and I found two scripts that had something to do with drawing the faces; they are the "Yanfly Party System" and the "Yanfly Battle System" here are the pictures I took.

ACTOR FACE PROBLEM PART 4.PNG

ACTOR FACE PROBLEM PART 5.PNG

ACTOR FACE PROBLEM PART 6.PNG

ACTOR FACE PROBLEM PART 7.PNG

Share this post


Link to post
Share on other sites
Posted (edited)

Alright I found it, here it is (I'm dumb): 

 

#==============================================================================
# ** Window_MenuStatus
#------------------------------------------------------------------------------
#  This window displays party member status on the menu screen.
#==============================================================================

class Window_MenuStatus < Window_Selectable
  #--------------------------------------------------------------------------
  # * Public Instance Variables
  #--------------------------------------------------------------------------
  attr_reader   :pending_index            # Pending position (for formation)
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  def initialize(x, y)
    super(x, y, window_width, window_height)
    @pending_index = -1
    refresh
  end
  #--------------------------------------------------------------------------
  # * Get Window Width
  #--------------------------------------------------------------------------
  def window_width
    Graphics.width - 160
  end
  #--------------------------------------------------------------------------
  # * Get Window Height
  #--------------------------------------------------------------------------
  def window_height
    Graphics.height
  end
  #--------------------------------------------------------------------------
  # * Get Number of Items
  #--------------------------------------------------------------------------
  def item_max
    $game_party.members.size
  end
  #--------------------------------------------------------------------------
  # * Get Item Height
  #--------------------------------------------------------------------------
  def item_height
    (height - standard_padding * 2) / 4
  end
  #--------------------------------------------------------------------------
  # * Draw Item
  #--------------------------------------------------------------------------
  def draw_item(index)
    actor = $game_party.members[index]
    enabled = $game_party.battle_members.include?(actor)
    rect = item_rect(index)
    draw_item_background(index)
    draw_actor_face(actor, rect.x + 1, rect.y + 1, enabled)
    draw_actor_simple_status(actor, rect.x + 108, rect.y + line_height / 2)
  end
  #--------------------------------------------------------------------------
  # * Draw Background for Item
  #--------------------------------------------------------------------------
  def draw_item_background(index)
    if index == @pending_index
      contents.fill_rect(item_rect(index), pending_color)
    end
  end
  #--------------------------------------------------------------------------
  # * Processing When OK Button Is Pressed
  #--------------------------------------------------------------------------
  def process_ok
    super
    $game_party.menu_actor = $game_party.members[index]
  end
  #--------------------------------------------------------------------------
  # * Restore Previous Selection Position
  #--------------------------------------------------------------------------
  def select_last
    select($game_party.menu_actor.index || 0)
  end
  #--------------------------------------------------------------------------
  # * Set Pending Position (for Formation)
  #--------------------------------------------------------------------------
  def pending_index=(index)
    last_pending_index = @pending_index
    @pending_index = index
    redraw_item(@pending_index)
    redraw_item(last_pending_index)
  end
end
 

Edited by lavalord96

Share this post


Link to post
Share on other sites

There should not be any problem with the scripts as it only affects one actor. Unless you have programmed somewhere if actor.id == 1 then do not draw_face. Which would be very weird.

Try copying the actor to a blank spot in the editor (below your other actors - increase maximum) and screen shot of your actor page would be nice (the one with the issue)

Share this post


Link to post
Share on other sites

Well that is a valid workaround, so if it works for you then that's good.

 

I'm still curious what is causing the issue in the 7th slot, but it's harder to work remotely and keep asking for things.

Anyway, it doesn't matter now i suppose.

Share this post


Link to post
Share on other sites

Well I mean, it wasn't just the seventh slot, I actually tried copy and pasting her data in some of the other open slots, but it didn't seem to work at first

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×