Partial Save

TheTitan99

Veteran
Veteran
Joined
Nov 2, 2015
Messages
166
Reaction score
66
First Language
English
Primarily Uses
RMMV
Partial Save 1.0by TheTitan99



Introduction
Save only part of the game data to a save file. For instance, save only what Map the player is on, or save only the Game Switches. These saves are permanent and instant. Even if the player exits the game without doing a full save, the Partial Save will still stay.


This plugin is strongly designed for games with 1 Save File, but it does technically work on games with multiple files.

How to Use
Use the Plugin Command "PartialSave", followed by the save file, followed by the 10 potential points of data that can be saved independently.


These 10 things are:


1) Game System.


2) Game Screen.


3) Game Timer.


4) Game Switches.


5) Game Variables.


6) Game Self Switches.


7) Game Actors.


8) Game Party.


9) Game Map.


10) Game Player.


So, to save the system to file 1, use this PluginCommand:


PartialSave 1 1 0 0 0 0 0 0 0 0 0


To save the Switches and Variables to file 2, use this:


PartialSave 2 0 0 0 1 1 0 0 0 0 0


To save the System, Screen, Timer, Map, and Player to file 3, use this:


PartialSave 3 1 1 1 0 0 0 0 0 1 1


And so on.


I advise caution when using this script, as these changes are permanent to the save file. If used well, this can greatly improve a game. If used poorly, it is quite literally save file ruining.

Demo
https://www.dropbox.com/s/lt8wxbj5uf06v8a/Partial%20Save%20Demo.zip?dl=0

Script
https://www.dropbox.com/s/pzpci77itajo6uf/TITAN_PartialSave.js?dl=0


Known Bugs/Issues


- A real save file is NEEDED before a partial save can be done to that file. Partial Saving to a non-existent file will crash the game.


- Sometimes, upon loading a game file, if the partial save has changed what page an event should be on, it'll use the same old event page. It will correctly know what the new game data is, but not update the event page. The game corrects itself after changing maps/switches/ect. I would greatly appreciate if anyone knows a fix to this.


Notes


Made by me, TheTitan99, by modifying code made by RPG Maker staff.


- Free for commercial and non-commercial release with credit given somewhere, anywhere. (Credits, ect.)


- Feel free to edit and improve on this in any way you see fit. Not the best JS user myself, know this code could be made better.
 

Kes

Global Moderators
Global Mod
Joined
Aug 3, 2012
Messages
21,575
Reaction score
10,916
First Language
English
Primarily Uses
RMVXA
As this is based on the default plugin, it might be nice to include credit to them in your script header, and an instruction that they be included in the script credits.
 

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

Latest Threads

Latest Profile Posts

fighting game fans might really enjoy my game battle wise, and I feel non fighting fans might learn some stuff. thanks row system. pokes, neutral, and zoning time...
This community is awesome. They helped me get my eventing processes to work. I love you all.
suspended on twitter for calling an ahole an ahole & appealing the tweet; furious at myself for being even slightly upset with my suspension: oh no, you've been temporarily banned from hell. GET OVER IT, me.
how can you download the tiles from a forum post here? HELP
That moment when you post the wrong download link to your game and wonder why it got so few downloads... :mad:

Forum statistics

Threads
94,249
Messages
919,383
Members
123,960
Latest member
crayonchan
Top