Jump to content
Rpg²S Forum

*Rompere i limiti del database


Kingartur2
 Share

Recommended Posts

AUTORE: Woratana


Be se non vi piace questo script non so che vi possa mai piacere....
Questo script rompe i limiti del database e permette di avere più di 6000 switch, variabili etc..


Queste sono le istruzioni:


1) Fare una copia di backup del gioco(non si sa mai....)
2) Mettere lo script ll'interno dello script editor
3) Andare alla riga 31 e al posto di "false" mettere "true"
4) Scendere e configurare lo script, mi raccoando non mettete numeri troppo alti o lo script non andrà, fate prove con numeri possimi al limite massimo e mano mano aumentate e vedete fino e dove può arrivare lo script
Le istruzioni sono alla riga 50 e pensoche vi farei un'offesa se le traduccessi.....
5) Avviare il gioco
6) Lasciargli fare tutto
7) Chiudete il progeto senza salvare
8) Aprite il progetto
9) Eliminate lo script oppure mettete false al posto di true alla riga 31
10) Godetevi i limiti rotti

A prova di cio eccovi uno screen direttamente dal mio proggetto:
http://img24.imageshack.us/img24/9417/switchcp.png

Ecco lo script:

 

 

#===============================================================
# ● [XP] ◦ Database Limit Breaker ◦ □
# * Break limit of data number in database files *
#--------------------------------------------------------------
# ◦ by Woratana [woratana@hotmail.com]
# ◦ Released on: 22/05/2008
# ◦ Version: 1.0
#--------------------------------------------------------------
#==========================================
# ** HOW TO USE
#------------------------------------------
# 0. Open your project (Recommend to backup your database files first~)
# 1. Paste this script in above 'Main'.
# 2. Set DLB_USE_IT = true
# 3. Setup database files you want to change, in DLB_DATA
# 4. Run your game...
# 5. When it finished, game will close itself
# 6. Close your project *without save*
# 7. Open your project again. Done!
# 8. You can either remove this script, or set DLB_USE_IT = false
#==========================================
#===========================================================================
# Use limit breaker? (set this to false after you run this script,
# and haven't change anything in DLB_DATA after that)
# or REMOVE this script when finished~
#===========================================================================
DLB_USE_IT = false # (true / false)
DLB_DATA = {
#======================================================
# Database file you want to change their number:
# * Limit of normal database files are 999
# * Limit of variables and switches are 5000
# This script will allow you to change their number over their limit~
#===============================
# ** How to setup **
#-------------------------------
# Add 1 line below per 1 database file you want to change.
# Structure: 'Database_File' => (number),
# e.g. 'switch' => 5500,
# (* Don't forget to put , behind the line!)
#==============================================
# **[list] Database_File
#----------------------------------------------
# 'switch' for Game Switches
# 'variable' for Game Variables
# 'actor' for Actors
# 'class' for Classes
# 'skill' for Skills
# 'item' for Items
# 'weapon' for Weapons
# 'armor' for Armors
# 'enemy' for Enemies
# 'troop' for Troops
# 'state' for States
# 'tileset' for Tilesets
# 'animation' for Animations
# 'commonev' for Common Events
#======================================================
# * START to setup from here!
#======================================================
'switch' => 7000,
'variable' => 7000,
#========================================================
# * [END] Database Limit Breaker Setup Part
#========================================================
'end' => nil # End
}
if DLB_USE_IT
	start_time = Time.now
	DLB_DATA.each do |k,v|
		dvar = nil
		case k
		when 'switch'; dname = 'System'; dvar = 'switches'; dnewdata = ''
		when 'variable'; dname = 'System'; dvar = 'variables'; dnewdata = ''
		when 'actor'; dname = 'Actors'; dnewdata = 'RPG::Actor.new'
		when 'class'; dname = 'Classes'; dnewdata = 'RPG::Class.new'
		when 'skill'; dname = 'Skills'; dnewdata = 'RPG::Skill.new'
		when 'item'; dname = 'Items'; dnewdata = 'RPG::Item.new'
		when 'weapon'; dname = 'Weapons'; dnewdata = 'RPG::Weapon.new'
		when 'armor'; dname = 'Armors'; dnewdata = 'RPG::Armor.new'
		when 'enemy'; dname = 'Enemies'; dnewdata = 'RPG::Enemy.new'
		when 'troop'; dname = 'Troops'; dnewdata = 'RPG::Troop.new'
		when 'state'; dname = 'States'; dnewdata = 'RPG::State.new'
		when 'animation'; dname = 'Animations'; dnewdata = 'RPG::Animation.new'
		when 'tileset'; dname = 'Tilesets'; dnewdata = 'RPG::Tileset.new'
		when 'commonev'; dname = 'CommonEvents'; dnewdata = 'RPG::CommonEvent.new'
		when 'end'; next
			else; p 'unknown DLB_DATA!', 'Check carefully what you typed in DLB_DATA'
		end
		base_data = load_data('Data/' + dname + '.rxdata')
		data = dvar.nil? ? base_data : eval('base_data.' + dvar.to_s)
		unless data.size > v and v - (data.size - 1) <= 0
			add_data = Array.new(v - (data.size - 1)) { eval(dnewdata) }
			data.push *add_data
			save_data(base_data, 'Data/' + dname + '.rxdata')
		end
	end
	p 'Completato in ' + (Time.now - start_time).to_s + ' sec'
	exit
