Hey,
I recently got a bug report for my game that I'm very puzzled by. Was wondering if anyone had any insight into what kind of a problem would throw this "failed to create bitmap" error, which I've never seen before. The error thrown, using Hime's stacktrace, looks like this:
Message Log Test:267:in `initialize': failed to create bitmap, RGSSError
from Message Log Test:267:in `new'
from Message Log Test:267:in `create_log_contents'
from Message Log Test:386:in `refresh'
from Message Log Test:175:in `initialize'
from Message Log Test:522:in `new'
from Message Log Test:522:in `update'
from Scene_Base:14:in `main'
from SceneManager:23:in `run'
from Main:10:in `block in <main>
When I searched the "failed to create bitmap" error on the web, the only results seemed to be from a corrupted image, as the cache threw the error. In my case, however, there is no cached image being used. It just comes from this method:
Could the size of the bitmap being created be an issue for someone on a weak computer? It really should just be blank at this point, so I can't see what else might cause it.
I recently got a bug report for my game that I'm very puzzled by. Was wondering if anyone had any insight into what kind of a problem would throw this "failed to create bitmap" error, which I've never seen before. The error thrown, using Hime's stacktrace, looks like this:
Message Log Test:267:in `initialize': failed to create bitmap, RGSSError
from Message Log Test:267:in `new'
from Message Log Test:267:in `create_log_contents'
from Message Log Test:386:in `refresh'
from Message Log Test:175:in `initialize'
from Message Log Test:522:in `new'
from Message Log Test:522:in `update'
from Scene_Base:14:in `main'
from SceneManager:23:in `run'
from Main:10:in `block in <main>
When I searched the "failed to create bitmap" error on the web, the only results seemed to be from a corrupted image, as the cache threw the error. In my case, however, there is no cached image being used. It just comes from this method:
Code:
#--------------------------------------------------------------------------
# Create Log Contents
#--------------------------------------------------------------------------
def create_log_contents(size)
self.contents.dispose
self.contents = Bitmap.new(width, [height - padding * 2, size * line_height].max)
end
Could the size of the bitmap being created be an issue for someone on a weak computer? It really should just be blank at this point, so I can't see what else might cause it.