[VX] Advanced Files

Advanced Files
by Dargor
Version 1.3


Introduction

This script let you customize some aspects of save files. You can have as much save files as you want, change the filename, extension and directory of the files and have a confirmation window before loading or overwriting a file. This script also modifies the File scene and adds a detail window that displays party members stats, gold, map name and a preview of the location.

Screenshots
Image

Script

  1. #==============================================================================
  2. # ** Advanced Files
  3. #------------------------------------------------------------------------------
  4. #   © Dargor, 2008-2009
  5. #  25/03/09
  6. #  Version 1.3
  7. #  Part of the credits goes to Yeyinde for the Bitmap dump/load methods
  8. #------------------------------------------------------------------------------
  9. #  VERSION HISTORY:
  10. #   - 1.0 (27/06/08), Initial release
  11. #   - 1.1 (05/07/08), Added support for Location Name Picture instead of text
  12. #   - 1.2 (17/02/09), Fixed a bug with wrong actors stats being displayed
  13. #   - 1.3 (25/03/09), Fixed a bug with map preview not being loaded correctly
  14. #------------------------------------------------------------------------------
  15. #  INTRODUCTION:
  16. #     This script let you customize some aspects of save files.
  17. #     You can have as much save files as you want, change the filename,
  18. #     extension and directory of the files and have a confirmation window
  19. #     before loading or overwriting a file.
  20. #------------------------------------------------------------------------------
  21. #  INSTRUCTIONS:
  22. #   - Paste this script above main
  23. #   - Edit the constants in Advanced_Files module
  24. #==============================================================================
  25.  
  26. # Vocabulary
  27. Vocab::SaveMessage = "Save to which file?"
  28. Vocab::LoadMessage = "Load which file?"
  29. Vocab::File = 'File'
  30. Vocab::NoFile = 'Empty'
  31. Vocab::FileConfirm = 'Are you sure you want to %s this file?'
  32.  
  33. #==============================================================================
  34. # ** Advanced Files Configuration Module
  35. #==============================================================================
  36.  
  37. module Advanced_Files
  38.   # Maximum number of files
  39.   Max_Files = 10
  40.   # Filename
  41.   Name = 'Save'
  42.   # File extension
  43.   Extension = 'rvdata'
  44.   # File directory (Automatically creates the directory)
  45.   Directory = 'Save'
  46.   # Use file confirmation
  47.   Confirmation = true
  48.   # Smooth Scroll
  49.   Smooth_Scroll = true
  50.   # Scroll Speed (The higher the faster)
  51.   Scroll_Speed = 30
  52.   # Use a picture for location name instead of text
  53.   Location_Name_Picture = false
  54. end
  55.  
  56. #==============================================================================
  57. # ** Font
  58. #==============================================================================
  59.  
  60. class Font
  61.   def marshal_dump;end
  62.   def marshal_load(obj);end
  63. end
  64.  
  65. #==============================================================================
  66. # ** Bitmap
  67. #==============================================================================
  68.  
  69. class Bitmap
  70.   # Win32API
  71.   RtlMoveMemory_pi = Win32API.new('kernel32', 'RtlMoveMemory', 'pii', 'i')
  72.   RtlMoveMemory_ip = Win32API.new('kernel32', 'RtlMoveMemory', 'ipi', 'i')
  73.   #--------------------------------------------------------------------------
  74.   # * Dump
  75.   #--------------------------------------------------------------------------
  76.   def _dump(limit)
  77.     data = "rgba" * width * height
  78.     RtlMoveMemory_pi.call(data, address, data.length)
  79.     [width, height, Zlib::Deflate.deflate(data)].pack("LLa*")
  80.   end
  81.   #--------------------------------------------------------------------------
  82.   # * Load
  83.   #--------------------------------------------------------------------------
  84.   def self._load(str)
  85.     w, h, zdata = str.unpack("LLa*"); b = new(w, h)
  86.     RtlMoveMemory_ip.call(b.address, Zlib::Inflate.inflate(zdata), w * h * 4); b
  87.   end
  88.   #--------------------------------------------------------------------------
  89.   # * Address
  90.   #--------------------------------------------------------------------------
  91.   def address
  92.     buffer, ad = "xxxx", object_id * 2 + 16
  93.     RtlMoveMemory_pi.call(buffer, ad, 4); ad = buffer.unpack("L")[0] + 8
  94.     RtlMoveMemory_pi.call(buffer, ad, 4); ad = buffer.unpack("L")[0] + 16
  95.     RtlMoveMemory_pi.call(buffer, ad, 4); return buffer.unpack("L")[0]
  96.   end
  97. end
  98.  
  99. #==============================================================================
  100. # ** Game_System
  101. #------------------------------------------------------------------------------
  102. #  This class handles system-related data. Also manages vehicles and BGM, etc.
  103. # The instance of this class is referenced by $game_system.
  104. #==============================================================================
  105.  
  106. class Game_System
  107.   #--------------------------------------------------------------------------
  108.   # * Public Instance Variables
  109.   #--------------------------------------------------------------------------
  110.   attr_accessor :background_bitmap
  111.   attr_accessor :map_name
  112.   #--------------------------------------------------------------------------
  113.   # * Alias Listing
  114.   #--------------------------------------------------------------------------
  115.   alias dargor_advanced_files_system_initialize initialize
  116.   #--------------------------------------------------------------------------
  117.   # * Object Initialization
  118.   #--------------------------------------------------------------------------
  119.   def initialize
  120.     dargor_advanced_files_system_initialize
  121.     @background_bitmap = nil
  122.     @map_name = ''
  123.   end
  124. end
  125.  
  126. #==============================================================================
  127. # ** Game_Map
  128. #------------------------------------------------------------------------------
  129. #  This class handles maps. It includes scrolling and passage determination
  130. # functions. The instance of this class is referenced by $game_map.
  131. #==============================================================================
  132.  
  133. class Game_Map
  134.   #--------------------------------------------------------------------------
  135.   # * Get Map ID
  136.   #--------------------------------------------------------------------------
  137.   def name
  138.     map_infos = load_data("Data/MapInfos.rvdata")
  139.     name = map_infos[@map_id].name
  140.     return name
  141.   end
  142. end
  143.  
  144. #==============================================================================
  145. # ** Window_FileBase
  146. #------------------------------------------------------------------------------
  147. #  This is a superclass of all file windows in the game.
  148. #==============================================================================
  149.  
  150. class Window_FileBase < Window_Base
  151.   #--------------------------------------------------------------------------
  152.   # * Load Game Data
  153.   #--------------------------------------------------------------------------
  154.   def load_gamedata(filename)
  155.     @filename = filename
  156.     @time_stamp = Time.at(0)
  157.     @file_exist = FileTest.exist?(@filename)
  158.     if @file_exist
  159.       file = File.open(@filename, "rb")
  160.       @time_stamp = file.mtime
  161.       begin
  162.         @characters     = Marshal.load(file)
  163.         @frame_count    = Marshal.load(file)
  164.         @last_bgm       = Marshal.load(file)
  165.         @last_bgs       = Marshal.load(file)
  166.         @game_system    = Marshal.load(file)
  167.         @game_message   = Marshal.load(file)
  168.         @game_switches  = Marshal.load(file)
  169.         @game_variables = Marshal.load(file)
  170.         @game_self_switches  = Marshal.load(file)
  171.         @game_actors         = Marshal.load(file)
  172.         @game_party          = Marshal.load(file)
  173.         @game_troop          = Marshal.load(file)
  174.         @game_map            = Marshal.load(file)
  175.         @game_player         = Marshal.load(file)
  176.         @actors = Marshal.load(file)
  177.         @total_sec = @frame_count / Graphics.frame_rate
  178.       rescue
  179.         @file_exist = false
  180.       ensure
  181.         file.close
  182.       end
  183.     end
  184.     refresh
  185.   end
  186. end
  187.  
  188. #==============================================================================
  189. # ** Window_MapPreview
  190. #------------------------------------------------------------------------------
  191. #  This window displays a map preview in the File screen.
  192. #==============================================================================
  193.  
  194. class Window_MapPreview < Window_FileBase
  195.   #--------------------------------------------------------------------------
  196.   # * Object Initialization
  197.   #--------------------------------------------------------------------------
  198.   def initialize
  199.     super(272, 212,264,196)
  200.     self.visible = false
  201.   end
  202.   #--------------------------------------------------------------------------
  203.   # * Refresh
  204.   #--------------------------------------------------------------------------
  205.   def refresh
  206.     self.contents.clear
  207.     return unless @file_exist
  208.     name = @game_system.map_name
  209.     if Advanced_Files::Location_Name_Picture
  210.       bitmap = Cache.picture(name)
  211.       self.contents.blt(4,4,bitmap,bitmap.rect)
  212.     else
  213.       self.contents.draw_text(4,4,272,WLH,name)
  214.     end
  215.     bitmap = @game_system.background_bitmap
  216.     bitmap = Bitmap.new(32,32) if bitmap.nil?
  217.     self.contents.blt(4,32,bitmap,Rect.new(160,128,224,128))
  218.   end
  219. end
  220.  
  221. #==============================================================================
  222. # ** Window_FileDetail
  223. #------------------------------------------------------------------------------
  224. #  This window displays file details in the File screen.
  225. #==============================================================================
  226.  
  227. class Window_FileDetail < Window_FileBase
  228.   #--------------------------------------------------------------------------
  229.   # * Object Initialization
  230.   #--------------------------------------------------------------------------
  231.   def initialize
  232.     super(0,202,544,214)
  233.     self.visible = false
  234.   end
  235.   #--------------------------------------------------------------------------
  236.   # * Refresh
  237.   #--------------------------------------------------------------------------
  238.   def refresh
  239.     self.contents.clear
  240.     return unless @file_exist
  241.     if @game_system.instance_variables.include?('@difficulty_id')
  242.       y = 24
  243.       self.contents.font.color = system_color
  244.       self.contents.draw_text(4,0, 240, WLH, 'Difficulty:')
  245.       self.contents.font.color = normal_color
  246.       difficulty = Difficulty::Names[@game_system.difficulty_id]
  247.       self.contents.draw_text(96,0, 240, WLH, difficulty)
  248.     else
  249.       y = 0
  250.     end
  251.     for actor in @actors
  252.       i = @actors.index(actor)
  253.       draw_actor_name(actor,4,y + i * WLH)
  254.       draw_actor_hp(actor,96,y + i * WLH)
  255.     end
  256.   end
  257. end
  258.  
  259. #==============================================================================
  260. # ** Window_FileGold
  261. #------------------------------------------------------------------------------
  262. #  This window displays the amount of gold in the File screen.
  263. #==============================================================================
  264.  
  265. class Window_FileGold < Window_FileBase
  266.   #--------------------------------------------------------------------------
  267.   # * Object Initialization
  268.   #--------------------------------------------------------------------------
  269.   def initialize
  270.     super(108, 352, 160, WLH + 32)
  271.     self.visible = false
  272.   end
  273.   #--------------------------------------------------------------------------
  274.   # * Refresh
  275.   #--------------------------------------------------------------------------
  276.   def refresh
  277.     self.contents.clear
  278.     draw_currency_value(@game_party.gold, 4, 0, 120)
  279.   end
  280. end
  281.  
  282. #==============================================================================
  283. # ** Window_SaveFile
  284. #------------------------------------------------------------------------------
  285. #  This window displays save files on the save and load screens.
  286. #==============================================================================
  287.  
  288. class Window_SaveFile < Window_Base
  289.   MAX_FILES = Advanced_Files::Max_Files
  290.   #--------------------------------------------------------------------------
  291.   # * Public Instance Variables
  292.   #--------------------------------------------------------------------------
  293.   attr_reader :file_index
  294.   #--------------------------------------------------------------------------
  295.   # * Alias Listing
  296.   #--------------------------------------------------------------------------
  297.   alias dargor_vx_advanced_files_window_refresh refresh
  298.   #--------------------------------------------------------------------------
  299.   # * Object Initialization
  300.   #     file_index : save file index (0-3)
  301.   #     filename   : filename
  302.   #--------------------------------------------------------------------------
  303.   def initialize(file_index, filename)
  304.     super(0, file_index % MAX_FILES * 90, 544, 90)
  305.     @file_index = file_index
  306.     @filename = filename
  307.     load_gamedata
  308.     refresh
  309.     @selected = false
  310.   end
  311.   #--------------------------------------------------------------------------
  312.   # * Refresh
  313.   #--------------------------------------------------------------------------
  314.   def refresh
  315.     dargor_vx_advanced_files_window_refresh
  316.     unless @file_exist
  317.       y = (self.height / 2)-(WLH / 2)
  318.       self.contents.draw_text(0,y,508,WLH,Vocab::NoFile,2)
  319.     end
  320.   end
  321. end
  322.  
  323. #==============================================================================
  324. # ** Scene_Title
  325. #------------------------------------------------------------------------------
  326. #  This class performs the title screen processing.
  327. #==============================================================================
  328.  
  329. class Scene_Title < Scene_Base
  330.   #--------------------------------------------------------------------------
  331.   # * Determine if Continue is Enabled
  332.   #--------------------------------------------------------------------------
  333.   def check_continue
  334.     name = Advanced_Files::Name
  335.     extension = Advanced_Files::Extension
  336.     directory = Advanced_Files::Directory
  337.     unless FileTest.directory?(directory)
  338.       Dir.mkdir(directory)
  339.     end
  340.     @continue_enabled = (Dir.glob("#{directory}/#{name}*.#{extension}").size > 0)
  341.   end
  342. end
  343.  
  344. #==============================================================================
  345. # ** Scene_File
  346. #------------------------------------------------------------------------------
  347. #  This class performs the save and load screen processing.
  348. #==============================================================================
  349.  
  350. class Scene_File < Scene_Base
  351.   MAX_FILES = Advanced_Files::Max_Files
  352.   #--------------------------------------------------------------------------
  353.   # * Alias Listing
  354.   #--------------------------------------------------------------------------
  355.   alias dargor_vx_advanced_files_scene_file_start start
  356.   alias dargor_vx_advanced_files_scene_file_terminate terminate
  357.   alias dargor_vx_advanced_files_scene_file_update update
  358.   alias dargor_vx_advanced_files_scene_file_update_savefile_windows update_savefile_windows
  359.   alias dargor_vx_advanced_files_scene_file_write_save_data write_save_data
  360.   alias dargor_vx_advanced_files_scene_file_read_save_data read_save_data
  361.   #--------------------------------------------------------------------------
  362.   # * Create Save File Window
  363.   #--------------------------------------------------------------------------
  364.   def create_savefile_windows
  365.     @savefile_windows = []
  366.     @file_viewport = Viewport.new(0,56,544,416)
  367.     @file_viewport.z = 500
  368.     @old_top_row = 0
  369.     @speed = 0
  370.     for i in 0...MAX_FILES
  371.       @savefile_windows.push(Window_SaveFile.new(i, make_filename(i)))
  372.       @savefile_windows[i].viewport = @file_viewport
  373.     end
  374.     @item_max = MAX_FILES
  375.   end
  376.   #--------------------------------------------------------------------------
  377.   # * Start Processing
  378.   #--------------------------------------------------------------------------
  379.   def start
  380.     dargor_vx_advanced_files_scene_file_start
  381.     create_command_window
  382.     @detail_window = Window_FileDetail.new
  383.     @map_window = Window_MapPreview.new
  384.     @gold_window = Window_FileGold.new
  385.   end
  386.   #--------------------------------------------------------------------------
  387.   # * Terminate Processing
  388.   #--------------------------------------------------------------------------
  389.   def terminate
  390.     dargor_vx_advanced_files_scene_file_terminate
  391.     @command_window.dispose
  392.     @detail_window.dispose
  393.     @map_window.dispose
  394.     @gold_window.dispose
  395.   end
  396.   #--------------------------------------------------------------------------
  397.   # * Create Command Window
  398.   #--------------------------------------------------------------------------
  399.   def create_command_window
  400.     @command_window = Window_Command.new(544,['Yes','No'],2)
  401.     @command_window.active = false
  402.     @command_window.visible = false
  403.     @command_window.y = 56
  404.     @command_window.z = 501
  405.   end
  406.   #--------------------------------------------------------------------------
  407.   # * Frame Update
  408.   #--------------------------------------------------------------------------
  409.   def update
  410.     @command_window.update
  411.     @detail_window.update
  412.     @map_window.update
  413.     @gold_window.update
  414.     @detail_window.visible = @command_window.visible
  415.     @map_window.visible = @command_window.visible
  416.     @gold_window.visible = @command_window.visible
  417.     if @command_window.active
  418.       update_command_window
  419.       return
  420.     end
  421.     dargor_vx_advanced_files_scene_file_update
  422.   end
  423.   #--------------------------------------------------------------------------
  424.   # * Frame Update (Command Window)
  425.   #--------------------------------------------------------------------------
  426.   def update_command_window
  427.     unless $game_map.nil?
  428.       @spriteset.update unless @spriteset.nil?
  429.     end
  430.     if Input.trigger?(Input::B)
  431.       Sound.play_cancel
  432.       close_confirmation_window
  433.     end
  434.     if Input.trigger?(Input::C)
  435.       case @command_window.index
  436.       when 0
  437.         if @saving
  438.           Sound.play_save
  439.           do_save
  440.         else
  441.           Sound.play_load
  442.           do_load
  443.         end
  444.       when 1
  445.         Sound.play_cancel
  446.         close_confirmation_window
  447.       end
  448.     end
  449.   end
  450.   #--------------------------------------------------------------------------
  451.   # * Open Confirmation Window
  452.   #--------------------------------------------------------------------------
  453.   def open_confirmation_window
  454.     window_to_top
  455.     for window in @savefile_windows
  456.       window.visible = false unless window.file_index == @index
  457.     end
  458.     mode = @saving ? 'overwrite' : 'load'
  459.     text = sprintf(Vocab::FileConfirm, mode)
  460.     @help_window.set_text(text)
  461.     @detail_window.load_gamedata(@savefile_windows[@index].filename)
  462.     @map_window.load_gamedata(@savefile_windows[@index].filename)
  463.     @gold_window.load_gamedata(@savefile_windows[@index].filename)
  464.     @command_window.visible = true
  465.     @command_window.active = true
  466.   end
  467.   #--------------------------------------------------------------------------
  468.   # * Close Confirmation Window
  469.   #--------------------------------------------------------------------------
  470.   def close_confirmation_window
  471.     self.top_row = @old_top_row
  472.     for window in @savefile_windows
  473.       window.visible = true
  474.     end
  475.     if @saving
  476.       text = Vocab::SaveMessage
  477.     else
  478.       text = Vocab::LoadMessage
  479.     end
  480.     @help_window.set_text(text)
  481.     @command_window.visible = false
  482.     @command_window.active = false
  483.   end
  484.   #--------------------------------------------------------------------------
  485.   # * Get Top Row
  486.   #--------------------------------------------------------------------------
  487.   def top_row
  488.     return @file_viewport.oy / 90
  489.   end
  490.   #--------------------------------------------------------------------------
  491.   # * Get Top Row
  492.   #--------------------------------------------------------------------------
  493.   def top_row=(index)
  494.     @file_viewport.oy = index * 90
  495.   end
  496.   #--------------------------------------------------------------------------
  497.   # * Get Bottom Row
  498.   #--------------------------------------------------------------------------
  499.   def bottom_row
  500.     return top_row + 3
  501.   end
  502.   #--------------------------------------------------------------------------
  503.   # * Get Top Row
  504.   #--------------------------------------------------------------------------
  505.   def window_to_top
  506.     @file_viewport.oy = @index * 90
  507.     @file_viewport.oy -= 56
  508.   end
  509.   #--------------------------------------------------------------------------
  510.   # * Confirm Save File
  511.   #--------------------------------------------------------------------------
  512.   def determine_savefile
  513.     if @saving
  514.       if @savefile_windows[@index].file_exist
  515.         if Advanced_Files::Confirmation
  516.           Sound.play_decision
  517.           open_confirmation_window
  518.         else
  519.           Sound.play_save
  520.           do_save
  521.         end
  522.       else
  523.         Sound.play_save
  524.         do_save
  525.       end
  526.     else
  527.       if @savefile_windows[@index].file_exist
  528.         if Advanced_Files::Confirmation
  529.           Sound.play_decision
  530.           open_confirmation_window
  531.         else
  532.           Sound.play_load
  533.           do_load
  534.         end
  535.       else
  536.         Sound.play_buzzer
  537.         return
  538.       end
  539.     end
  540.     $game_temp.last_file_index = @index
  541.   end
  542.   #--------------------------------------------------------------------------
  543.   # * Update Save File Window
  544.   #--------------------------------------------------------------------------
  545.   def update_savefile_windows
  546.     dargor_vx_advanced_files_scene_file_update_savefile_windows
  547.     # Update file viewport
  548.     if @index < top_row
  549.       if Advanced_Files::Smooth_Scroll
  550.         loop do
  551.           Graphics.update
  552.           Input.update
  553.           if Graphics.frame_count % 30 == 0
  554.             @speed = [[@speed + 1, 6].min, 0].max
  555.           end
  556.           dist = 5 * (Advanced_Files::Scroll_Speed + @speed)
  557.           @file_viewport.oy = [[@file_viewport.oy - dist, MAX_FILES * 90].min, @index * 90].max
  558.           break if @file_viewport.oy == @index * 90
  559.         end
  560.       else
  561.         @file_viewport.oy = @index * 90
  562.       end
  563.     elsif @index > bottom_row
  564.       if Advanced_Files::Smooth_Scroll
  565.         loop do
  566.           Graphics.update
  567.           Input.update
  568.           if Graphics.frame_count % 30 == 0
  569.             @speed = [[@speed + 1, 6].min, 0].max
  570.           end
  571.           dist = 5 * (Advanced_Files::Scroll_Speed + @speed)
  572.           @file_viewport.oy = [[@file_viewport.oy + dist, 0].max, (@index - 3) * 90].min
  573.           break if @file_viewport.oy  == (@index - 3) * 90
  574.         end
  575.       else
  576.         @file_viewport.oy  = (@index - 3) * 90
  577.       end
  578.     else
  579.       @speed = [[@speed - 1, 0].max, 6].min
  580.     end
  581.   end
  582.   #--------------------------------------------------------------------------
  583.   # * Create Filename
  584.   #     file_index : save file index (0-3)
  585.   #--------------------------------------------------------------------------
  586.   def make_filename(file_index)
  587.     name = Advanced_Files::Name
  588.     extension = Advanced_Files::Extension
  589.     directory = Advanced_Files::Directory
  590.     unless FileTest.directory?(directory)
  591.       Dir.mkdir(directory)
  592.     end
  593.     return "#{directory}/#{name}#{file_index + 1}.#{extension}"
  594.   end
  595.   #--------------------------------------------------------------------------
  596.   # * Write Save Data
  597.   #     file : write file object (opened)
  598.   #--------------------------------------------------------------------------
  599.   def write_save_data(file)
  600.     dargor_vx_advanced_files_scene_file_write_save_data(file)
  601.     actors = []
  602.     for actor in $game_party.members
  603.       actors.push(actor)
  604.     end
  605.     Marshal.dump(actors, file)
  606.   end
  607.   #--------------------------------------------------------------------------
  608.   # * Read Save Data
  609.   #     file : read file object (opened)
  610.   #--------------------------------------------------------------------------
  611.   def read_save_data(file)
  612.     dargor_vx_advanced_files_scene_file_read_save_data(file)
  613.     @actors = Marshal.load(file)
  614.   end
  615. end
  616.  
  617. #==============================================================================
  618. # ** Scene_Map
  619. #------------------------------------------------------------------------------
  620. #  This class performs the map screen processing.
  621. #==============================================================================
  622.  
  623. class Scene_Map
  624.   #--------------------------------------------------------------------------
  625.   # * Alias Listing
  626.   #--------------------------------------------------------------------------
  627.   alias dargor_vx_advanced_files_map_call_menu call_menu
  628.   alias dargor_vx_advanced_files_map_call_save call_save
  629.   #--------------------------------------------------------------------------
  630.   # * Switch to Menu Screen
  631.   #--------------------------------------------------------------------------
  632.   def call_menu
  633.     $game_system.background_bitmap = Graphics.snap_to_bitmap
  634.     $game_system.map_name = $game_map.name
  635.     dargor_vx_advanced_files_map_call_menu
  636.   end
  637.   #--------------------------------------------------------------------------
  638.   # * Switch to Menu Screen
  639.   #--------------------------------------------------------------------------
  640.   def call_save
  641.     $game_system.background_bitmap = Graphics.snap_to_bitmap
  642.     $game_system.map_name = $game_map.name
  643.     dargor_vx_advanced_files_map_call_save
  644.   end
  645. end
  646.  
