I'm trying to figure out exactly how i can write my XP scripts. XP uses RGSS right? What version of ruby does RGSS use?
What version of ruby does RMXP use?
Learning Ruby and RGSSxI've moved this thread to Learning Ruby and RGSSx. Please be sure to post your threads in the correct forum next time. Thank you.
And just as an additional info: RGSS is a variant of Ruby, which means that it is not identical to any direct version as it also removes part of the Ruby language from the system.
You can only ask which version of Ruby it is based on, it will not use everything from that version.
For that reason most people learning to script don't bother to learn a specific Ruby version, but only the general syntax and then move to RGSS.
And just as an additional info: RGSS is a variant of Ruby, which means that it is not identical to any direct version as it also removes part of the Ruby language from the system.
You can only ask which version of Ruby it is based on, it will not use everything from that version.
For that reason most people learning to script don't bother to learn a specific Ruby version, but only the general syntax and then move to RGSS.
Okay what version of ruby is RGSS based upon? Also, was the Marshal module removed from that version of ruby when it was converted into RGSS?
You can use 'RUBY_VERSION' (without quotes) to get the Ruby version. For RMXP, it will return '1.8.1' as a string.
The Marshal module is still very much a part of RGSS. Take a look at saving and loading; it uses Marshal to dump the game objects to binary files.
The Marshal module is still very much a part of RGSS. Take a look at saving and loading; it uses Marshal to dump the game objects to binary files.
Original thread: https://forums.rpgmakerweb.com/threads/what-version-of-ruby-does-rmxp-use.54080/