[XP] Database Limit Breaker

Started by shdwlink1993, August 24, 2009, 11:09:36 pm

Previous topic - Next topic

shdwlink1993

Database Limit Breaker
Authors: shdwlink1993
Version: 1.0
Type: Limit Breaker
Key Term: Game Utility



Introduction

Have you ever wanted more that 999 of something? Maybe Weapons, or Skills. Or perhaps you just wanted a few more flashy animations? Well, The Database Limit Breaker will break said limits, allowing you to increase the potential of your game.


Features


  • Breaks Database limits for everything except elements and maps, allowing you to have as many as you want.



Screenshots




Demo

The Script is plug-&-play.


Script

Spoiler: ShowHide

#==============================================================================
# Database Limit Breaker XP
# Author: Shdwlink1993
# Version: 1.0
# Type: Limit Breaker
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
# DLBXP Date 1.0b: 8/24/2009
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
#
# #  This work is protected by the following license:
# #----------------------------------------------------------------------------
# # 
# #  Creative Commons - Attribution-NonCommercial-ShareAlike 3.0 Unported
# #  ( http://creativecommons.org/licenses/by-nc-sa/3.0/ )
# # 
# #  You are free:
# # 
# #  to Share - to copy, distribute and transmit the work
# #  to Remix - to adapt the work
# # 
# #  Under the following conditions:
# # 
# #  Attribution. You must attribute the work in the manner specified by the
# #  author or licensor (but not in any way that suggests that they endorse you
# #  or your use of the work).
# # 
# #  Noncommercial. You may not use this work for commercial purposes.
# # 
# #  Share alike. If you alter, transform, or build upon this work, you may
# #  distribute the resulting work only under the same or similar license to
# #  this one.
# # 
# #  - For any reuse or distribution, you must make clear to others the license
# #    terms of this work. The best way to do this is with a link to this web
# #    page.
# # 
# #  - Any of the above conditions can be waived if you get permission from the
# #    copyright holder.
# # 
# #  - Nothing in this license impairs or restricts the author's moral rights.
# # 
# #----------------------------------------------------------------------------
# #
# # Note that if you share this file, even after editing it, you must still
# # give proper credit to shdwlink1993.
#
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
#
#                                    ~= Function =~
#
# This script is designed to break the database limits of 999 for anything
# (except elements and maps).
#
# Before running, make sure that the project is not open in RPG Maker XP! This
# is important because otherwise it will not read the new data!
#
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
#
#                               ~= Version History =~
#
# Version 1.0b ---------------------------------------------------- [8/24/2009]
#
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
#
#                                 ~= Customization =~
#
# For whatever you want changed, simply change the number after it to the number
# you want avaliable (you'll understand when you see it).
#
# If you do NOT want to change it, then leave the number at 0.
#
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
#
#                               ~= Compatability =~
#
# - Will not work with Blizzard's Creation System.
#
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
#
#                             ~= Special Thanks =~
#
# - Blizzard, because this entire script is based on a five-line snippet he
# provided.
#
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=

Actors = 0
Animations = 0
Armors = 0
Classes = 0
CommonEvents = 0
Enemies = 0
Items = 0
Skills = 0
States = 0
Tilesets = 0
Troops = 0
Weapons = 0

def ops(num, filename, st)
  return if num == 0
  data = load_data(filename)
  num = num-data.size
  struct = eval(st)
  if num > 1
    num.times { data.push(struct) }
  else
    (-num).times { data.pop }
  end
  File.open(filename, 'wb') {|f| Marshal.dump(data, f) }
end

begin
  ops(Actors, 'Data/Actors.rxdata', 'RPG::Actor.new')
  ops(Animations, 'Data/Animations.rxdata', 'RPG::Animation.new')
  ops(Armors, 'Data/Armors.rxdata', 'RPG::Armor.new')
  ops(Classes, 'Data/Classes.rxdata', 'RPG::Class.new')
  ops(CommonEvents, 'Data/CommonEvents.rxdata', 'RPG::CommonEvent.new')
  ops(Enemies, 'Data/Enemies.rxdata', 'RPG::Enemy.new')
  ops(Items, 'Data/Items.rxdata', 'RPG::Item.new')
  ops(Skills, 'Data/Skills.rxdata', 'RPG::Skill.new')
  ops(States, 'Data/States.rxdata', 'RPG::State.new')
  ops(Tilesets, 'Data/Tilesets.rxdata', 'RPG::Tileset.new')
  ops(Troops, 'Data/Troops.rxdata', 'RPG::Troop.new')
  ops(Weapons, 'Data/Weapons.rxdata', 'RPG::Weapon.new')
  exit
end



Instructions

Change the number of what you want more of to said number. If you want 1712 Actors, then change Actors to 1712. If you want less, then change it to that number. If you do not want the data changed, then change the number to 0.

NOTE: If you are going to do this, then please make sure that whatever bit of data you want altered is at 999 already. (If you need more Animations, then make sure you already have 999). Otherwise, it may crash.


Compatibility

Will NOT work with Blizzard's Creation System.


Credits and Thanks


  • Thanks to Blizzard, because this script is based on a five-line snippet he provided.
Stuff I've made:




"Never think you're perfect or else you'll stop improving yourself."

"Some people say the glass is half full... some half empty... I just wanna know who's been drinking my beer."

Hellfire Dragon


Blizzard

Quote from: shdwlink1993 on August 24, 2009, 11:09:36 pm

  • Thanks to Blizzard, because this script is based on a five-line snippet he provided.



:rofl:
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.

Mixxth

I tried... loaded it up put it under main, changed items to 1001... couldnt get past 999 still >.< grr arg
Donald Knuth: "I can't go to a restaurant and order food because I keep looking at the fonts on the menu. Five minutes later I realize that it's also talking about food."

G_G

You have to reload the project. As in close RMXP then re-open it.

Mixxth

Quote from: game_guy on February 21, 2011, 05:32:50 pm
You have to reload the project. As in close RMXP then re-open it.


I tried again, maybe I'm doing it wrong, I added the script above main, my items at 999, increased the items in the script for 1020, reloaded rmxp itself, and still at 999 also my game doesn't load with the script there lol
Donald Knuth: "I can't go to a restaurant and order food because I keep looking at the fonts on the menu. Five minutes later I realize that it's also talking about food."

EZ Destroyer

can this change the limits on the states like sharp, barrier etc so that atk,def can rise over 200%?

Megidolaon

Does this really work?
How?
I mean, does this affect the database in the editor?
So that once activated, the database will allow me to have like 3000 troops which I can just edit like the normal 999 in the database?

If so, how can I get it to work?
I inserted the script above the main category in the script editor, then saved and restarted RMXP.
But nothing happens whatsoever and the only other script I use is albertfish's item categories.

winkio

you need to run your game.  Also,

QuoteNOTE: If you are going to do this, then please make sure that whatever bit of data you want altered is at 999 already. (If you need more Animations, then make sure you already have 999). Otherwise, it may crash.

G_G

Run your game. Close your project. Reopen your project. Works perfectly. Enterbrain simply put the limit on us in the Change Max form. The program will still read all entries from the data files.