Expand to see the code.
[/spoiler]

Credits and Thanks

Part of the credits goes to Yeyinde for the Bitmap dump/load methods

Hope you like it!
-Dargor
Wow... just wow.
EDIT: I get an error when I scroll past the 4th save file space thingy. (I have a small vocabulary :down: )
Oops, I forgot a little piece of code that belongs to another script.
It should work now.
Hmm, well, if you manage to get it working, this could be really nifty! I especially like how it shows your location. Just a question, though, do you have to add pictures yourself of the location, or does the script do that for you?
it works now and the script does everything for you. It takes the screenshot and creates the save directory, ect.
Say goodbye to the Save Confirmation script. You're putting Woratana out of business, Dargor. XD
I'm sorry, but this script doesn't seem to work at all for me. I don't get any errors, but the save load screens are the same as the ones previously before I installed the script.....

EDIT: I just noticed I have 80 save slots now, but the save/load screen like in the screenshot still doesn't show for me.
dootthaloop wrote:
I'm sorry, but this script doesn't seem to work at all for me. I don't get any errors, but the save load screens are the same as the ones previously before I installed the script.....

It works fine for me...?
King Red Of Pancakes wrote:
dootthaloop wrote:
I'm sorry, but this script doesn't seem to work at all for me. I don't get any errors, but the save load screens are the same as the ones previously before I installed the script.....

