OcRam

Servant of the Universe
Regular
Joined
Aug 2, 2016
Messages
954
Reaction score
1,118
First Language
Finnish
Primarily Uses
RMMZ
Introduction
I have tried to find this type of plugin for a long time and then decided to do it myself… This plugin allows up to 4 players to control their own actors. All players can interact with events, call menu and participate in battles.

This plugin is compatible with all Yanfly battle -plugins: dtb = Default Turn Battle, atb = Active Turn Battle, ctb = Charge Turn Battle and stb = Standard Turn Battle

This plugin is compatible also with "OcRam_Passages", "Ellye_ATB", "VE_DiagonalMovement" and "Timed Attack" from "SumRndmDde"

Autodrop/add gamepad feature will ensure seamless integration with gamepads. Players will be dropped if he/she unplugs gamepad. And gets back in when gamepad is plugged on again (key press is still required).





Important! Put this plugin AFTER supported plugins in your plugin list!

Here's what you need:
  • "OcRam_Local_Coop" plugin
  • Configure parameters
  • Play your awesome RPG with your friends!
Example how to use plugin commands to target player 2 instead of 1 or follower 1 instead of player.

local_coop_set_move_routes.png

All OcRam -plugins now available at ocram-codes.net

Please read:
Terms of Use

Latest version: Download from here

All my plugins: Check 'em out!

My (long-term) Project
banner.png
 
Last edited:

OcRam

Servant of the Universe
Regular
Joined
Aug 2, 2016
Messages
954
Reaction score
1,118
First Language
Finnish
Primarily Uses
RMMZ
I hope it helps you in your studies :)

Are you interested in JS generally, or something specific in this plugin?
 

Poryg

Dark Lord of the Castle of Javascreeps
Regular
Joined
Mar 23, 2017
Messages
4,235
Reaction score
11,376
First Language
Czech
Primarily Uses
RMMV
I'm trying to figure out how to employ multiple Game_Player objects. As it currently stands, you can have only one Game_Player and if you change it for some else, you have to reload whole map for some reason.
 

Isabella Ava

Regular
Regular
Joined
Sep 13, 2016
Messages
635
Reaction score
758
First Language
English
Hi, i found a bug: If you open/close menu, Player2 will be transfer to Player1's current location
- Also, it seem Player2 only available if a Gamepad is plugged in?
Can you make Player2 playable via shared Keyboard?
- I wonder what if my game use plugin like Timed Attack of Srndmdude - which require Player press 'Ok' button in correct time / or Arrows Keys. Is it going to be invalid for Player2?
 
Last edited:

OcRam

Servant of the Universe
Regular
Joined
Aug 2, 2016
Messages
954
Reaction score
1,118
First Language
Finnish
Primarily Uses
RMMZ
Poryg: That sounds like it's going to break some fundamental principals of RMMV core. That takes A LOT of work (also Plugin compatibility is compromised). And how would it change usage of global $gamePlayer -object (which most RMMV games at the moment are dependend of).

Isabella Ava: Thank you for bug report I will fix it as soon as I can. I will take a look at shared keyboard, it's a great idea if it doesn't break up when too many keys are pressed (also might be device dependent how many simultanous keys can pressed). I will take a look at "Timed Attack" -plugin from "Srndmdude", it should be doable (since Battle system is still turn based). Edit: "Shared keyboard" has too many problems to take care of (some of them aren't even possible to solve without some new hardware). I'm sorry to say that at the moment I do not have resources to do this. Edit2: I will fix "Warp bug to P1 after menu scene" and add support for "Timed Attack" -plugin you mentioned to next version I release.

Black Mamba: I think this approach would be something like Poryg is looking for... This plugin is for turn based battle systems. Though I think "Map mode" would still work some how on ABS. Edit: I will implement new plugin command that gives "main" control to desired player with desired party member. This might even work with ABS!
 
Last edited:

Poryg

Dark Lord of the Castle of Javascreeps
Regular
Joined
Mar 23, 2017
Messages
4,235
Reaction score
11,376
First Language
Czech
Primarily Uses
RMMV
Well... It's interesting nevertheless:
$gamePlayer = new Game_Player ();
$gamePlayer.refresh()
now my $gamePlayer is brand new. Only actor and followers and stuff. I can even walk with him, he's just invisible. In order for him to be visible, I need to refresh the map. For this I can do SceneManager.push (Scene_Base);
SceneManager.pop();
This essentially reloads the map without messing up event position. If I apply something similar to your event functionality, I am capable of effectively changing players, making a similar functionality to prison puzzles where all charaters are separated and stuff.
 

OcRam

Servant of the Universe
Regular
Joined
Aug 2, 2016
Messages
954
Reaction score
1,118
First Language
Finnish
Primarily Uses
RMMZ
Well... It's interesting nevertheless:
$gamePlayer = new Game_Player ();
$gamePlayer.refresh()
now my $gamePlayer is brand new. Only actor and followers and stuff. I can even walk with him, he's just invisible. In order for him to be visible, I need to refresh the map. For this I can do SceneManager.push (Scene_Base);
SceneManager.pop();
This essentially reloads the map without messing up event position. If I apply something similar to your event functionality, I am capable of effectively changing players, making a similar functionality to prison puzzles where all charaters are separated and stuff.

Oh! You ment that $gamePlayer -object is only changed (only 1 character controlled at the same time) NOT creating multiple instances of it (for each player to control each characters at the same time). Then it is quite doable, actually if you don't mind I can implement this functionality in this plugin?

Edit: Thanks Poryg! Then it is going to be in next version.


Edit2: Though it might be little different implementation that you described.
 
Last edited:

Poryg

Dark Lord of the Castle of Javascreeps
Regular
Joined
Mar 23, 2017
Messages
4,235
Reaction score
11,376
First Language
Czech
Primarily Uses
RMMV
I intended to create multiple instances, but not being controllable at the same time. But it's true it is easily doable with just one party.
And yes, you can implement the functionality, no problems there :)
 

