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.

Telling between RGSS and RGSS2?

Is there a way I can use a script to check if a program is using RGSS or RGSS2? I'm just wondering, because I need to make a script compatible with both, yet have slight differences between the two. (And I don't want to just post 2 scripts) Also, does anyone know what part of the scripting dictates frame count, or if that is done by the exe itself? (As in, how many frames per second the program runs at)
 

OS

Sponsor

The frames per second can be checked using Graphics.frame_rate. For more info on Frame Rate data, check the Graphic page in the help file.

You could use File.Exist?() to see if you are using rgss102e.dll or rgss200e.dll, or use a conditional to see if the Vocab module exists (meaning RGSS2) or not (RGSS). These are the ways I would try, anyways.
 
OS":2of4xowx said:
The frames per second can be checked using Graphics.frame_rate. For more info on Frame Rate data, check the Graphic page in the help file.

You could use File.Exist?() to see if you are using rgss102e.dll or rgss200e.dll, or use a conditional to see if the Vocab module exists (meaning RGSS2) or not (RGSS). These are the ways I would try, anyways.

Actually, the most direct method seem to be the File.exist?() command, except if they have both RMXP and RMVX installed. Also, is Graphics.frame_rate called per screen frame, or script frame? (Specifically, I need the number of frames per second that scripts run at, not that the screen runs at. Also, I do know that rmxp has scripts running as 40 fps, and rmvx at 60)Anyway, Thanks for the help!

Edit: Never mind about the last question. I figured out the answer myself.
 

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