设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索

fuki对话框错误

查看数: 2911 | 评论数: 4 | 收藏 0
关灯 | 提示:支持键盘翻页<-左 右->
    组图打开中,请稍候......
发布时间: 2012-5-9 09:56

正文摘要:

本帖最后由 summer依恋 于 2012-6-5 13:46 编辑 这是原帖:http://rpg.blue/thread-230615-1-3.html eve592370698的fuki脚本,但和我的脚本放到一起会错误,就是下图的四个 - - 要求整合后其它脚本不失效。 问题 ...

回复

chd120 发表于 2012-6-5 13:29:32
LZ还放了哪些脚本?


‘‘──chd120于2012-6-5 13:30补充以下内容:

有些脚本会和其他脚本冲突,比如AWRP伤害显示和地图显示事件名
’’


‘‘──chd120于2012-6-5 13:44补充以下内容:

我发誓LZ你绝对没关闭这个帖子
’’

点评

唔,帖子怎么又起来了,不是关闭了么 = =  发表于 2012-6-5 13:42
LOVE丶莫颜 发表于 2012-5-11 12:14:38
summer依恋 发表于 2012-5-11 08:46
谢谢!
脚本里面有“容错脚本第3版”了 = =

是吗,那等别人来解决吧,我没办法了。
summer依恋 发表于 2012-5-11 08:46:11
LOVE丶莫颜 发表于 2012-5-10 22:38
试着用用”容错脚本第3版“可能会有用处。

#========================================================== ...

谢谢!
脚本里面有“容错脚本第3版”了 = =
LOVE丶莫颜 发表于 2012-5-10 22:38:33
试着用用”容错脚本第3版“可能会有用处。

#==============================================================================
# ■ 容错脚本第3版                                              BY 轮回者
#------------------------------------------------------------------------------
#  本脚本基于星大叔的容错脚本第2版,区别只是“下手”的地方不同而已。
#  说明请参看星大叔的容错脚本第2版。
#==============================================================================

$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 initialize
  def initialize(*arg)
    begin
      ini(*arg)
    rescue Errno::ENOENT
      filename=[*arg][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(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
拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2025-2-28 00:57

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表