Sharina's Screen-Saves
#1
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

[Image: OWll4pG.png]

[Image: 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, primarily as the window and scene scripts were based on Phylomortis rewrites. 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.
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)

[Image: QrnbKlx.jpg]
[Image: sGz1ErF.png]    [Image: liM4ikn.png]    [Image: fdzKgZA.png]    [Image: sj0H81z.png]
[Image: QL7oRau.png]    [Image: uSqjY09.png]    [Image: GAA3qE9.png]    [Image: 2Hmnx1G.png]    [Image: BwtNdKw.png%5B]
  Above are clickable links
Reply }
#2
BUMP
to version 1.2

True, only a day has passed, but the Zlib system that creates .png files has been replaced with another.  This replacement is based upon those found within utility systems such as MapMaker.   

However, the replacement code is a hybrid between the Zlib and MapMaker scripts. While MapMaker's code is able to more quickly create .png files, the generated files cannot load through RPGMaker's cache system. This annoyance was part-and-parcel to how the MapMaker code ended the data blocks within the .png files. So corrections based upon the Zlib edition were made.

Also, the hybrid code includes a little tweak courtesy of yours truly. Winking

It is known to some within the RPGMaker XP community that the 'Graphics.update' command must be executed at least once every ten seconds, otherwise the game engine itself thinks an error in scripting may have occurred.  Something like an endless and recurring loop would cause such an issue.  And if one was to execute either Zlib or the PNG creating system for extremely large graphics (imagine a 500x500 map), it could take much longer than 10 seconds depending upon the PC.  Obviously, the system would shut down and exit.

The hybrid which I provide includes a counter of sorts, actually looking at how many iterations have passed during the creation of the .png bitmap, and execute Graphics.update on a fairly regular (but quite spaced apart) basis.  This would avoid the issue with the Game.exe thinking that it has run into an endless loop, and allow it to function even with massive image files.

*  *  *

Due to the ZLib system being replaced, the use of the SYSTEM_MODE variable within the configuration page no longer exists.  This latest edition no longer has this configuration variable.  If you already have defined your configuration page, there is no worry as the elimination of SYSTEM_MODE would not hamper your setup.

* * *

Just for kicks, I added the timed 'screen-saving' feature into Scene_Battle. While using the default [Call Save Screen] built into RPGMaker XP kicks you out of battle and into the Field Map (ugh), someone may be inventive enough to find a way to save their game while in combat. For this, I added screen shot capability.

So no, it does not save your games IN combat. But it will generate the screenies for someone who DOES come up with such a feature.
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)

[Image: QrnbKlx.jpg]
[Image: sGz1ErF.png]    [Image: liM4ikn.png]    [Image: fdzKgZA.png]    [Image: sj0H81z.png]
[Image: QL7oRau.png]    [Image: uSqjY09.png]    [Image: GAA3qE9.png]    [Image: 2Hmnx1G.png]    [Image: BwtNdKw.png%5B]
  Above are clickable links
Reply }
#3
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.
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)

[Image: QrnbKlx.jpg]
[Image: sGz1ErF.png]    [Image: liM4ikn.png]    [Image: fdzKgZA.png]    [Image: sj0H81z.png]
[Image: QL7oRau.png]    [Image: uSqjY09.png]    [Image: GAA3qE9.png]    [Image: 2Hmnx1G.png]    [Image: BwtNdKw.png%5B]
  Above are clickable links
Reply }
#4
Oh, sadly this needs win32api so i can't use it in my game. :c
It looks really cool.
Reply }
#5
I think I know why, Melana. Happy with a sweat

Valid For Custom Implementations of RGSS Only
"For God has not destined us for wrath, but for obtaining salvation through our Lord Jesus Christ," 1 Thessalonians 5:9

Maranatha!

The Internet might be either your friend or enemy. It just depends on whether or not she has a bad hair day.

[Image: SP1-Scripter.png]
[Image: SP1-Writer.png]
[Image: SP1-Poet.png]
[Image: SP1-PixelArtist.png]
[Image: SP1-Reporter.png]

My Original Stories (available in English and Spanish)

List of Compiled Binary Executables I have published...
HiddenChest & Roole

Give me a free copy of your completed game if you include at least 3 of my scripts! Laughing + Tongue sticking out

Just some scripts I've already published on the board...
KyoGemBoost XP VX & ACE, RandomEnkounters XP, KSkillShop XP, Kolloseum States XP, KEvents XP, KScenario XP & Gosu, KyoPrizeShop XP Mangostan, Kuests XP, KyoDiscounts XP VX, ACE & MV, KChest XP VX & ACE 2016, KTelePort XP, KSkillMax XP & VX & ACE, Gem Roulette XP VX & VX Ace, KRespawnPoint XP, VX & VX Ace, GiveAway XP VX & ACE, Klearance XP VX & ACE, KUnits XP VX, ACE & Gosu 2017, KLevel XP, KRumors XP & ACE, KMonsterPals XP VX & ACE, KStatsRefill XP VX & ACE, KLotto XP VX & ACE, KItemDesc XP & VX, KPocket XP & VX, OpenChest XP VX & ACE
Reply }
#6
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 Wrote: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.
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)

[Image: QrnbKlx.jpg]
[Image: sGz1ErF.png]    [Image: liM4ikn.png]    [Image: fdzKgZA.png]    [Image: sj0H81z.png]
[Image: QL7oRau.png]    [Image: uSqjY09.png]    [Image: GAA3qE9.png]    [Image: 2Hmnx1G.png]    [Image: BwtNdKw.png%5B]
  Above are clickable links
Reply }


Possibly Related Threads…
Thread Author Replies Views Last Post
   Sarah's Configuration Screen DerVVulfman 7 10,331 06-09-2024, 02:15 AM
Last Post: DerVVulfman
Smile  Soul's Better Status Screen SoulZetaformGames 7 10,908 11-11-2021, 09:20 AM
Last Post: kyonides
   Screen Tint Debugger MechanicalPen 0 4,805 11-04-2014, 06:47 PM
Last Post: MechanicalPen
   Full-Screen Toggle Helladen 0 5,404 07-10-2010, 01:00 AM
Last Post: Helladen
   Main Character Select Screen Raziel 4 11,644 05-27-2010, 04:48 PM
Last Post: sakhawat21
   Screen Shake Extended DerVVulfman 0 6,013 12-31-2009, 05:16 AM
Last Post: DerVVulfman
   Miss Laura's Transparent GameOver Screen DerVVulfman 0 5,377 03-05-2008, 06:25 PM
Last Post: DerVVulfman
   Title Screen Edit ParaDog 0 4,418 03-04-2008, 05:10 AM
Last Post: ParaDog



Users browsing this thread: 1 Guest(s)