Save-Point

Full Version: Save-Point
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Board Message
Sorry, you do not have permission to access this resource.
Save-Point - Bitmap Class Rewrite

Save-Point

Full Version: Bitmap Class Rewrite
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
As you may know I'm working on a sorta pure ruby RPG XP type thing. It works well so far, goes through and gets to main.rb, but once it actually starts to try to work it hangs up on the bitmap class.

Would that a talented scripter could rewrite it... I have all its methods listed, thanks to a script Kore pointed me at.


Code:
Instance variables:
Methods:
    blt
    clear
    dispose
    disposed?
    draw_text
    fill_rect
    font
    font=
    get_pixel
    height
    hue_change
    rect
    set_pixel
    stretch_blt
    text_size
    width
Public Methods:
    blt
    clear
    dispose
    disposed?
    draw_text
    fill_rect
    font
    font=
    get_pixel
    height
    hue_change
    rect
    set_pixel
    stretch_blt
    text_size
    width
Private Methods:
Protected Methods:
Singleton Methods:
Here is SDL-based Bitmap rewrite, that I found in OpenRGSS:

Content Hidden
Yes, I am aware of this one. Problem is it gives me an error
Code:
private method `load' called for SDL::Surface:Class (NoMethodError)
when I attempt to run my game with it. I think I'm really close to having this work, it gets as far as attempting to load the title screen but gets stuck on the above error.
Did you remember to include the SDL library?
Do not close this work. You need Ruby::SDL. I copy the Bitmap class from OpenRGSS. You need RubySDL installed. Use 'gem install rubysdl' and 'gem install openrgss' to install open-source RGSS implementation propertly.
(04-09-2013, 10:45 PM)Narzew Wrote: [ -> ]Do not close this work. You need Ruby::SDL. I copy the Bitmap class from OpenRGSS. You need RubySDL installed. Use 'gem install rubysdl' and 'gem install openrgss' to install open-source RGSS implementation propertly.
Yes, and I have both gems installed already (where do you think I got bitmap.rb?) and I've tried just about every option as far as including sdl and rubysdl.

What makes this more frustrating is I'm certain I almost have it right; It gives me this error when it tries to load the title screen. I almost have the default rmxp game running as pure ruby.