每次按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