[RESOLVED] Unable to Save in RMXP

Started by ExaltedLegions, February 26, 2012, 06:29:48 pm

Previous topic - Next topic

ExaltedLegions

February 26, 2012, 06:29:48 pm Last Edit: February 26, 2012, 07:56:22 pm by ExaltedLegions
I am using the legal version of RPG Maker XP and have run into an issue where when I go to save a test project I'm working on this appears:



Line 65 is:  

on_decision(make_filename(@file_index))


Here is the full code:

#==============================================================================
# * Scene_File
#------------------------------------------------------------------------------
#  It is superclass of the saving picture and the load picture.
#==============================================================================

class Scene_File
 #--------------------------------------------------------------------------
 # - Object initialization
 #     help_text : The character string which is indicated in the help window
 #--------------------------------------------------------------------------
 def initialize(help_text)
   @help_text = help_text
 end
 #--------------------------------------------------------------------------
 # - Main processing
 #--------------------------------------------------------------------------
 def main
   # Drawing up the help window
   @help_window = Window_Help.new
   @help_window.set_text(@help_text)
   # Drawing up the saving file window
   @savefile_windows = []
   for i in 0..3
     @savefile_windows.push(Window_SaveFile.new(i, make_filename(i)))
   end
   # Selecting the file which was operated lastly
   @file_index = $game_temp.last_file_index
   @savefile_windows[@file_index].selected = true
   # Transition execution
   Graphics.transition
   # Main loop
   loop do
     # Renewing the game picture
     Graphics.update
     # Updating the information of input
     Input.update
     # Frame renewal
     update
     # When the picture changes, discontinuing the loop
     if $scene != self
       break
     end
   end
   # Transition preparation
   Graphics.freeze
   # Releasing the window
   @help_window.dispose
   for i in @savefile_windows
     i.dispose
   end
 end
 #--------------------------------------------------------------------------
 # - Frame renewal
 #--------------------------------------------------------------------------
 def update
   # Renewing the window
   @help_window.update
   for i in @savefile_windows
     i.update
   end
   # When C button is pushed
   if Input.trigger?(Input::C)
     # Method on_decision (definition ahead succeeding) it calls
     on_decision(make_filename(@file_index))
     $game_temp.last_file_index = @file_index
     return
   end
   # The B when button is pushed
   if Input.trigger?(Input::B)
     # od on_cancel (definition ahead succeeding) it calls
     on_cancel
     return
   end
   # When the bottom of the direction button is pushed
   if Input.repeat?(Input::DOWN)
     # Depression state under the direction button is not repeat when
     # Or when cursor position it is before from 3
     if Input.trigger?(Input::DOWN) or @file_index < 3
       # Performing cursor SE
       $game_system.se_play($data_system.cursor_se)
       # Moving cursor under
       @savefile_windows[@file_index].selected = false
       @file_index = (@file_index + 1) % 4
       @savefile_windows[@file_index].selected = true
       return
     end
   end
   # When the top of the direction button is pushed
   if Input.repeat?(Input::UP)
     # Depression state on the direction button is not repeat when
     # Or when cursor position it is rear from 0
     if Input.trigger?(Input::UP) or @file_index > 0
       # Performing cursor SE
       $game_system.se_play($data_system.cursor_se)
       # Moving cursor on
       @savefile_windows[@file_index].selected = false
       @file_index = (@file_index + 3) % 4
       @savefile_windows[@file_index].selected = true
       return
     end
   end
 end
 #--------------------------------------------------------------------------
 # - Compilation of file name
 #     file_index : Index of saving file (0 - 3)
 #--------------------------------------------------------------------------
 def make_filename(file_index)
   return "Save#{file_index + 1}.rxdata"
 end
end
 def make_weaponfile(file_index)
   return "Weapons#{file_index + 1}.rxdata"
 end
 def make_classfile(file_index)
   return "Classes#{file_index + 1}.rxdata"
 end


This happens whether I access it through the menu or do a call through an event. It will load the screen where I choose a location to save it but then once selected the above error occurs. I am not using a custom save script but for the sake of trying to be thorough here are the scripts I am using:

Spoiler: ShowHide

SephirothSpawn's Method & Class Library [vrs. unknown]
SephirothSpawn's Scene_Base [vrs. 2.01]
Tons of Addons [vrs. 7.50b]
ST CMS : Metal-Plate Edition [vrs. 5.39b]
Ring Menu [vrs. unknown]
Leon's Good/Evil Bar [vrs. unknown]
Dubealex's Advanced Message [vrs. R4, V2]
Credits System [scrolls credits]
Gameover System [adds option to load game, return to menu, quit game]
Title Screen System using Moghunter's Scene Title Sora Edition & AZZY9's Golden Sun Intro fused into one
game_guy's Achievement System
SephirothSpawn's Party Changer
Rubymatt's Prize Point System [vrs. 3.0]
SephirothSpawn's Storage Chest [vrs. 1.0]
SephirothSpawn's Circle of Light [vrs. 1.0]
arevulopapo's Hear Steps [vrs. 1.1]
LiTTleDRAgo's Event Names [vrs. 4.20]
Nathmatt's Event AI Discovery [vrs. 1.15]
MAWS [vrs. 1.2]
Dynamic Effects Engine [vrs. 1.61]
Dynamic Sounds [vrs. 2.04]
Dynamic Weather Effects [vrs. 1.0]
ABSEAL Anti-Lag [vrs. 3.0]
Blizzards Enhanced Interpreter [fixes $game_system.anything = false]


It is important to note that I made a copy of this project, removed every custom script and still encountered an error with saving. To make sure it was the project I created a new blank project with an event to call saving. Then I started it up and it saved right away.

I'm not sure what could be causing this problem within my project. I did have the pain in the a** SDK 1.5 script running at one time but removed it and every other SDK-required script because of my burning hate for it.

Any and all help is greatly appreciated.


ForeverZer0

Have you tried erasing the old save game before overwriting it? 

Add/removing scripts usually results in save files not working.
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

ExaltedLegions

As strange as it is I have never saved this project before so there are no save files to overwrite.

KK20

Have you tried Shift + CTRL + F to find 'def on_decision' and 'def make_filename' ?

Also curious as to why this
  def make_weaponfile(file_index)
    return "Weapons#{file_index + 1}.rxdata"
  end
  def make_classfile(file_index)
    return "Classes#{file_index + 1}.rxdata"
  end
exists and why it is located outside of the class 'Scene_File'.

Other Projects
RPG Maker XP Ace  Upgrade RMXP to RMVXA performance!
XPA Tilemap  Tilemap rewrite with many features, including custom resolution!

Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!

ExaltedLegions

Erased that code and found an instance of it in Scene_Save so I erased that too. I'm thinking it had to be part of a script I no longer have included. I just restarted this project and before that the last time I worked on it was '08.

Thank you, this was really starting to frustrate me  :haha: