kwan0789 发表于 2010-7-19 01:37:14

遊戲運行不了..

又有新問題
開始遊戲都沒問題,
按下開始遊戲去到第1個場景就有這些警告彈出來,
又是運行不到了

不能上傳圖啊~只好打出來了.. :

script 'cache'line 79: RGSSError occurred.
falled 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.disposed?
      if filename.empty?
      @cache = Bitmap.new(32, 32)
      else
[*line 79*-->]      @cache = Bitmap.new(path)
      end
    end
    if hue == 0
      return @cache
    else
      key =
      if not @cache.include?(key) or @cache.disposed?
      @cache = @cache.clone
      @cache.hue_change(hue)
      end
      return @cache
    end
end
end

secondsen 发表于 2010-7-19 09:07:02

你的图片尺寸是多少。。是不是什么图片太大了??

kwan0789 发表于 2010-7-19 11:54:27

-0-"..發現原來真的是圖片的問題..
不知為何圖出錯啦,
現在改改那張圖應該沒問題的了~
害我先前還把整好了的xx腳步變回預設那樣

secondsen 发表于 2010-7-19 12:37:52

图片太大,Bitmap就会报错
页: [1]
查看完整版本: 遊戲運行不了..