It works fine for me...?


Oh I'm sorry, I see what I did, I turned off the confirmation -__-; I thought it was some minor option I didn't need... when I actually wanted it XD Now I feel stupid....
This doesn't seem to work with Anaryu's Anti-Lag script.

What i did: I loaded the game, then I pressed F12 to go back to the title screen again.  I then went to new game again, and it game me an error.
"Script 'AS:Anit-Lag' line 83:System StackError occurred.
stack level too deep"

=P
Dargor, could you add a option to show the battle difficulty from your Difficulties script?
This is a cool alright detailed loading screen, which isn't cluttered. I give you 3.5/5, because the only thing I could see you adding that won't over detail it would be a small loading bar, when it is preparing the information (just in case of slow computers), and for when loading the actually game up, showing the status conditions on the player, showing the SP, and EXP, and above the play time ammount display having the date of the time saved (I would add more space if possible if adding that, just don't overload it like I did in this post I would recommend most of them though). Also cool screenshot feature, could you please convert that part of the code into RGSS for me, I would like to see how you did that? Very nice job making this script Dargor, looks great.
@val helblaze
Sure, I can do that.

@diablosbud 
Quote:
I give you 3.5/5, because the only thing I could see you adding that won't over detail it would be a small loading bar, when it is preparing the information (just in case of slow computers)

A loading bar would be totally useless. There is not enough things to load. Even on a slow computer, the bar would not update while the graphics are showing up simply because during the slowdown, the graphics don't (and can't) update.

