woratana
Member-
Content Count
6 -
Joined
-
Last visited
Content Type
Profiles
Forums
Blogs
Downloads
Calendar
Gallery
Everything posted by woratana
-
Author: woratana Version: 1.0 Release Date: 07/12/2008 Introduction This script will automatically backup your rx/rvdata files each time you run the game. Compatible with both RMXP and RMVX! Screenshots The Script #=============================================================== # ? [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
-
I'm glad you like it~^^ Feel free to upload it to the front page, since I will not post this somewhere else for sometimes.
-
Sorry for double post, here is the script >_>" #=============================================================== # ● [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 I haven't release it anywhere else yet.
-
My friends came to this problem many times. Fortunately, it seems like map files are still working~^^ I have never got this problem myself though, since I'm using laptop. I will script data files backup script and post it within day or two~^^ It will only backup rx/rvdata files because this will save space and I'm not sure if resources would disappear either.
-
It's able to do in VX because there is built-in method to snap screenshot in module Graphics. But XP doesn't has that. :( So you have to come up with a way to snap game's screen in XP first. >_>"
-
This sounds really good, RMXPirate Thanks for making this :)