Author Topic: [XP] DREAM for Save Files  (Read 11120 times)

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20013
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
[XP] DREAM for Save Files
« on: January 08, 2008, 07:08:04 PM »
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:
Quote
Copyright (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:
Quote
DREAM 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:
Quote
DREAM 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
« Last Edit: March 23, 2019, 06:47:13 PM by Blizzard »
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


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

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

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20013
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] DREAM for Save Files
« Reply #1 on: October 19, 2008, 03:16:20 PM »
Nobody cares about their games being hacked anymore. ._.
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


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

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

Offline Juan

  • Ethereal Devastator
  • ****
  • Posts: 409
  • LV: 48
  • Gender: Male
  • Evil Twin
    • View Profile
Re: [XP] DREAM for Save Files
« Reply #2 on: October 19, 2008, 03:17:49 PM »
Actually some do.
Dropbox Who need luck when you can make your own.
(click to show/hide)

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20013
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] DREAM for Save Files
« Reply #3 on: October 19, 2008, 03:24:28 PM »
Yeah, NAMK complained about me hacking Insanity. xD
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


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

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

Offline Mightylink

  • Transcended Spirit
  • ***
  • Posts: 216
  • LV: 6
  • Gender: Male
  • There is no spoon...
    • View Profile
    • ZVC Studio's
Re: [XP] DREAM for Save Files
« Reply #4 on: October 19, 2008, 03:42:32 PM »
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

  • Guest
Re: [XP] DREAM for Save Files
« Reply #5 on: February 14, 2009, 06:45:56 PM »
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.


Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20013
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] DREAM for Save Files
« Reply #6 on: February 14, 2009, 07:04:29 PM »
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      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


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

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