SoulOfRock

Regular
Regular
Joined
Mar 19, 2014
Messages
51
Reaction score
6
First Language
Spanish
Primarily Uses
I love your plugin,but its boring copy the same event every time i need to call player 2 on each map, or to create a event to call the second player, i was thinking if u can make it apear with the joystick button, and make the plugin config file like: Player 2 join button. x. Player 2 Char index: x, player 2 id: x... and it wuld be even better if u can make a split screen... :o!!!... Sorry for so many pettitions grand master,but you are the only that have tried to make the local coop plugin... Thank you so much for all your effort :D.
 

Poryg

Dark Lord of the Castle of Javascreeps
Regular
Joined
Mar 23, 2017
Messages
4,235
Reaction score
11,376
First Language
Czech
Primarily Uses
RMMV
Actually, many have tried :D Few have succeeded, but as far as I know, all were Japanese... And I can't find them now :(
 

OcRam

Servant of the Universe
Regular
Joined
Aug 2, 2016
Messages
954
Reaction score
1,118
First Language
Finnish
Primarily Uses
RMMZ
I love your plugin,but its boring copy the same event every time i need to call player 2 on each map, or to create a event to call the second player, i was thinking if u can make it apear with the joystick button, and make the plugin config file like: Player 2 join button. x. Player 2 Char index: x, player 2 id: x... and it wuld be even better if u can make a split screen... :o!!!... Sorry for so many pettitions grand master,but you are the only that have tried to make the local coop plugin... Thank you so much for all your effort :D.

Thank you for trying out this plugin. Yes I have plans to create Player 2 event automatically in near future. But when it comes for player 2 to control one of the followers and split screen ...this isn't in near future (I need to learn to master the time first). At the start I was just thinking of player 2 to join ONLY battles. That controllable event is just bonus thing in this plugin.

But please check this page out from time to time. Maybe, just maybe, someday I'll post controllable follower and/or split screen update :)
 
Last edited:

SoulOfRock

Regular
Regular
Joined
Mar 19, 2014
Messages
51
Reaction score
6
First Language
Spanish
Primarily Uses
Thank you for trying out this plugin. Yes I have plans to create Player 2 event automatically in near future. But when it comes for player 2 to control one of the followers and split screen ...this isn't in near future (I need to learn to master the time first). At the start I was just thinking of player 2 to join ONLY battles. That controllable event is just bonus thing in this plugin.

But please check this page out from time to time. Maybe, just maybe, someday I'll post controllable follower and/or split screen update :)

Thank you for take your time to answer me, i will make this post fav,for a incoming update... well if u can, but im so gratefull for your work!
 

OcRam

Servant of the Universe
Regular
Joined
Aug 2, 2016
Messages
954
Reaction score
1,118
First Language
Finnish
Primarily Uses
RMMZ
New version of OcRam_Local_Coop -plugin is now available!

Biggest changes are that "Player2" event can be controlled via mouse + keyboard. New plugin commands "assign_pm" and "swap_players". Also "Timed Attack" plugin from "SumRndmDde" is now supported.

Please take a look at "Version history" for more information and you can always PM me.

Edit: HotFix has been released (few hours after v1.01 release) where "DTB" system now resets player input between turns properly. Thank you for your patience.
 
Last edited:

Isabella Ava

