| 
 
| 赞 | 2 |  
| VIP | 10 |  
| 好人卡 | 2 |  
| 积分 | 1 |  
| 经验 | 132388 |  
| 最后登录 | 2016-5-9 |  
| 在线时间 | 34 小时 |  
 Lv1.梦旅人 冰王子 
	梦石0 星屑50 在线时间34 小时注册时间2008-1-27帖子1875 | 
| 小小的修改一下 复制代码module OUT_TXT
  
 
 def self.start
old = ["Game_Temp","Game_System","Game_Switches","Game_Variables","Game_SelfSwitches",
"Game_Screen","Game_Picture","Game_Battler 1","Game_Battler 2","Game_Battler 3",
"Game_BattleAction","Game_Actor","Game_Enemy","Game_Actors","Game_Party",
"Game_Troop","Game_Map","Game_CommonEvent","Game_Character 1","Game_Character 2",
"Game_Character 3","Game_Event","Game_Player","Sprite_Character","Sprite_Battler",
"Sprite_Picture","Sprite_Timer","Spriteset_Map","Spriteset_Battle","Window_Base",
"Window_Selectable","Window_Command","Window_Help","Window_Gold","Window_PlayTime",
"Window_Steps","Window_MenuStatus","Window_Item","Window_Skill","Window_SkillStatus",
"Window_Target","Window_EquipLeft","Window_EquipRight","Window_EquipItem","Window_Status",
"Window_SaveFile","Window_ShopCommand","Window_ShopBuy","Window_ShopSell","Window_ShopNumber",
"Window_ShopStatus","Window_NameEdit","Window_NameInput","Window_InputNumber","Window_Message",
"Window_PartyCommand","Window_BattleStatus","Window_BattleResult","Window_DebugLeft","Window_DebugRight",
"Arrow_Base","Arrow_Enemy","Arrow_Actor","Interpreter 1","Interpreter 2",
"Interpreter 3","Interpreter 4","Interpreter 5","Interpreter 6","Interpreter 7",
"Scene_Title","Scene_Map","Scene_Menu","Scene_Item","Scene_Skill",
"Scene_Equip","Scene_Status","Scene_File","Scene_Save","Scene_Load",
"Scene_End","Scene_Battle 1","Scene_Battle 2","Scene_Battle 3","Scene_Battle 4",
"Scene_Shop","Scene_Name","Scene_Gameover","Scene_Debug","Main"]
 
 # 建立目录
 
 @save_path = Dir.pwd
 
 begin
   
 Dir.mkdir("out_txt")
 
 rescue
 
 end
 
 scripts = load_data("Data/Scripts.rxdata")
 
 Dir.chdir(@save_path) 
 
 Dir.chdir("out_txt")
 
 for i in 0...scripts.size
   
   name = scripts[i][1]
   if old.include?(name)
    next
   end
   
   # 解码
   
   code = Zlib::Inflate.inflate(scripts[i][2])
   
   if code.to_s == ""
     next
   end
   name = "("+i.to_s+")" + name
   file = File.open(name + ".txt","wb")
   
   file.write code
   
   file.close
 end
 
 Dir.chdir(@save_path)
 
 p "完毕,全部输出到目录out_txt"
 
 exit
 end
end 
OUT_TXT.start
 
 含有文件的非法字符也不行,例如*
 。。。。。。我又脑残了,说这种废话。。。。
 
 那什么,西西,?在文件名中算非法字符。。。。
 | 
 |