Muge9thD   07-09-2012, 08:58 PM
#1
Database Limit Breaker

สคริปต์เขียนโดย : shdwlink1993.
ลิงค์ต้นฉบับ : http://www.irpgth.com/community/School/3350-Script-Database-...999


รายละเอียด :
ทำให้ Database (เช่น จำนวนอาวุธ(ยกเว้น จำนวนธาตุและจำนวนแผนที่)) ที่ปกติจะได้สูงสุดแค่ที่ 999 ให้มากกว่า 1000 ได้
สกรีนช๊อต :
ไม่มีน่อ
วิธีการใช้งาน :
ใส่สคริปต์ไว้เหนือ main แล้วเซฟโปรเจคต์
จากนั้นแก้ตรงส่วนนี้ของสคริปต์
[shcode=rails]Actors = 0
Animations = 0
Armors = 0
Classes = 0
CommonEvents = 0
Enemies = 0
Items = 0
Skills = 0
States = 0
Tilesets = 0
Troops = 0
Weapons = 0[/shcode]
โดยแก้เลขด้านหลังของ Data ที่เราต้องการจะปรับให้เป็นค่าที่ต้องการ(หากไม่ต้องการปรับให้ทิ้งไว้เหมือนเดิม)
จากนั้นเซฟโปรเจคต์แล้วรันโปรเจคต์ขึ้นมา ก็จะได้ database ทะลุขีดจำกัดแล้ว
ข้อตกลงการนำไปใช้งาน :


Note that if you share this file, even after editing it, you must still give proper credit to shdwlink1993.


โค๊ดสคริปต์
[shcode=rails]#==============================================================================
# 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
# # ( 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[/shcode]
This post was last modified: 08-01-2012, 04:07 AM by Jirayu.
Shinryu   07-09-2012, 09:38 PM
#2
ไม่มี SS อย่างน้อยลงวิธีใช้งานหน่อยสิ

[Image: 7f7cb68ce0.png][Image: rlogo.png]
Show ContentSpoiler:
Muge9thD   07-09-2012, 09:53 PM
#3
ขอบคุณท่านชินริวที่เตือนนะฮะ

* Muge9thD ลืมไปซะสนิท ทำหน้าเหยาหมิง
anime13master   07-22-2012, 08:38 PM
#4
โอ๊ะแหล่ม กำลังมีปัญหาเรื่องจำนวนสกิลในเกมมันไม่ค่อยจะพอรัปทานอยู่พอดี

ถ้าอันนี้โมรวมกะ ATOA ได้ผมก็ไม่ต้องกังวลเรื่องจำนวนสกิลแล้วสินะ จะทำสกิลเท่ๆที่ใช้สกิลเป็น 10 มาเรียงกันก็ได้ เอิ๊กๆๆ
hengmana   07-27-2012, 07:01 PM
#5
;w; ทำไมลองตั้งค่า 2000 มันรันได้ 1999 หว่า
ปล. ใช้เสร็จแล้ว ให้ลบสคริปต์นั้นออกหรือไว้ใต้main ด้วยนะ (ไม่งั้นเข้าลองเล่นไม่ได้)

พอดีเห็นของ Woratana ก็มี แถมมีเพิ่มจำกัด สวิตช์กับตัวแปร ด้วยนะ (มีอธิบายวิธีใช้ในนั้น)
http://www.santuariorpgmaker.com/forum/i...ic=16672.0
.
This post was last modified: 07-27-2012, 07:06 PM by hengmana.
  
Users browsing this thread: 1 Guest(s)
Powered By MyBB, © 2002-2024 MyBB Group.
Made with by Curves UI.