Sharina's Screen-Saves

Sharina's Screen-Saves
Version: 1.4​


Introduction

This system allows you to alter the save-game window to include a screen-shot of the field map where the player and party are is traversing. Along with that, there are items which may optionally be shown within the save game files.

The system also allows one to take advantage of two classic RPGMaker savegame scripts by RPG Advocate: the Unlimited Saves script which allows the game developer set how many save files may be recorded, and the Save Override script that brings up a prompt warning the player that an older save game would be erased in favor of the new.



Features

  • Save screen-shots of your current map into the save game files
  • Go beyond the 4 save-file limit
  • Either 2 or 3-save window layout (no 4-save window layout)
  • Alter the layout of your savegame windows to your specifications (in reason)
  • (INCLUDES) an XP port of 'snap_to_bitmap'
  • (INCLUDES) A PNG file generating script



Screenshots

OWll4pG.png


EWUiDJW.png




Demo

CLICK HERE -- Box.Com link (Note the Download button at the top of the Box.Com window)



Instructions

Plenty... in the script.



Compatibility

Does a fair amount of rewrites to scripts that handle game saves. So, will likely not play well with other save-game altering scripts.



Notes

It uses a PNG file creation script not dissimilar to that within the Zlib system, but comparatively smaller and faster. It is used to actively make temporary files within the project's root directory, though they are deleted almost immediately. If the game's root folder is somehow protected from recording data, you would need to redirect the location where these temp .png files are recorded.



Credits and Thanks

Thanks to zeus81 for the snap-to-bitmap for RPGMaker XP script. And to RPG Advocate for the basis of the Unlimited Saves and Overwrite Prompt save scripts. Also thanks to Carlos_Davilla for noting how cloud-based services like DropBox may have issues with the generated .png files.



Terms and Conditions

Free for use in games, even commercial works. Only due credit for myself, RPG Advocate, zeus81 and Carlos_Davilla are required.
Oh, I've been looking for something like this! Many thanks 😀
Oh, I've been looking for something like this! Many thanks 😀

Just so you know, it's time for one more
BUMP
to version 1.3
​


One more day has passed, but an important upgrade was required.

It came to my attention that some in the community sync their PCs with cloud services. As they connect their PCs to outside sources, these sources would require access unfettered access. And if a file was somehow protected from the cloud service, or its creation/deletion interfered with the cloud service, an issue would arise that would force a CTD (Crash to Desktop).

In order for Sharina's Screen-Saves to function, it must create .png files in which to work, and then delete them the moment their usefulness has passed. And therein lay the dilemma. It was this that cloud services would have issue. So something had to be done to resolve this issue.

It was learned that filenames that begin with certain prefixes (~$ or .~) are typically looked upon as temporary files, files that are expected to be created and later thrown aside. And these files are ignored by cloud services. And here dawned the solution.

When creating a .png file, Sharina's Screen-Saves now adds one of these prefixes to their filenames. This is an automatic process. While you (the user) may define the general name of the work file, the prefix is itself added by the system.

So now that the generated .png files are flagged as Temporary Files, cloud services will ignore and leave alone Sharina's Screen Saves and let things be.​

● ● ●​

I should note that the issue uncovered with Temp Files would actively affect scripts that use ZLib during the creation of the Hope.gz and like files unless addressed.

But that's another system.
BUMP
to version 1.4
​


Alas, one more bump, but with two updates for effect.

First, some replacement engines for RPGMaker may incorporate their own 'snap to bitmap' method. Given that some replacements for RPGMaker XP's game.exe may have that method, Sharina's Screen-Saves now looks to detect the method before adding its own. So engines that already have 'snap to bitmap' will not have their versions overwritten.

Understandably, the script had been designed with RPGMaker XP and for RPGMaker XP. The addition of the snap-to-bitmap' may be seen by some as a patch to include a missing feature. However, one should not as the feature was neither missing nor removed; instead only later conceived for newer engines. Its addition is an enhancement, and that alone.

However, the snap-to-bitmap method will detect if the engine using this system has its own so-named variation, and disable itself if recognized.

Second, it came to my attention that some saves did not properly update and replace the map image. This is because of an innate feature within the cache system. When the cache system sees that a bitmap is re-loading an already existing file of the same name, the system ignores the bitmap in favor of the original. So recording atop the last game save may not have presented the updated map.

For this, the game saves now include the time stamp. When the temporary bitmap is created, the time stamp now becomes part of the filename and thus fixes this issue. For this, the time stamp must actively be created when the game is saved, and not just acquired from the file itself when being read. Recorded now within the saves, this prevents the unlikely chance that the time stamp may change by a mere second between image generation and the game actually being saved.

Insofar as being compatible with other savegame systems, I did state this at the very beginning:​
First post introduction said:
The system also allows one to take advantage of two classic RPGMaker savegame scripts by RPG Advocate: the Unlimited Saves script which allows the game developer set how many save files may be recorded, and the Save Override script that brings up a prompt warning the player that an older save game would be erased in favor of the new.


It is not that the image-saving feature would interfere with other services, but is instead the script base of the RPG Advocate scripts. Both scripts are, in fact, save-game rewrites plain and simple. However, to allow larger space for the map images, indeed some methods did require rewrites for the number appearing and the refresh method of Window_SaveFile to allow the map to appear beneath the texts.[/align]
​

Original thread: https://forums.rpgmakerweb.com/threads/sharinas-screen-saves.160461/