Quote:
and for when loading the actually game up, showing the status conditions on the player, showing the SP, and EXP

I'm not sure what you mean here.

Quote:
and above the play time amount display having the date of the time saved

Adding the date is a good idea. I'll do that.

Quote:
Also cool screenshot feature, could you please convert that part of the code into RGSS for me

You mean convert it for XP'S RGSS1? It's not possible. Well, it is, but it requires an external dll. The 'screenshot feature' I'm using is a default feature of the Graphics module in RGSS2, I did nothing new there.
Hey, for the place names, would it be possible to use .png file instead of just showing text?
I have updated the script and I have added this feature.
You have to set Location_Name_Picture to true; the pictures must be placed in the Pictures directory and must have the same name as the map.
Dargor wrote:
I have updated the script and I have added this feature.
You have to set Location_Name_Picture to true; the pictures must be placed in the Pictures directory and must have the same name as the map.


Sweet. Will I have to resize the images myself or will it automatically resize to fit the space?
A bug! A bug! Squish it!

Even though one hero has 998 (lol testing max) HP and one is knocked out, they all have full health according to the load screen.
The same error is in the save screen but different, HP is based on current file in-game rather than the file being previewed.
I get an error... can't find Graphics/Pictures/interiors.

EDIT: I just read the item about how I need to have my own photos in the directory with the map name. Is that correct?
That's if you want the map name to be a picture. The picture for the map name must have the same name as the map name.
What do I need to change to make the game take those auto screen shots for your save feature?
Nothing, it will do it aotumatically.
I figured out what the error was, having it on a flash disk / USB drive thing. I moved it onto the PC and now it works.
I know, I know, necropost, but I found a bug.

