Raccoon Game RPG รวมพลนักพัฒนา
สคริปต์ Auto Backup สำหรับทั้ง XP และ VX Rpgvx_1024x768b

Join the forum, it's quick and easy

Raccoon Game RPG รวมพลนักพัฒนา
สคริปต์ Auto Backup สำหรับทั้ง XP และ VX Rpgvx_1024x768b
Raccoon Game RPG รวมพลนักพัฒนา
Would you like to react to this message? Create an account in a few clicks or log in to continue.

สคริปต์ Auto Backup สำหรับทั้ง XP และ VX

Go down

สคริปต์ Auto Backup สำหรับทั้ง XP และ VX Empty สคริปต์ Auto Backup สำหรับทั้ง XP และ VX

ตั้งหัวข้อ by boyhit Mon Oct 31, 2011 6:09 am

สคริปต์ Auto Backup สำหรับทั้ง XP และ VX

สคริปต์
นี้จะแบ็กอัพไฟล์ .rxdata หรือ .rvdata
ทั้งหลายไว้ในโฟลเดอร์แยกตอนที่เรารันเกมฮะ ช่วยให้ตอนไฟดับเนี่ย ไฟล์ Data
สำรองจะไม่ corrupt ไปด้วย ใช้รักษาชีวิตเกมจากเหตุการณ์อันตรายได้ดีฮะ
แต่ก็ต้องอย่าลืมแบ็กอัพเกมเก็บไว้ใน Flashdrive บ้างน้อ >_>/
เด๋วไวรัสเข้า สคริปต์นี้ช่วยไม่ได้นะเออ เหอๆ

โหลดสคริปต์ได้ที่นี่:
Code:
#===============================================================
# ● [XP/VX] ◦ Auto Backup ◦ □
#--------------------------------------------------------------
# ◦ by Woratana [woratana@hotmail.com]
# ◦ Thaiware RPG Maker Community
# ◦ Released on: 07/12/2008
# ◦ Version: 1.0
#--------------------------------------------------------------
# ◦ Features:
# - Automatically backup your rx/rvdata files when you run the game.
#--------------------------------------------------------------
# ◦ How to use:
# - Setup the script below,
# - You may want to run your game now to backup data files the first time.
#--------------------------------------------------------------

module WData_Backup
 
  BACKUP_WHEN_TEST = true # (true/false) Do you want to backup data files only
  # when running game through editor (When you press F12 in editor) ?
  BACKUP_REPORT = true # (true/false) Show textbox when backup process finish?
  DIRNAME = 'Backup_Data' # Name of the backup folder
  # (Script will automatically create folder if it doesn't exist)

SCRIPT = <<_SCRIPT_
    if (BACKUP_WHEN_TEST && #{defined?(Graphics.wait) ? '$TEST' : '$DEBUG'}) ||
    !BACKUP_WHEN_TEST
      time = Time.now
      Dir.mkdir(DIRNAME) unless File.directory?(DIRNAME)
      ftype = "#{defined?(Graphics.wait) ? 'rvdata' : 'rxdata'}"
      flist = Dir.glob('./Data/*.{' + ftype + '}')
      flist.each_index do |i|
        flist[i] = flist[i].split('/').last
        save_data(load_data('Data/' + flist[i]), DIRNAME + '/' + flist[i])
      end
      p('Backup Finished!: ' + (Time.now - time).to_s + ' sec') if BACKUP_REPORT
    end
_SCRIPT_

  eval(SCRIPT) unless $@
end

เครดิต วอราม่อน
boyhit
boyhit
Admin
Admin

ชื่อเล่น : เเอล
ความฝัน : ศิลปิน
จำนวนข้อความ : 1130
เครดิต : 3356
วันที่สมัคร : 09/10/2011
คะเเนนน้ำใจ : 11
เพศ : Male อายุ : 24
เหรียญรางวัล : สคริปต์ Auto Backup สำหรับทั้ง XP และ VX Medalhead2

https://raccoongame-rpg.thai-forum.net

ขึ้นไปข้างบน Go down

ขึ้นไปข้างบน

- Similar topics

 
Permissions in this forum:
คุณไม่สามารถพิมพ์ตอบ