Checkpoint + One Save Per Game System

AsocialDarwinist

Villager
Member
Joined
Nov 8, 2016
Messages
6
Reaction score
0
First Language
English
Primarily Uses
Hello all !


I'm a new user and currently working on my very first game. It will be a horror game, extremely story-oriented.


Now I wouldn't be here if I hadn't searched already for this, but if you find an existing script for this, you're absolutely welcome to point me in that direction.


What I'm looking for is a save system wherein :


1) You can only have checkpoints, and can continue from last checkpoint on the game over screen. EDIT : On second thought, maybe it would be simpler if the save screen didn't appear at all. So, more an autosave than a checkpoint, though it would be nice if I could put in a message saying the game is about to be saved and is the player sure.


2) You can only have one save file per game. Not one save file overall, one per playthrough. Which means that the main title load screen would basically give access to different games, not only different saves.


3) It would also be nice if the players could have unlimited save files, or a high number of them, but that is optional.


This will prevent players from save scumming, and will very much make the players concentrate on their choices and the story.


Now, there's a script for option one (or at least, there was in VX). There's a script for option two, though I'm not sure if it does one per game, or just one for all games. There's Yanfly's save system for the third thing. But there isn't (or at least, I haven't found) a script which combines all three functionalities.


A workable script would earn you my gratitude as well as a place in the credits.


Thanks in advance !
 
Last edited by a moderator:

Archeia

Level 99 Demi-fiend
Developer
Joined
Mar 1, 2012
Messages
15,141
Reaction score
15,473
First Language
Filipino
Primarily Uses
RMMZ
try this:

Code:
	module DataManager
	  #--------------------------------------------------------------------------
	  # * Create Filename
	  #     index : File Index
	  #--------------------------------------------------------------------------
	  def self.make_filename(index)
	    if index == 31337
	      return "Checkpoint.rvdata2"
	    else
	      return sprintf("Save%02d.rvdata2", index + 1)
	    end
	  end
	  #--------------------------------------------------------------------------
	  # * Determine Existence of Save File
	  #--------------------------------------------------------------------------
	  def self.autosave_file_exists?
	    !Dir.glob('Checkpoint.rvdata2').empty?
	  end
	  #--------------------------------------------------------------------------
	  # * Execute Load (No Exception Processing)
	  #--------------------------------------------------------------------------
	  def self.load_game_without_rescue(index)
	    File.open(make_filename(index), "rb") do |file|
	      Marshal.load(file)
	      extract_save_contents(Marshal.load(file))
	      @last_savefile_index = index
	    end
	    return true
	  end
	  #--------------------------------------------------------------------------
	  # * Execute Save
	  #--------------------------------------------------------------------------
	  def self.save_game(index)
	    begin
	      save_game_without_rescue(index)
	    rescue
	      delete_save_file(index)
	      false
	    end
	  end
	end
	class Game_Interpreter
	  #--------------------------------------------------------------------------
	  # * Open Save Screen
	  #--------------------------------------------------------------------------
	  def command_352
	    return if $game_party.in_battle
	    DataManager.save_game(31337)
	  end
	end
 

AsocialDarwinist

Villager
Member
Joined
Nov 8, 2016
Messages
6
Reaction score
0
First Language
English
Primarily Uses
Wow, thanks for answering so quickly ! Do you have specific instructions (for instance, to create the checkpoint itself) ? I'm trying it now.


EDIT : Okay, how do I activate it ? I mean, I deleted TDS' simplified menu script to save the game, and it still presents me with four saves, from which I can choose any of them. The game over also doesn't enable me to continue, and I don't know how to make the checkpoint system work. What do I do ?
 
Last edited by a moderator:

Archeia

Level 99 Demi-fiend
Developer
Joined
Mar 1, 2012
Messages
15,141
Reaction score
15,473
First Language
Filipino
Primarily Uses
RMMZ
Ah I misread what you needed.


So if you want autosaving go here: 




For the save file amount, you would want to edit the script for saves, Idk what script you are using but look for this section and change the return to 1.

Code:
	  def self.savefile_max
	    return 16
	  end
 

AsocialDarwinist

Villager
Member
Joined
Nov 8, 2016
Messages
6
Reaction score
0
First Language
English
Primarily Uses
Thank you, and sorry if I'm being pushy, but that still isn't what I asked. Perhaps I wasn't clear enough. Here's what I need :


- Only one save file, but not overall, one different save file per game. In other words, each game would create a new save file.<- THIS IS IMPORTANT


- A checkpoint system that only gives access to the aforementioned single save file, enables me to actually place checkpoints, and enables the player to continue from the game over screen. This is what I want, but for VX Ace. <- THIS IS LESS IMPORTANT, BUT IMPORTANT NONETHELESS


- An unlimited (or close to unlimited) number of max save files, so that they can start as many games as they want. <-THIS IS THE LEAST IMPORTANT


This would mean that the title screen "Continue" command would give access to a load screen that has different playthroughs in it, not just different saves.


Plus, Todd's Autosave doesn't seem to be compatible with Khas' Awesome Light Effects, which I use and need.


If it helps in any way, I can tell you which scripts I have.


Again, sorry for being pushy, but I really need this save system
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,847
Messages
1,016,968
Members
137,561
Latest member
JaCrispy85
Top