Regular
Regular
Joined
Sep 13, 2016
Messages
635
Reaction score
758
First Language
English
Hi @OcRam the first bug i found that the plugin will make the reward screen (after defeated an enemy troop) keep repeating itself endlessly. After first time run normally "..Party was victorious >> Actor1 now level 7 ... " the game keep repeating the message below (and the FPS dropped dramatically like 50% for minute or two)
I installed your plugin at bottom of plugin list though
bL0FFV2.jpg


Another thing that, i saw you mentioned now P2 supported Keyboard+Mouse but how can i assign keys for P2?
Also, P2 seem didn't join the battle. Maybe it's because of i don't have a Gamepad?
 
Last edited:

OcRam

Servant of the Universe
Regular
Joined
Aug 2, 2016
Messages
954
Reaction score
1,118
First Language
Finnish
Primarily Uses
RMMZ
Hi @OcRam the first bug i found that the plugin will make the reward screen (after defeated an enemy troop) keep repeating itself endlessly. After first time run normally "..Party was victorious >> Actor1 now level 7 ... " the game keep repeating the message below (and the FPS dropped dramatically like 50% for minute or two)
I installed your plugin at bottom of plugin list though
bL0FFV2.jpg


Another thing that, i saw you mentioned now P2 supported Keyboard+Mouse but how can i assign keys for P2?
Also, P2 seem didn't join the battle. Maybe it's because of i don't have a Gamepad?

Thank you for the report. I didn't have any issues with "Reward Screen" my self... Do you get any errors in console log (F8) and what plugins are you using?

Player 2 can be assigned only with "p2_assign -1" command or "swap_players" command. This is just to make sure that there's always keyboard and mouse available. And yea if "P2 Auto Assign" parameter is -1 then it means you gotta assign Player 2 input device manually.

Edit: Oh and this update didn't have "shared keyboard" if that's what you ment. Keys can't be assigned for P2, they are same as P1.
 
Last edited:

Isabella Ava

Regular
Regular
Joined
Sep 13, 2016
Messages
635
Reaction score
758
First Language
English
Hi @OcRam Nothing showed in Console log. (The game FPS dropped more than 70% i think)
I installed a lots plugins so ... :LZSblush: not sure if it help but i will post the list here:

I tried plugin command "p2_assign -1"
however after that, P1 is unable to control. Is there anyway to manual setup keys for both Players?
Like P1 move with W,A,S,D + J,K,L and P2 move with Arrows + Num1,Num2,Num3?
 

OcRam

Servant of the Universe
Regular
Joined
Aug 2, 2016
Messages
954
Reaction score
1,118
First Language
Finnish
Primarily Uses
RMMZ
Hi @OcRam Nothing showed in Console log. (The game FPS dropped more than 70% i think)
I installed a lots plugins so ... :LZSblush: not sure if it help but i will post the list here:


I tried plugin command "p2_assign -1"
however after that, P1 is unable to control. Is there anyway to manual setup keys for both Players?
Like P1 move with W,A,S,D + J,K,L and P2 move with Arrows + Num1,Num2,Num3?

Wow thats a lot of plugins :kaoswt:...Plugin order should be ok.

I found "input reseting" bug in "DTB" system, I think maybe you should try that first? BTW: What battle system are you using?

If this new "HotFix" update doesn't work, we need to find plugin that conflicts with this one... I would try to turn off plugin by plugin to find it.

I will try to make this "Shared Keyboard" update when I have enough resources to do that. But ATM it is not possible to bind keys (other than gamepad) with this Plugin.
 

Isabella Ava

Regular
Regular
Joined
Sep 13, 2016
Messages
635
Reaction score
758
First Language
English
The bug still hasn't been fixed. I am using Yanfly Battle Engine.
And too much plugin to turn off one by one :LZSooo:
Can you add some console log into your plugin to see what happen while it's running?
 

Latest Threads

Latest Profile Posts

Larvae.gif
They're larvae, not fightae, honest!
I've made a big emphasis on visually representing things to make the game as accessible as possible.

MP.png

Grimoires will consist of 5 - 10 pages of skills (still finalizing that max number)

Since each actor is able to take multiple actions per turn, each skill will cost 1-5 pages
This prevents more powerful skills from being uber spammed during an actors turn.
Cats are so easy. I noticed the gray one would never nap in the office while I worked, so I put a blanket on the spare chair in here and now she won't leave.
1701793108356.png
still work in progress, had not much time at the weekend^^
Oh deer! Have you checked my calendar today already? ;3
1701790624587.png

Forum statistics

Threads
136,773
Messages
1,269,734
Members
180,514
Latest member
Ikana
Top