[XP] DREAM for Save Files

Started by Blizzard, January 08, 2008, 12:08:04 pm

Previous topic - Next topic

Blizzard

January 08, 2008, 12:08:04 pm Last Edit: October 07, 2021, 10:24:28 am by Blizzard
DREAM for Save Files
Authors: Blizzard
Version: 4.5
Type: Encryptor / Decryptor
Key Term: Game Utility

Introduction

This script provides high protection of savegame hacking and i.e. leveling up all characters to level 99. Maximum possible safety was applied to create this script.

This work is licensed under BSD License 2.0:
QuoteCopyright (c) Boris "Blizzard" Mikić
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1.  Redistributions of source code must retain the above copyright notice,
    this list of conditions and the following disclaimer.

2.  Redistributions in binary form must reproduce the above copyright notice,
    this list of conditions and the following disclaimer in the documentation
    and/or other materials provided with the distribution.

3.  Neither the name of the copyright holder nor the names of its contributors
    may be used to endorse or promote products derived from this software
    without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.

You may use this script for both non-commercial and commercial products without limitations as long as you fulfill the conditions presented by the above license. The "complete" way to give credit is to include the license somewhere in your product (e.g. in the credits screen), but a "simple" way is also acceptable. The "simple" way to give credit is as follows:
QuoteDREAM for Save Files licensed under BSD License 2.0, Copyright (c) Boris "Blizzard" Mikić

Alternatively, if your font doesn't support diacritic characters, you may use this variant:
QuoteDREAM for Save Files licensed under BSD License 2.0, Copyright (c) Boris "Blizzard" Mikic

In general other similar variants are allowed as long as it is clear who the creator is (e.g. "DREAM for Save Files created by Blizzard" is acceptable). But if possible, prefer to use one of the two variants listed above.

If you fail to give credit and/or claim that this work was created by you, this may result in legal action and/or payment of damages even though this work is free of charge to use normally.


Features

  • uses the Double Random Encryption Algorythm Module (DREAM) to encrypt important save data every time it is saved
  • makes it harder to hack saved files (even experienced hackers will have a hard time hacking important data from save files encrypted with DREAM)
  • great for RMXP MMORPGs
v2.0
  • uses DREAM 3.0 which is far more powerful than DREAM 2.0, because the .dream3 format is a format in which ALL the saved data is encrypted
  • your savefiles will be saved into files with .dream3 extension
v3.0
  • uses the even more powerful DREAM v4.0
  • faster, better, safer:
     -> new, much faster algorithm which's speed doesn't depend on the chosen encryption pattern anymore
     -> re-coded to avoid the built-in RGSS bug with conditioning
     -> new additional encryption of encrypted data
  • your savefiles will be saved now into files with .dream4 extension
  • displays "File corrupted!" instead of crashing when files are corrupted
  • can decode dream2 and dream3 format
v3.0b
  • now uses DREAM v4.1 or higher
  • direct implementation into DREAM
  • now beta
v4.5
  • now uses DREAM v4.4
  • added new license
  • added usage and crediting instructions


Screenshots

N/A for this sort of script


Demo

N/A


Script

Just make a new script above main and paste this code into it.
Script Download


Instructions

Inside the script in the first comment.
Download this file:

DREAM files

and extract it into the Data folder of your game.
The Download file includes:
DREAM.dll
DREAM_ext.rb
DREAM Readme.txt

Compatibility

98% compatible with SDK 1.x. 90% compatible with SDK 2.x. 99% compatible with everything else. WILL corrupt your old savegames. Can cause incompatibility issues with custom save screens. NEEDS DREAM of the provided version or higher. Files will be saved into dream4 format with .dream4 extension. Cannot decode dream2 and dream3 files where extra data was added, but normal dream2 and dream3 files can be decoded.

Credits and Thanks

  • Boris "Blizzard" Mikić
  • Special Thanks to the makers of the XVI32 Hex editor (without it, I couldn't have tested this script)

Author's Notes

This script will encrypt all save data and render them 100% unusable by any earlier version of your game that DOES NOT have this script. If you are using save-game update of earlier versions, this script will make further updates of old savegames IMPOSSIBLE, because they can't be loaded at all. Please use a DREAM save file converter to convert usual save files into a DREAM readable format. Note that this version of this script can also READ save files encrypted in dream2 and dream3 format only if their extension is being changed to .dream4 and their names are changed like configured below. Note that any extra data from dream2 and dream3 files will not be read. This script will save any files into .dream4 format. Changing this script can easily destroy your savefiles and it is not recommended.

DREAM Save File converter (converts files into .dream2 format)

That's it! N-Joy! =D
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Blizzard

Nobody cares about their games being hacked anymore. ._.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Juan

Dropbox Who need luck when you can make your own.
3ds Friend code: ShowHide
 4468 1422  6617

Blizzard

Yeah, NAMK complained about me hacking Insanity. xD
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Mightylink

this was something i was planning to look at near end development of my game, but i'll get it anyway, never know what could happen in the next few years

ALiCES_EMOTiON

Sorry to necropost, but when I save with this script I get this:



It generates the save file, but it doesn't call it the name I have set it (it just calls it Save1.dream4). The save file it creates is also corrupt. Am I doing something wrong? Thanks.


Blizzard

Quote from: Once again Blizz-ABS Manual saves the day! Chapter 1.2. - Compatiblity
DREAM for Save Files
Version: 3.0b
Compatible: No.
Tested: Yes.
Notes: This issue will be fixed in the next DREAM release.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.