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.

How do i connect my RMXP in a database like Access??

Hey guys, i read about to use a Win32Api declaration in the RMXP. Do you guys know if it's possible to connect in a database??

Thanx.
 
It should be, however Win32API is generally used for mouse and keyboard input. It should be possible if you have a rb file that can read the database and call that rb file from RMXP. That's how I do it for SQL. Use a rb file and call it from RMXP to read from the SQL database.
 
But in the rb file you need to call Win32API, probably. Ruby is not capable to do it y default, and so the need of using Win32API or requiring new scripts.

BTW João Neto (xD), you could check the Netplay project, i think they´ve implemented a MySQL connection with RMXP, or it´s coming on in the next Netplay. I´m not sure though, the site is down and Me/Mr.Mo haven´t told us anything about ^^
 
I picture that if I bring up only one DLL with the connections & functions , I could perform this impossibility actual. I go study a little more above the working of the "Win32API", to see if with oneself that. Regarding Netplay , I am expecting also , as goes be the realization of all be able act a part a small doe Online what really it works.
 
Linkin_T;146804 said:
But in the rb file you need to call Win32API, probably. Ruby is not capable to do it y default, and so the need of using Win32API or requiring new scripts.

BTW João Neto (xD), you could check the Netplay project, i think they´ve implemented a MySQL connection with RMXP, or it´s coming on in the next Netplay. I´m not sure though, the site is down and Me/Mr.Mo haven´t told us anything about ^^

Its coming in the next version and the site is up :p. It easy. I'll post the needed code when I get home.
 
Ruby Gems is a Package Manager for Ruby, and the libraries you download (the packages) are called gems. By default it comes with several Windows Pack installations, and if not you may download it and install. It´s cool, you can open the command shell and download new libraries from there just because of gems! xD It also adds some information about all the components you have installed in Ruby. But i guess the default installation still comes with the Socket class, as well as with many others like yaml, tcl/tk and more...
 
Yes. The default coms with alot of socket type classes. You could look the folder up in your ruby directory. But yo will need the gem if you want 5.0 MySQL.

Either way, what are you trying to do, and the topic should be resolved now as the answer's yes.
 

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