ses.push(Data_system.cursor_se.name) ses.push(Data_system.decision_se.name) ses.push(Data_system.cancel_se.name) ses.push(Data_system.buzzer_se.name) ses.push(Data_system.equip_se.name) ses.push(Data_system.shop_se.name) ses.push(Data_system.save_se.name) ses.push(Data_system.load_se.name) ses.push(Data_system.battle_start_se.name) ses.push(Data_system.escape_se.name) ses.push(Data_system.actor_collapse_se.name) ses.push(Data_system.enemy_collapse_se.name) add2list(ses, SE) ########## # GRAPHICS # ########## ############################################# #Animations animations_names = [] push_in(animations_names, Data_animations, ".animation_name") add2list(animations_names, Animations) ############################################# #Autotiles autotiles_names = [] for i in 1..Data_mapinfos.size map = load_data(sprintf("Data/Map%03d.rxdata", i)) tileset = Data_tilesets[map.tileset_id] push_in(autotiles_names, tileset.autotile_names , "") end add2list(autotiles_names, Autotiles) ############################################# #Battlebacks battlebacks_names = [] for i in 1..Data_mapinfos.size map = load_data(sprintf("Data/Map%03d.rxdata", i)) tileset = Data_tilesets[map.tileset_id] unless battlebacks_names.include?(tileset.battleback_name) battlebacks_names.push(tileset.battleback_name) end map_events(map, battlebacks_names, [204, 1, ''], [], 2) end commons_events(battlebacks_names, [204, 1, ''], [], 2) troops_events(battlebacks_names, [204, 1, ''], [], 2) add2list(battlebacks_names, Battlebacks) ############################################# #Battlers battlers = [] push_in(battlers, Data_actors, ".battler_name") push_in(battlers, Data_enemies, ".battler_name") for i in 1..Data_mapinfos.size map = load_data(sprintf("Data/Map%03d.rxdata", i)) map_events(map, battlers, [322, 3, '']) end commons_events(battlers, [322, 3, '']) troops_events(battlers, [322, 3, '']) add2list(battlers, Battlers) ############################################# #Characters characters = [] push_in(characters, Data_actors, ".character_name") for i in 1..Data_mapinfos.size map = load_data(sprintf("Data/Map%03d.rxdata", i)) for event in map.events for page in event[1].pages unless characters.include?(page.graphic.character_name) characters.push(page.graphic.character_name) end end end map_events(map, characters, [322, 1, ''], [41, 0, '']) end commons_events(characters, [322, 1, ''], [41, 0, '']) troops_events(characters, [322, 1, ''], [41, 0, '']) add2list(characters, Characters) ############################################# #Fogs fogs_names = [] for i in 1..Data_mapinfos.size map = load_data(sprintf("Data/Map%03d.rxdata", i)) tileset = Data_tilesets[map.tileset_id] unless fogs_names.include?(tileset.fog_name) fogs_names.push(tileset.fog_name) end map_events(map, fogs_names, [204, 1, ''], [], 1) end commons_events(fogs_names, [204, 1, ''], [], 1) troops_events(fogs_names, [204, 1, ''], [], 1) add2list(fogs_names, Fogs) ############################################# #Gameovers gameover = [Data_system.gameover_name] add2list(gameover, Gameovers) ############################################# #Icons icons = [] push_in(icons, Data_skills, ".icon_name") push_in(icons, Data_items, ".icon_name") push_in(icons, Data_weapons, ".icon_name") push_in(icons, Data_armors, ".icon_name") add2list(icons, Icons) ############################################# #Panoramas panoramas_names = [] for i in 1..Data_mapinfos.size map = load_data(sprintf("Data/Map%03d.rxdata", i)) tileset = Data_tilesets[map.tileset_id] unless panoramas_names.include?(tileset.panorama_name) panoramas_names.push(tileset.panorama_name) end map_events(map, panoramas_names, [204, 1, ''], [], 0) end commons_events(panoramas_names, [204, 1, ''], [], 0) troops_events(panoramas_names, [204, 1, ''], [], 0) add2list(panoramas_names, Panoramas) ############################################# #Tilesets tilesets_names = [] for i in 1..Data_mapinfos.size map = load_data(sprintf("Data/Map%03d.rxdata", i)) tileset = Data_tilesets[map.tileset_id] unless tilesets_names.include?(tileset.tileset_name) tilesets_names.push(tileset.tileset_name) end end add2list(tilesets_names, Tilesets) ############################################# #Titles title = [Data_system.title_name] add2list(title, Titles) ############################################# #Transitions transitions = [] transitions.push(Data_system.battle_transition) for i in 1..Data_mapinfos.size map = load_data(sprintf("Data/Map%03d.rxdata", i)) map_events(map, transitions, [222, 0, '']) end commons_events(transitions, [222, 0, '']) troops_events(transitions, [222, 0, '']) add2list(transitions, Transitions) ############################################# #Windowskins windowskins = [] windowskins.push(Data_system.windowskin_name) for i in 1..Data_mapinfos.size map = load_data(sprintf("Data/Map%03d.rxdata", i)) map_events(map, windowskins, [131, 0, '']) end commons_events(windowskins, [131, 0, '']) troops_events(windowskins, [131, 0, '']) add2list(windowskins, Windowskins) #delete match file between RTP and project #calculate the list data size for i in 0...@list.size dest = @list[i].dup dest.sub!("#{RGSSRTP_PATH}",'') if FileTest.exist?( ".#{dest}" ) @list[i] = nil else @files_size += FileTest.size(@list[i]) end end #delete nil, empty and repeated from list @list.delete('') @list.compact! @list.uniq! return @list end endclass Window_Progress < Window_Base def initialize(total_files_size) super(320-125, 240-60, 250, 110) self.contents = Bitmap.new(width - 32, height - 32) self.contents.font.name = 'Arial' self.contents.font.size = 20 self.opacity = 0 @total_files_size = total_files_size refresh() end def refresh(progress_string='', progress_files_size=0) return if @total_files_size == 0 self.contents.clear self.contents.draw_text(4, 15, 220, 24, progress_string) self.contents.fill_rect(5,0,202,10,Color.new(200,200,200,200)) self.contents.fill_rect(6,1,progress_files_size*200/@total_files_size,8,Color.new(0,0,200,200)) endendrtp_extract = RTP_Extractor.newprint 'start'flist = rtp_extract.extract_list()total_files_size = rtp_extract.files_sizeprogress_files_size = 0$game_system = load_data("Data/System.rxdata")window_progress = Window_Progress.new(total_files_size)$game_system = niln_files = 0flog = File.new('extract_log.txt', 'a')flog.puts('start...')for src in flist dest = src.dup progress_string = 'copying ' + File.basename(dest) file_size