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.

Just Pitching an idea... (Noobery)

Status
Not open for further replies.
As I was organizing my extra methods/classes I organized them in four different sets (Ruby, RGSS A, RGSS B, and Extra Utility classes)

The Ruby set contains extra methods for classes like: String, Numeric, Array, Hash, etc.

The RGSS A set contains extra methods for RGSS built-in classes (ex. Sprite, Window, Bitmap, Plane, etc.)

The RGSS B set contains extra methods for other RGSS classes (Game_Actor, Game_BattleAction, Game_Troop, etc.)

And Extra Utility Classes is just a set of utility classes (stuff like my Zoomed_Sprite, Background_Sprite, Random class, Animated Sprite, etc)

What I'm thinking of doing is allow other scripters to send me their methods/ utility classes and make a whole package, for other scripters to use, to prevent them from "reinventing the wheel" and make scripting a bit easier.

I will also document each method and class with information on how to use and also useful information such as: number of arguments, type of each argument, what it does, what it returns, etc.

my method/class count so far is
Ruby -- in total 12, not released 2, released 10
RGSS A -- in total 44, not released 27, released 17
RGSS B -- in total 18, not released 0, released 18
Classes -- in total 12, not released 2, released 10

In total I already have 88 items to docuement and organize.

If you need an example of what stuff will be included then take a look at this thread
 
the only problem is getting it known to people. That was easy with the SDK because of the problems it created.

I'm working on Tilemap class, hopefully I can do it and add it to the list :)

Edit: Good thing you posted that link, I was looking for the thread, but I forgat the name...
 
@Mr. Mo -- Yes that would be a problem, so should I make it cause problems with people's scripts to make it known :P, I'll try to figure something out

I await to see what you come up with

@everyone else Thanks for letting this drop to the second page see If I ever give you any RGSS advice again *glares at a few people*, Meh and I had created a method to reduce the lag with draw_text too bad I'm not going to share it.


lol, just kidding about the above statement, I am going to do this regardless, when I do it depends on the comments which everyone (7 people...) is in favor of "yes"

current Item count is 92
 
Maybe he does has invented it....
Since I already voted in yes, and didn't have time to post I will post now...
Maybe to make so that the people know it I think you should make so that your scripts Need that to work properly, That way people will be forced to use that... Eheheh ,ya I am bad!

Also I hope that this "If I ever give you any RGSS advice again *glares at a few people*" wasnt for me.... :( lol When I voted I didn't had time to post, and then I forgot...
 
I did something similar in my test bed. Just common methods that are used over and over again and stuff like that.


I think if it's something everyone would add to, so there's less of conflict (but more of a pain), we could name our methods a little more particular so there could be 5 versions of a draw_bar by simply adding the scripters name before the method name (seph_draw_bar).

Sounds like a good idea to me.
 
Daniel said:
Did you really make a method like that? It would be very useful to have.

Well, Actaully its more of a sidestep, it'll only call draw_text once it saves the font used, the string it drew, and the width and height of the text, and if it was called again it uses blt to draw it. I haven't extensively tested it out fully yet. The only problem I see with this though is memory usage, it has to store every bitmap drawn, but there is also a method to clear the memory. And I have another one that saves the current bitmap and if you call another method (clear_to_memory) it just clears the bitmap and then uses blt on the saved bitmap

Preview (Will not work if inserted since you'll be missing some methods)
Code:
  def draw_text_memory(*args)
    if args.size == 2
      align, rect, str = 0, *args
    elsif args.size == 3
      rect, str, align = args
    elsif args.size == 5
      rect,str,align = Rect.new(*args[0,4]), args[4], 0
    elsif args.size == 6
      rect,str,align = Rect.new(*args[0,4]), *args[4,2]
    end
    txt_rect = Rect.new(0,0,rect.width, rect.height)
    if @@text_memory.contains_key?([self.font, txt_rect, str])
      self.full_blt(rect.x, rect.y, @@text_memory.get_value([self.font, txt_rect, str]))
    else
      bitmap = Bitmap.new(rect.width, rect.height)
      bitmap.font = self.font.dup
      bitmap.draw_text(txt_rect, str, align)
      self.full_blt(rect.x, rect.y, bitmap)
      @@text_memory[[self.font.dup, txt_rect, str]] = bitmap
    end

Chaosg1 said:
Maybe he does has invented it....
Since I already voted in yes, and didn't have time to post I will post now...
Maybe to make so that the people know it I think you should make so that your scripts Need that to work properly, That way people will be forced to use that... Eheheh ,ya I am bad!

Also I hope that this "If I ever give you any RGSS advice again *glares at a few people*" wasnt for me.... :( lol When I voted I didn't had time to post, and then I forgot...

If you use any of the methods just include the whole thing in there, if its removed then you'll get a no method error for class <whatever>, non scripters shouldn't really care since they would be using it

SephirothSpawn said:
I did something similar in my test bed. Just common methods that are used over and over again and stuff like that.


I think if it's something everyone would add to, so there's less of conflict (but more of a pain), we could name our methods a little more particular so there could be 5 versions of a draw_bar by simply adding the scripters name before the method name (seph_draw_bar).

Sounds like a good idea to me.

Yes, I have already included four gradient bar methods to class Bitmap, I have already put my name before it to prevent any conflict, all part of my organization...

Selwyn said:
I quite like it. I've got a few methods and modules I could share.

Sure, but it'll have to wait until I can get things organized
 
To another scripter, who would already have known how to make such methods/modules, yes. But to a new scripter who thinks he can get away with not learning as much by using these, its not useful at all. Of course I voted Yes though. I'd add some to the bunch but I don't really make stuff like this (don't find the need.)
 
Prexus said:
To another scripter, who would already have known how to make such methods/modules, yes. But to a new scripter who thinks he can get away with not learning as much by using these, its not useful at all. Of course I voted Yes though. I'd add some to the bunch but I don't really make stuff like this (don't find the need.)

Thanks Prexus

well this topic has served its purpose

the topic for the completed project can be found here
 
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