More Informative Saves

It appears to be there but in a way I can't rewrite myself:

Captura de pantalla (740).png


Again, I'm no scripter, so I don't know what should I replace or change to shape it so the lower border of the window doesn't touch the screen border. I have tried many ways and some give me errors, and others visibly affect nothing.
Vertically there was no change because you never altered the window's height.

Concerning the x and y coordinates, you defined 2 Constants and allegedly placed them inside the MISav module. Here's a mockup of such a code.

Ruby:
module MISav
  ShiftX = 0
  ShiftY = 0
  Window_Width = 240
end

So the higher the value of both Constants the more the window will be pushed to the left and downwards.
That's the thing: the script is written in a way no matter if ShiftY is 0 or 50, the lower side of the save / load window will always be glued to the lower edge of the screen, never a floating window. You could try the script yourself to see what I'm talking about. So I'm here hoping someone could help me making such fix as I don't know scripting.
This is how the save script would look like after adapting it.

Ruby:
#-------------------------------------------------------------------------------
#- More Informative Saves v1.01
#-- Customizable save slots capable of holding all sorts of data
#-- By mjshi
#-- OK for use in all projects with credit
#-------------------------------------------------------------------------------
# Installation: Put above Main.
# Changelog: Added support for showing equipment icons.
#------------------------------------------------------------------------------- 
module MISav
  #-----------------------------------------------------------------------------
  # **CONFIGURATION**
  #-----------------------------------------------------------------------------
  # Save Menu Configuration
  #
  FileName = "File"
  ShiftX = 48 
  ShiftY = 32
  Window_Width = 544 #Graphics.width #100% width
  Max_Savefiles = 12
  # Number of savefiles to show at once
  Number_Viewable = 4
  #
  # Show save/load messages? (true/false)
  Show_Msg = true
  MsgWindow_ShiftX = ShiftX #makes the msgwindow move with the savefiles
  MsgWindow_ShiftY = ShiftY #makes the msgwindow move with the savefiles
  MsgWindow_Width = Graphics.width #100% width
  #
  SaveMsg = "Save to which file?"
  LoadMsg = "Load which file?"
  #
  #-----------------------------------------------------------------------------
  # Should we show the player's party on the save file?
  #
  Show_Party = true
  #
  # Where should we show the party members?
  PARTY_X = 152
  PARTY_Y = 58
  PARTY_SPACING = 12 #default is 12
  #
  #-----------------------------------------------------------------------------
  # Should we show the player's face images on the save file?
  #
  Show_Faces = false
  FACE_X = 0
  FACE_Y = 0
  FACE_SPACING = 10
  #
  #-----------------------------------------------------------------------------
  # Should we show the party's equipped items?
  #
  Show_Equipment = false
  # If nothing is equipped in the slot, do not show blank space for it
  Equipment_Collapse = false
  #
  EQUIP_X = 0
  EQUIP_Y = 0
  # Spacing between equipment of the same character (e.g. A A A)
  EQUIP_SPACING = 1
  # Spacing between equipment of different characters (e.g. AAA BBB CCC)
  EQUIP_SET_SPACING = 5
  #
  TEXT = [
  #-----------------------------------------------------------------------------
  # Text to show on the save/load screen.
  # Format:
  # ["text", x position or align, line number],
  #-----------------------------------------------------------------------------
  #-"text" is what you want to display
  #-align can be 0 (left), 1 (center), or 2 (right). Anything larger than a 2
  # will be treated as a specific x coordinate.
  #-line number can range from 0 to 2, 0 is the first line, 2 is the last,
  # and decimals are OK.
  #-----------------------------------------------------------------------------
  # Put a # in front of the ones you don't want to show
  # **Don't forget the comma after each []!**
 
  ["Some Text Here", 300, 1.8],
 
  ]
  THINGS = [
  #-----------------------------------------------------------------------------
  # Variables to show on the save/load screen.
  # Format:
  # ["name", "value", x position or align, line number],
  #-----------------------------------------------------------------------------
  #-"name" can be called whatever you want, as long as there are no spaces.
  # I'd recommend naming it something useful so you know what it is, and to
  # put "_s" (for save) at the end so there are no conflicts with other things.
  #-"value" is any bit of game data that you want to show up on the save.
  #-----------------------------------------------------------------------------
  # Put a # in front of the ones you don't want to show
  # **Don't forget the comma after each []!**
 
  ["playtime_s", "$game_system.playtime_s", 2, 0],
  ["location_s", "$game_map.display_name", 2, 1],
  #["gamevariable1", "$game_variables[1]", 2, 2],
 
  ]
  #
  # These are safety locks to make sure that nothing goes offscreen. Comment
  # them out if you'd rather not have them.
  if (Window_Width + ShiftX) > Graphics.width
    Window_Width -= ShiftX
  end
  if (MsgWindow_Width + MsgWindow_ShiftX) > Graphics.width
    MsgWindow_Width -= MsgWindow_ShiftX
  end
  #-----------------------------------------------------------------------------
  # **END OF CONFIGURATION**
  #-----------------------------------------------------------------------------
