TheTitan99

Veteran
Veteran
Joined
Nov 2, 2015
Messages
219
Reaction score
104
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

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,305
Reaction score
11,731
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.
 

Latest Threads

Latest Posts

Latest Profile Posts

Made it to the 10th video doing this! :kaocry:

renderTimingPixel.png
Made the "My Beating Mystery" board today:
3ENFLSC.png

in Grim Trigger episodes 3 & 4, the main characters play a Clue rip-off board game called "My Beating Mystery" (haha), so of course I had to draw the board for it. Can't decide if I wanna add blood or not
Jeez...
I finally decide, after several ppl asking me to, to create a gamethread about project M... And my internet craps out on me halfway through the process :(
making my first game is like trying to stuff all my experience with old games into one
so its slow and painful when i dont get it right... i bet the next game is gonna be finished earlier!
When you don't find any time to work... :kaocry:

Forum statistics

Threads
110,401
Messages
1,053,011
Members
143,460
Latest member
Totaldramawwe
Top