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.

RMXP and ocx

*Looks more of a request...

ocx is a special format of library. Ruby can itself load and use any dll functions, but i´m quite sure it can´t do directly with .ocx files. If you want to use them you must find out the correct dll (and function) to load it and use; the dll should do all the work. So, by default it´s not possible. This requires a good knowledge of Win32API and Windows´s API.
 
RMXP can load it because it was made in another language that´s not Ruby (maybe C or C++). In truth a Ruby Interpreter is embedded into the program, while the main process is done by the other language. So the program can take advantage of a powerful language operating in the background while the maker uses a more friendly language to make his/er games. And if it´s loaded, i´m sure you won´t change it. It may be a hidden process of the Audio module. You can´t change nor taking anything from it.

BTW, why do you need to load .ocx files? Isn´t fmod or winamp plugin enough for you?
 
I don´t make any sense on how it could load then, i thought it was some kind of audio plugin, since you´ve said about dlls and the audio scripts came in my mind.

Well, good luck xD

BTW, how do you know that RMXP can load a 3D graphic file?
 
I´ve already answered something that may help...
Linkin_T":w1t11ver said:
ocx is a special format of library. Ruby can itself load and use any dll functions, but i´m quite sure it can´t do directly with .ocx files. If you want to use them you must find out the correct dll (and function) to load it and use; the dll should do all the work. So, by default it´s not possible. This requires a good knowledge of Win32API and Windows´s API.
So you have to research and do it yourself or wait until some crazy japanese guy do it for you. I´ve never heard soemone using 3D graphics in RMXP, EVER. Maybe you should add the GL library (a.k.a. OpenGL) into your game (Yes, Ruby has it, but not by default).

Irish what exactly are you wanting to do? Load 3D meshes and show them into a RMXP game? And if so, why? RMXP is a tool supposed to produce 2D games, and anything more than that should lead to an extreme and annoying lag.

EDIT: Your answer may be here, you just have to find it, decode it into a Ruby code and put it into your game. ^^ For that you may even use the Windows´s dlls or create your own to make the work. Just make sure to know how to use this control.
 
I remember Fuso or rgpmaker used to have a thread about getting 3D to work with Ruby and RMXP, back on .net. There was no actual script availlable for it though, it was more of a thought experiment, as I remember.

I suspect that RMXP may be able to load the information of the 3D object, but has no way to display it. You'd probably need to use OpenGL or DirectX to do that, but I'm pretty sure that Ruby and RGSS in particular do not mesh well with either of them.
 

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