Bigace360 38 Report post Posted February 18, 2012 (edited) How do you extract the hidden default script in RMXP, I can find all the RPG scripts. But I can't find Bitmap or Font, and I want to alter something. Edited February 18, 2012 by bigace Share this post Link to post Share on other sites
0 Moonpearl 32 Report post Posted February 18, 2012 You can't. They aren't coded in Ruby but in C. All such RGSS classes are featured in the dlls. However you can alter them like regular classes, only you'll have to figure out by yourself what the actual code should be like. Share this post Link to post Share on other sites
0 Bigace360 38 Report post Posted February 18, 2012 Okay that makes sense, that explains on why I can't find anything. It's in C language and not in the ruby syntax. Okay more digging when I get home. Share this post Link to post Share on other sites
0 kellessdee 48 Report post Posted February 19, 2012 If you want to change the functionality of any of the classes featured in the RGSS library, you're much better off altering the classes through inheritance or some kind of wrapper class. The most you'll be able to do to truly access the underlying classes in the RGSS dll would be to disassemble the library (which would only be useful if you know whatever assembler language it gives you) or to attempt to interface with the library through Ruby's win32api classes (which I don't really know how well that would work) Do you mind me asking what you are trying to do exactly? Share this post Link to post Share on other sites
0 Bigace360 38 Report post Posted February 19, 2012 I wanted to rewrite some of the core scripts for my game and release on my Warrior of Add-on script. Share this post Link to post Share on other sites
0 ForeverZer0 44 Report post Posted February 19, 2012 You don't need to use Win32API to alter the C classes. They are are wrapped into the Ruby runtime, and as such can be modified, aliased, and overwritten the same as any other script. As far as Ruby is concerned, they are scripts, and there is nothing special about them. The only difference is the functions they perform are executed in a lower level language, so pretty much any alteration you make is going to cause a loss in performance, since no Ruby function is going to outperform its C equivalent. Take a look at any custom resolution script out there, I guarantee they will re-write both the Tilemap and Plane classes, which are both wrapped C classes by default. Share this post Link to post Share on other sites
0 kellessdee 48 Report post Posted February 19, 2012 Ah, yea, I didn't mean to alter through win32api (as you cannot alter code with it), I meant in the terms that it provides a direct interface with libraries and thus, the ability to extract certain functions...which since you still don't know HOW the functions work, would be quite useless in that state..and it would be probably really hard to determine those functions' signatures as well. Huh, as an afterthought, I dunno why I even mentioned that. But yea, in conjunction with what fZer0 said, you should only mess with the core RGSS classes if it's REALLY worth it. i.e. the loss of performance is worth the gain in functionality. OR you are simply extending that class to other stuff (which in that case, you should be inheriting the core class, and adding the functionality in the child. Also, you should look into what you are trying to do (although, you may have already)--you may be able to find that someone already has come up with a solution or something similar to what you are trying to do. Sometimes even, the functionality may already exist, it just requires a bit of tweaking to use it. From personal experience of trying to hack at the core classes/functionality, I can say I've wasted A LOT of time trying to do something, that had a much, much simpler solution or was already built-in. Share this post Link to post Share on other sites
How do you extract the hidden default script in RMXP, I can find all the RPG scripts. But I can't find Bitmap or Font, and I want to alter something.
Edited by bigaceShare this post
Link to post
Share on other sites