end
 
#--------------------------------------------------------------------#
# !!! Beware of crashes and errors if you edit beyond this point !!! #
#--------------------------------------------------------------------#
 
module DataManager
 
  def self.make_save_header
    header = {}
    header[:faces] = $game_party.faces_for_savefile
    header[:characters] = $game_party.characters_for_savefile
    header[:equipicons] = $game_party.equippedicons_for_savefile
    
    MISav::THINGS.each do |item|
      header[item[0].to_sym] = eval item[1]
    end
    header
   
  end
 
  def self.savefile_max
    return MISav::Max_Savefiles
  end
 
end
 
module Vocab
  SaveMessage     = MISav::SaveMsg
  LoadMessage     = MISav::LoadMsg
  File            = MISav::FileName
end

class Game_Party
  def faces_for_savefile
    battle_members.collect do |actor|
      [actor.face_name, actor.face_index]
    end
  end
  
  def equippedicons_for_savefile
    battle_members.collect do |actor|
      equipped = []
      actor.equips.each do |item|
        if defined? item.icon_index
          equipped.push(item.icon_index)
        else
          equipped.push(0)
        end
      end
      equipped
    end
  end
  
end

class Window_SaveFile
  include MISav
  def initialize(height, index)
    super(ShiftX, index * height + ShiftY, Window_Width, height)
    @file_index = index
    refresh
    @selected = false
  end
 
  def refresh
    contents.clear
    draw_party_characters(PARTY_X, PARTY_Y, PARTY_SPACING) if Show_Party
    draw_face_characters(FACE_X, FACE_Y, FACE_SPACING) if Show_Faces
    draw_custom_items
    draw_equipped(EQUIP_X, EQUIP_Y, EQUIP_SPACING, EQUIP_SET_SPACING) if Show_Equipment
    change_color(normal_color)
    name = Vocab::File + " #{@file_index + 1}"
    draw_text(4, 0, 200, line_height, name)
    @name_width = text_size(name).width
  end
 
  def draw_party_characters(x, y, spacing)
    header = DataManager.load_header(@file_index)
    return unless header
    header[:characters].each_with_index do |data, i|
      draw_character(data[0], data[1], x + i * (32 + spacing), y)
    end
  end
 
  def draw_face_characters(x, y, spacing)
    header = DataManager.load_header(@file_index)
    return unless header && header[:faces]
    header[:faces].each_with_index do |data, i|
      draw_face(data[0], data[1], x + i * (96 + spacing), y)
    end
  end
  
  def draw_equipped(x, y, space, set_space)
    header = DataManager.load_header(@file_index)
    return unless header && header[:equipicons]
    offset = 24 + space
    space_set = 24 + set_space
    header[:equipicons].each_with_index do |equips, set|
      if Equipment_Collapse
        one = 0
        equips.each do |icon_index|
          next if icon_index == 0
          draw_icon(icon_index, x + set * space_set * 4 + one * offset, y)
          one += 1
        end
      else
        equips.each_with_index do |icon_index, one|
          next if icon_index == 0
          draw_icon(icon_index, x + set * space_set * 4 + one * offset, y)
        end
      end
    end
  end
  
  def draw_custom_items
    header = DataManager.load_header(@file_index)
    return unless header
    lh = line_height
    TEXT.each do |item|
      if item[1] > 2
        draw_text(item[1], lh * item[2], contents.width - 4, lh, item[0])
      else
        draw_text(0, lh * item[2], contents.width - 4, lh, item[0], item[1])
      end
    end
    THINGS.each do |item|
      data = header[item[0].to_sym]
      if item[2] > 2
        draw_text(item[2], lh * item[3], contents.width - 4, lh, data)
      else
        draw_text(0, lh * item[3], contents.width - 4, lh, data, item[2])
      end
    end
  end
