Project1

标题: 脚本'Cache'的第79发生了RGSSError,failed to create bitmap [打印本页]

作者: swt4399    时间: 2013-6-24 16:15
标题: 脚本'Cache'的第79发生了RGSSError,failed to create bitmap
       每次按ESC键就跳出“脚本'Cache'的第79发生了RGSSError,failed to create bitmap”,没修改过脚本不知道怎么会出错,
之前在开场的自动执行最前面插入了禁止存档,在外面加了定点存档,就这样了,后来把禁止存档删了还是出错我就不懂了。
def self.load_bitmap(folder_name, filename, hue = 0)
    @Cache = {} if @cache == nil
    path = folder_name + filename
    if not @cache.include?(path) or @cache[path].disposed?
      if filename.empty?
        @cache[path] = Bitmap.new(32, 32)
      else
          @cache[path] = Bitmap.new(path)#第79行
      end   
    end
    if hue == 0
      return @cache[path]
    else
      key = [path, hue]
      if not @cache.include?(key) or @cache[key].disposed?
        @cache[key] = @cache[path].clone
        @cache[key].hue_change(hue)
      end
      return @cache[key]
    end
  end
end
作者: gaofei677    时间: 2013-6-24 20:56
楼主开一个新工程试试有没有这个问题?
作者: swt4399    时间: 2013-6-25 07:20
新建工程没用,我重装了一下RGVX就好了。




欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1