Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

[Resolved] Non editable hidden classes

  • Thread starter bedi nik bzez emak
  • Start date
Status
Not open for further replies.
Well, there´s no "hidden" in fact. But, i guess you´re talking about the built-in classes right? Those ones are implemented inside the Ruby Interpreter, probably written in C so you can´t change them without recompiling RGSS (impossible thing :D) or overwriting them through scripts.

Here is the list with the main ones:
  • Bitmap
  • Color
  • Font
  • Plane
  • Rect
  • Sprite
  • Table
  • Tilemap
  • Tone
  • Viewport
  • Window


BTW, any class can be completely rewritten. It´s one of the best things of Ruby. Languages like C++ would not allow  this kind of redefinition.
 

poccil

Sponsor

Those are the only ones.  You can get a list of all methods of Graphics using the code:
Code:
module Graphics
  class << self
    p self.instance_methods-Module.instance_methods
  end
end
You can also replace Graphics with Input (or any module name) as well.

--- I was too late... ---
 

poccil

Sponsor

Perhaps the only low-level classes in RGSS are Graphics, Bitmap, Sprite, and Viewport, and probably Rect, Color, and Tone.  All other classes can be replaced completely, as I, for example,
have done with Window and Tilemap.

By the way, how did you manage to rewrite the Audio module?  Supposedly that module has semantic idiosyncrasies due to the fact that it uses Direct Sound, especially in how it plays BGM and ME.
 
People keep making hard changes on RMXP and all... Why not leave RMXP at all with all its limitations and simply make a new engine and embed it into a Ruby interpreter? I know a lot of people here have enough knowledge to do so, like *maybe* you, Arbiter... After the engine is done, making the Editor will be fairly easy :D Also, if done in Ruby, keeping compatibility with RMXP won´t be so difficult at all...
 
Status
Not open for further replies.

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top