Hello,
i can save without any problems in my game expect on two maps.
When i enter them and try to save there nothing happens and when i try
to override a savefile it erases it. Help please 🙁
I have absolutely no doubt that this is not a bug, but something you've done to your game.
So, on those two maps, it APPEARS that it's allowing you to save, but it actually erases the save file and doesn't create the new one? Almost sounds like folder permissions, but then I'd expect it to happen on every map, not just two.
- Where is your project saved - in My Documents, or in Program Files, or somewhere else?
- Have you made any use of the Change Save Access event command to disable/enable saving?
- How are you trying to save - do you go to the menu and choose Save, or do you use the Open Save Screen command, or some other command?
- What script additions/mods have you made that affect file saving? Post links to them, don't just list them
- Have you done something like opened the save file in another program while you're still playing? Running a script or something to try and extract/modify save file contents?
I'm moving this to RGSSx Script Support, as it's almost certainly something to do with the script or the configuration
Disable the script and see if you can now save on those maps.
Something on those maps cannot be serialized and written to the disk. RGSS3, in its infinite wisdom, decides to hide this error message from you by default and deletes the save data if an error occurs. That's what is happening. These are the relevant areas from DataManager:
#--------------------------------------------------------------------------# * Execute Save#--------------------------------------------------------------------------def self.save_game(index) begin save_game_without_rescue(index) rescue delete_save_file(index) false endend#--------------------------------------------------------------------------# * Execute Save (No Exception Processing)#--------------------------------------------------------------------------def self.save_game_without_rescue(index) File.open(make_filename(index), "wb") do |file| $game_system.on_before_save Marshal.dump(make_save_header, file) Marshal.dump(make_save_contents, file) @last_savefile_index = index end return trueendThe problem is that those maps are trying to serialize data which cannot be serialized (a Proc or a Bitmap for example). This error occurs on the calls to Marshal.dump, but the errors are swallowed by the rescue in DataManager.save_game.The script that you're using for save games is not the issue here -- it doesn't touch the logic that I just explained. In fact, it deftly maneuvers around it.
Basically, in order to get more information about what's happening, I want you to include this code in a new script directly above Main:
module DataManager def self.save_game(index) save_game_without_rescue(index) endendOnce you've done that, go to one of the maps in question and try to save your game. Provide the error that occurs.Edit: By the way, it's extremely unlikely that it's the save system that's bugged. Something else is, and that something is a third-party script that didn't handle things properly.