If I level up in game, say to level 3, and at level 3 my character HP is 662.

When I load that same file, however, it displays the characters HP as 500, which is the max for level 1. No matter how much HP you have when you save, it displays as the HP you have at level 1.
Don't worry about necropost in my topics. I still support all my VX scripts.

That bug is weird, at first it looks like the code is fine. When you level up and you save your game, it displays the HP correctly. But when you take a look at other save files, they display the HP you currently have. Then, when you go back to the title screen and hit Continue, they all display the HP of a level 1 actor.

This is really weird and I don't understand why it's doing that.
One thing's sure, I'll find out what's wrong and update the script ASAP. I will also add an auto-save feature in the next version.

Take care!
-Dargor
Good news, version 1.2 is out and I have fixed the actors stats bug!

Take care
-Dargor
Thanks very much for all your help!
that was unbelievably easy to use. thats awesome. i guess its because it doen't se any graphics
Ahhh glad you caught this one. Personally I just ignored it for the time being but I'm glad that it's fixed now. :cheers: Cheers Dargor.

(#1 Producer of script I use in my games that aren't mine. Woot! Keep up the good work man!)
when i try to load or save a game it says that gold is undefined.
please help!!!
If you're trying to load a game that has already been saved before you add this script, then it's normal. I recommend deleting all your savefiles before adding this script to your project.

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=50288