您现在看到的是 66RPG.com 的资源列表,若这些对您有帮助,
希望您以充值论坛VIP点数的方式为我们捐款,
您的捐款将用于本站的三台服务器托管费,以及网通100M带宽的租金

66RPG充值页面 66RPG充值页面

最近更新记录

  • 2012-02-14 : 新增两个音乐素材
  • 2012-02-14 : 新增一个游戏资源
  • 2012-02-10 : 新增3个素材资源
  • 2012-02-09 : 新增/更新16个资源

66RPG 站内搜索

精确(推荐) 全文

本站收集内容是为了便于让游戏制作爱好者互相学习与交流,所有内容的版权与著作权均归原作者/公司所有。如进行有可能引起纠纷的使用,建议您先与原作方沟通。
容错脚本第3版
更新:2012-01-27 10:16:33 | 点击量:517
容错脚本第3版
脚本作者:轮回者
版本更新:第3版
适用版本:RPG Maker XP
容错脚本,减少游戏时错误提示,极不推荐

脚本内容

#==============================================================================
# ■ 容错脚本第3版(070816修订)                                   BY 轮回者
#------------------------------------------------------------------------------
#  本脚本基于星大叔的容错脚本第2版,区别只是“下手”的地方不同而已。
#  说明请参看星大叔的容错脚本第2版。
#------------------------------------------------------------------------------
#  07.08.16
#     修正了按下F12重启后的错误
#     附,出错原因:重启后RMXP封装的类没有重置
#==============================================================================
begin
  result = Graphics::Transition.nil?
rescue
  result = true
end
if result
  
  $need_file_bitmap = []
  if FileTest.exist?("log_bitmap.txt") 
    f = File.open("./log_bitmap.txt","r")
    $need_file_bitmap = f.read.split(/\n/)
    f.close
  end
  module Graphics
    Transition = method("transition")
    def self.transition(*arg)
      begin
        Transition.call(*arg)
      rescue Errno::ENOENT
        ary=[*arg]
        filename=ary[1]
        unless $need_file_bitmap.include?(filename)
          $need_file_bitmap.push(filename) 
          f = File.open("./log_bitmap.txt","a")
          f.write(filename + "\n")
          f.close
        end
        Transition.call(ary[0])
      end
    end
  end
  class Bitmap < Object
    alias ini_Fx initialize
     
    def initialize(*args)
      begin
        ini_Fx(*args)
        return
      rescue Errno::ENOENT
        filename=[*args][0]
        unless $need_file_bitmap.include?(filename)
          $need_file_bitmap.push(filename) 
          f = File.open("./log_bitmap.txt","a")
          f.write(filename + "\n")
          f.close
        end
        ini_Fx(32,32)
      end 
    end
  end
  $need_file_audio = []
  if FileTest.exist?("log_audio.txt") 
    f = File.open("./log_audio.txt","r")
    $need_file_audio = f.read.split(/\n/)
    f.close
  end
  
  module Audio
    Me_play = method("me_play")
    def self.me_play(*arg)
      begin
        Me_play.call(*arg)
      rescue Errno::ENOENT
        filename=[*arg][0]
        unless $need_file_audio.include?(filename)
          $need_file_audio.push(filename) 
          f = File.open("./log_audio.txt","a")
          f.write(filename + "\n")
          f.close
        end
        me_stop
      end
    end
    Bgm_play = method("bgm_play")
    def self.bgm_play(*arg)
      begin
        Bgm_play.call(*arg)
      rescue Errno::ENOENT
        filename=[*arg][0]
        unless $need_file_audio.include?(filename)
          $need_file_audio.push(filename) 
          f = File.open("./log_audio.txt","a")
          f.write(filename + "\n")
          f.close
        end
        bgm_stop
      end
    end
    Se_play = method("se_play")
    def self.se_play(*arg)
      begin
        Se_play.call(*arg)
      rescue Errno::ENOENT
        filename=[*arg][0]
        unless $need_file_audio.include?(filename)
          $need_file_audio.push(filename) 
          f = File.open("./log_audio.txt","a")
          f.write(filename + "\n")
          f.close
        end
        se_stop
      end
    end
    Bgs_play = method("bgs_play")
    def self.bgs_play(*arg)
      begin
        Bgs_play.call(*arg)
      rescue Errno::ENOENT
        filename=[*arg][0]
        unless $need_file_audio.include?(filename)
          $need_file_audio.push(filename) 
          f = File.open("./log_audio.txt","a")
          f.write(filename + "\n")
          f.close
        end
        bgs_stop
      end
    end
  end
end

搜到一些相关内容,看看有没有有用的:

素材 : 《炼金术士梅露露~亚兰德的炼金..教程 : 显示ARPG用的窗口教程 : 新人入门录像1 初识RMXP游戏 : 赠予新手们的修改脚本的教程教程 : 大地图制作教程教程 : KKME整合系统教程 : 2种敌人战斗新的死法- -||..教程 : 人物能力状态图的多边形网状绘制教程 : 美化的动态选项窗口游戏 : 《OZ大乱斗:梦想与传说的延续..教程 : PS去行走图底色教程教程 : 日夜控制系统完美版教程 : 神秘羊皮纸教程 : RM反沉迷系统教程 : 动态选项光标教程 : 用流星当板擦,擦出Title标..教程 : 数据包的制作、加密以及解压运行教程 : 物品技能介绍加强(多行显示)教程 : ikki的敌人等级设定教程教程 : 显示对话人物头像教程 : 截图+档位扩展50+存档提示+..教程 : 使用自带字体[功能完善]教程 : fuki对话框(又名呼出对话框..教程 : RMXP在游戏运行中制作事件教程 : 行走图横版战斗-改进版教程 : 导出工程中全部对话文字教程 : 线索仓库增强版教程 : 更改游戏分辨率,简化版教程 : 给每个角色制作攻击动画(不使用..教程 : 完美输入法最后修正版

没找到你想要的?可以使用搜索功能 ↓

66RPG 站内搜索

精确(推荐) 全文

评论啦