Switch player character / local asynchronous multiplayer

Greetings!


I hope this is the right place to ask my question. I'm a programmer for over 20 years now, but I have no experience with RPG Maker (well, have just made some first steps with the trials) so I don't know what's possible and how difficult it would be.


I know there are some projects working on online multiplayer for RPG Maker MV. But I'm looking for another kind of multiplayer: Asynchronous (maybe local) multiplayer.


What do I mean?


Well, my idea would be, only one person can play the game at same time. It feels like a normal single player game as you know. But after this person, another can "log-in" the game. It's the same game, the same world and all "parameters" are like the other person has leave the world.
So if the 1st person takes the sword from the chest and can persuade the mage to join the party, when the 2nd person is entering the world, the sword is off and the mage is part of another group. If one person is logged in, all other player characters are used as NPCs.


If I'm right, the crucial part is just a mechanism to switch the active player character (first it should possible the declare a character as PC and make all others NPC and second a system to identify a player with login and password and bind a character to this player).


I know this is not for huge multiplayer scenarios but I have some others in mind like turn based tabletop experiences. ^^


Kind regards,
Purzelkater
Tsukihime wrote a player manager for Ace that can be used to do this with a common event handling the change and a few minor tweaks - you might ask her if or when she plans to write something similiar for MV.
Thank you for your suggestion. It looks like HimeWorks' Party Manager is what I was looking for.    


After some little conversation with Tsukihime I would like to explain my ideas a bit more.


It's not some kind of MMORPG or real online multiplayer, but more like a turn-based tabletop/board game experience. Only one player can play at the same time (make his/her turn - I will say "his" from now, it's no discrimination, you know ^^). Well, this could be all kind of activities a player can do in normal single player games too: go around the world, speak or fight with NPCs, go shopping, like this.
If one player is active in the game, his party is the only active party of all players. All other parties are inactive this time.
If this player quits the game, another player can run (means join or log-in) then game and starts at the point his party was where he quits the game last time. But there could be some changes on the world since the player has played the last time because others where active in the game in the meantime.

  • Maybe a fixed number of possible players/parties, but it dependents on the complexity of the game behind.
  • Cloud based save and load, so all players share the same world states successively (that's necessary).
  • Some kind of log-in system a player can choose his actor/party to play with (uses Hime-sans Party Manager and it's necessary too).
  • Maybe a permission system (differ normal players and an admin player).
  • Interaction between the player parties (like trade or messages).
  • Nice to have would be an AI for offline players (sounds overblown, a little bit), for example to fight with (PvE) or against (PvP) this players actor or party. The player should be able to set what actions he allow.
  • Maybe some restrictions for players like how long a player can be logged-in or how many actions a player can do on one turn.
  • If one player is active in the game it woud be nice if other player could see some information screens. This should be possible because the "non-active" player could load the last saved game but has no right to save the game (only the ative player can do this).



Well, this is not a system to play a game with many players at the same time but you can play with some friends in the same world, share your experiences and live the adventures together.
With could based save/load it should not be necessary if all players are sitting around one machine or not. It should be a real cross-platform multiplayer then.
I believe you may be looking for this: 
Well, it's an entry, I guess. To write/read your own needed parameters/variables to/from a savegame should not be that difficult.


Maybe a possible way would be to create a plugin to expand StorageManager.save and .load (rpg_managers.js) with a isCloudMode swith to call two new needed functions StorageManager.saveToCloud and .loadFromCloud. This should be working like the localFile functions except the json data will be send to a server or comes from it.
Of course there should be some simple kind of security to prevent a cloud savegame can be stored local or loaded from the local. And there must be a system to identify the player on the server.


And yes, there are much more possible security problems, I know. But for this kind of game, I have on my mind, this should be dispensable at the moment. ^^
With some eventing, the already mentioned plugin and THIS plugin, it might be possible, though some sort of database thing might help...
Well, first step is made. This morning I had a little time to dig into plugin writing and I have written just a little plugin hanging on game save and continue events to send savegame data to server and load saved game from server. This is working so far.

Original thread: https://forums.rpgmakerweb.com/threads/switch-player-character-local-asynchronous-multiplayer.57213/