RMMV's JS is enough to make it online?

I want to explain to a friend about RMMV in its possibility to be online. Now note that I am not, in particular an expert programmer, but rather a maverick. I just have a question about this undying issue of being RPG Maker being online. Now that MV is written in JavaScript, we know that there are bigger chances for it to be online, in fact we can see games being uploaded in github or anything that plays the game.

But my question is, what are the exact things a person needs in order to make an online game in RMMV? What are the things he or she needs to set up, or have in his / her project so it becomes a legit "online game"?

Does it need this json? PHP? etc.
Well, that depends on what you consider to be an online game.


If someone can play it in their browser...I consider it to be an online game.


If it requires internet connection to play the game...I consider it an online game.


It definitely makes XHR requests to some server in order to download files to the client.
Ahh, yes, I am talking about the ones where you login to somewhere and fight with other people or play with other people online, kinda like chat with them and so. You mentioned Client and Server, and I would like to know more. A friend of mine on another forums (vxace.net) told me that Server is the ones that the administrators or game owners use to administer the game, while the client is the ones that the users use in order to get the properties and files from the server necessary to play the game.

What are the things a game creator needs in order to make a game where it needs all the communication or interaction with other players online?
For a simple webservice, you'd at least need some PHP, Perl or Java (or a lot of other languages, but those are the ones i have the most experience with).
For a simple webservice, you'd at least need some PHP, Perl or Java (or a lot of other languages, but those are the ones i have the most experience with).
The PHP has something to do with the game's database, correct?
@Milena

RMMV's database?

No.

Database where you can store data online?

It can.

For example, this is code I used to login users externally :

Code:
<?php require 'core.inc.php';$result = mysql_fetch_array(zahtev("SELECT * FROM `users` WHERE `email`='".$_GET['username']."' AND `password`='".md5($_GET['password'])."'", 0));echo $result['name']."///".$result['surname']."///".$result['rank']."///".$result['description'];?>
(zahtev() means query() on Serbian and it's querying the database)

Note that PHP must run on a webserver to complete these tasks

Then, I sent requests to that file, and it returned data in format Name///Username///Rank///Description.

You can send requests to files with XMLHttpReqests like this :
Code:
req = new XMLHttpRequest();req.onreadystatechange = function(){ if (req.readyState == 4 && req.status == 200)alert(responseText.split("///")[0]; }req.open("GET", "http://yourwebsite.com/pathofyourphpfilethatlogins.php?username=" + username + "&password=" + password, true); // true means that request is asynchronous, otherwise your program will// block until you receive the data. And GET can also be POST, but then you would change $_GET to $_POST in PHP file.req.send();

This will alert name of user that entered his username and password.

 

But if you want to make an MMO, this is definitely not a way. Because you really don't want to make an MMO
Ahh this is such a good read. I'm again to learn new things with it. I was imagining a simpler game though, where there's just some chatbox below my MV game so we can chat with other people playing the game. It gives me that thought that I'm not alone playing it.
Ahh this is such a good read. I'm again to learn new things with it. I was imagining a simpler game though, where there's just some chatbox below my MV game so we can chat with other people playing the game. It gives me that thought that I'm not alone playing it.
If you just need a chatbox, you could literally just run a server that does something like

while true listen for requests if someone says something send it to everyone, or send it to a specific personAnd on the player's end, they would just have something running in the background that checks for messages.I don't know what would be the most efficient way to implement it (polling doesn't seem efficient), but all you need is a single script running on a server just listening for requests and handling them.

You would probably need to add some extra code to handle things like other players "logging in" to the game, which doesn't even require an authentication system. You can just take their username and store it in a list somewhere.

You could start by making an account at heroku or google cloud or somewhere to have a server running if you don't already have your own web host available that can have long-running tasks without getting killed by your host.
So if you look at DataManager and how things are saved and load, you can pass that information via ajax to a api end route that then saves that information to the database. 
I believe youre talking about multiplayer online game, morpg or mmorpg.

If that is the case, you need a server and a database to store user information and game data.

The server can be written in any programming language, JS, Java, Php, or even Ruby.

The last thing you need to make your game client communicate with the server. Javascript comes with technology call Ajax which manipulate http protocol or websocket to communicate with server via request and response.

For example when you log in a game, your game client sends request to the server with your id and password. The server then process request by take the information you supplied and verify against the information in data base then send response back to you either reject message or allow you go to next screen.

If I am not busy I will look into Node JS and make multiplayer plug in for MV because that is one of most requested plugins. Unfortunately, I have no free time 🙁
Node JS would work perfectly fine to hook into. How ever you would still need a server and some kind of API end point
Hello. Good day. I'm currently making a game project using RPG Maker VX. Is it possible to make my game online? I've only tried it using network based. (Using the school's network port as my url.) And I need some reasons why in your point. x: 


Btw, I'm using Vampyr Telam Ludus to start the server.


I need your opinion since I'll be taking this post/screenshot an evidence that'll prove to my panelist that it's really not possible.


Again, good day. 


 
Darcism, please refrain from necro-posting in a thread. Necro-posting is posting in a thread that has not had posting activity in over 30 days. Please also avoid hijacking a topic for your own questions, especially when the questions have little in common with the point of the thread.  You can review our forum rules here. Thank you.


This thread is being closed. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
Also, you have posted exactly the same question in 4 different threads. One is plenty.

Original thread: https://forums.rpgmakerweb.com/threads/rmmvs-js-is-enough-to-make-it-online.50570/