- Joined
- May 20, 2015
- Messages
- 11
- Reaction score
- 0
- First Language
- English
- Primarily Uses
I am creating my own online functionality. While I would like it to be real-time (or near real time), I can't think of a way to do that with rpg maker. I can make it async and even use sockets but real time still seems impossible. I even thought of making a companion application that would work in real time but a problem still exists.
The only way I have seen so far to retrieve online data is to manually make a request from within the rpg maker scripts. I could make this request fire off every second but that will most likely cause severe performance issues. So far all I can think of to do is make the request every minute or so but that defeats the purpose of real time.
I am wondering if there would be any way to implement sort of a 'push' functionality where I don't have manually make the request. I know this can't be done with dlls. Does anyone know of a way to do this in ruby? There is also a LoadSo script updated by FenixFyreX that allows you to load ruby extensions. I haven't looked into that much but can anyone think of a way to do this using that?
I have a usage scenario below. I would appreciate any ideas, simple or complex. No code is necessary, im mainly just looking for design ideas about this.
Example: In a battle system, normally I would just have turns last a certain amount of time. Regardless of whether or not you completed you turn you would have to wait until the time is up. What I would like to have happen, is that when someone finishes their turn, it would send sort of a 'push notification' to the server/other player that their turn is up. The problem I would like ideas about is receiving that push automatically.
The only way I have seen so far to retrieve online data is to manually make a request from within the rpg maker scripts. I could make this request fire off every second but that will most likely cause severe performance issues. So far all I can think of to do is make the request every minute or so but that defeats the purpose of real time.
I am wondering if there would be any way to implement sort of a 'push' functionality where I don't have manually make the request. I know this can't be done with dlls. Does anyone know of a way to do this in ruby? There is also a LoadSo script updated by FenixFyreX that allows you to load ruby extensions. I haven't looked into that much but can anyone think of a way to do this using that?
I have a usage scenario below. I would appreciate any ideas, simple or complex. No code is necessary, im mainly just looking for design ideas about this.
Example: In a battle system, normally I would just have turns last a certain amount of time. Regardless of whether or not you completed you turn you would have to wait until the time is up. What I would like to have happen, is that when someone finishes their turn, it would send sort of a 'push notification' to the server/other player that their turn is up. The problem I would like ideas about is receiving that push automatically.

