Closed ghost closed 3 years ago
It's always possible to use the Win32API stub made by @Ancurio to emulate certain APIs. In your case you could include the Ruby standard library and write a binding between the Ruby socket API and Win32API stub. Or you could go more intrusive by writing two different implementations for mkxp and stock RGSS engine. Automatically switching implementations is possible by detecting the presence of MKXP
module.
@klebersonromero90 Even if I tried, Win32API is deprecated since Ruby 1.9 (and mkxp builds with much newer versions). Doesn't ruby have some Socket classes built in? Not sure why you would need win32api for online stuff.
I did not get to test but create an input keyboard without win32api is a bit tense
create an input keyboard without win32api is a bit tense
Actually MKXP exposes keyboard inputs, so Win32API is still not required.
How to use sockets ?
@klebersonromero90 My bad, turns out the Socket is part of the standard library and not core Ruby, so it's not compiled into mkxp. Can't think of a solution at the moment that wouldn't require a custom build.
Shouldn't this be implemented anyway, so as to complete the mission statement of being able to run games created with the RPG Maker software natively without changing a single file?
@frozenLake Implementing Win32API is not practical because:
So tl;dr why bother?
I know the project is meant to be multiplatform but does it not compile a version like win32api? is a super required feature that we use on windows primarily to make systems online.
it would be possible?