end

 

 

Edited by Dilos
Script monoriga sistemato.

Per qualsiasi motivo non aprite questo spoiler.

 

 

Ho detto di non aprirlo !

 

 

Se lo apri ancora esplode il mondo.

 

 

Aaaaaa è un vizio.

 

 

Contento? Il mondo è esploso, sono tutti morti

per colpa della tua curiosità .

 

 

Vuoi che ti venga anche il morbillo, la varicella e l'AIDS???

 

 

O bravo ora sei un malato terminale e nessuno

ti puo curare, sono tutti morti !

 

 

Se clicchi ancora una volta il PC esplode.

 

 

E dai smettila !!

 

Uff!! Hai cliccato tante volte che ho dovuto sostituirlo con un codebox.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

http://s8.postimg.org/yntv9nxld/Banner.png

http://img204.imageshack.us/img204/8039/sccontest3octpl3.gif

Link to comment
Share on other sites

Non interessa a nessuno???

Per qualsiasi motivo non aprite questo spoiler.

 

 

Ho detto di non aprirlo !

 

 

Se lo apri ancora esplode il mondo.

 

 

Aaaaaa è un vizio.

 

 

Contento? Il mondo è esploso, sono tutti morti

per colpa della tua curiosità .

 

 

Vuoi che ti venga anche il morbillo, la varicella e l'AIDS???

 

 

O bravo ora sei un malato terminale e nessuno

ti puo curare, sono tutti morti !

 

 

Se clicchi ancora una volta il PC esplode.

 

 

E dai smettila !!

 

Uff!! Hai cliccato tante volte che ho dovuto sostituirlo con un codebox.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

http://s8.postimg.org/yntv9nxld/Banner.png

http://img204.imageshack.us/img204/8039/sccontest3octpl3.gif

Link to comment
Share on other sites

Interessante come script, ma credo che non ti abbia risposto nessuno perchè non vedo come possano essere utili più di 6000 switch o variabili...

 

Forse per un gioco colossale.

 

Secondo me è un pò come quello per i 999999 hp ecceterà, ovverò rende il gioco ingestibile:come fai a far giocare una persona fino a raggiungere il livello 200? Devi per forza fare un gioco imponente!

Questo script è interessante più per un motivo dimostrativo: dimostra che rmxp non ha limiti grazie agli script.

"Potrete giudicare quanto è intelligente un uomo dalle sue risposte.Potrete giudicare quanto è saggio dallle sue domande."Nahgib Mahfuz Quando un politico è buono non ha abbastanza potere, quando ha abbastanza potere non è buono,quando è buono e ha abbastanza potere, lo ammazzano! (Questa l'ho inventata io! Spero...)http://img362.imageshack.us/img362/933/gigacciolabannerbc7.gif Fan assetato di gioco completo
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...