end
 
class Scene_File
 
  def start
    super
    create_help_window if MISav::Show_Msg
    create_savefile_viewport
    @savefile_viewport.rect.height -= 32
    create_savefile_windows
    init_selection
  end
 
  def create_help_window
    @help_window = Window_Help.new(1)
    @help_window.set_text(help_window_text)
    @help_window.x = MISav::ShiftX
    @help_window.y = MISav::ShiftY
    @help_window.width = MISav::Window_Width
  end
 
  def visible_max
    MISav::Number_Viewable
  end
 
  def savefile_height
    @savefile_viewport.rect.height/visible_max - MISav::ShiftY/visible_max
  end
 
end
I see! Thank you so much Kyonides. One last question: the color of the text is white like the first square of System colors, yet only the color of the custom variables is black. I haven't touched anything to change it. Do you have the same problem or know a way to fix it?

Captura de pantalla (741).png


Captura de pantalla (742).png
😳? If you're talking about the script I edited, it has NO reference to any color. This means every single text should be printed white by default.
Did you change anything on your own and forgot where did you leave a reference to a black color?
That's the weirdest thing: I changed nothing. Literally copy-pasted the script and moved the face and character sprite to the right in the editable regions (line 16 to 110). And the scripts I have don't change colors neither. I also tried removing the possible ones like Text Cache to no avail. It still black.

Captura de pantalla (743).png


Edit: Solved it. It was a configuration on Ace Core Engine 😅 Thanks for the help man!
Look for any match for Color.new(0, 0, 0) or text_color(15)--if the Window.png color set matches the default file--in any script. That would turn texts black in no time.
How do I remove this arrow? Tried putting self.arrows_visible according to another forum post but it crashes.

Captura de pantalla (793).png
How do I remove this arrow? Tried putting self.arrows_visible according to another forum post but it crashes.

View attachment 300123
By default the script is using the Graphics.width
It may be best to have the help window width a different value.
as a test change line 28 to a different value
Changed line 28 to 544 and other widths, still the same arrow and the window width remains the same.
Changed line 28 to 544 and other widths, still the same arrow and the window width remains the same.
I assume then that your game resolution is 544 pixel wide?
But that's not what I was saying.
If you want the window to be 544 pixels wide then it will be the full width of the game.
You showed an image of it smaller so you need to use a smaller number.
If you get down to a really small number and it still doesn't work then it's a matter of changing it to dispose the contents and refreshing.
We can help with that if necessary.


If you are using the game width for the window then there may be something else going on. In that case show a screen shot of your in game screen, not just a piece of it.

*update Just tested the script. It needs the contents disposed and created to set the window size.
After line 264 I changed the help window width to a fixed number and added this.
Ruby:
    @help_window.width = 300 #MISav::MsgWindow_Width
    @help_window.contents.dispose
    @help_window.create_contents
    @help_window.refresh
I assume then that your game resolution is 544 pixel wide?
The width of my game is 640. Trying to make every window scene width 544 is my goal ☺️

*update Just tested the script. It needs the contents disposed and created to set the window size.
After line 264 I changed the help window width to a fixed number and added this.
Ruby:
@help_window.width = 300 #MISav::MsgWindow_Width
@help_window.contents.dispose
@help_window.create_contents
@help_window.refresh
Just tested it. Works like a charm! Thanks man.

Original thread: https://forums.rpgmakerweb.com/threads/more-informative-saves.52246/