OcRam - Local Coop plugin [v2.13 updated 2019/09/07]

Discussion in 'JS Plugin Releases (RMMV)' started by OcRam, Feb 3, 2018.

  1. Tuomo L

    Tuomo L Oldbie Veteran

    Messages:
    2,288
    Likes Received:
    1,258
    Location:
    Finland!
    First Language:
    Finnish
    Primarily Uses:
    RMMV
    Xbox One Controller is still crashing as soon as it is enabled, in fact most of the newer gamepads are crashing. (Switch Pro, Xbox One and Ps4)

     
  2. Ilovepapayas

    Ilovepapayas Villager Member

    Messages:
    9
    Likes Received:
    3
    First Language:
    german
    Hey Ocram, definitely one of best rpg maker plugins ever created!

    Is there any chance to control movement (like it is done in "Set Moveroute") of player 2 to create better cutscenes? Also interesting for "show ballon" and "show animation".
    It is (of course) not compatible with other plugins that control the movement of the followers.

    Thank you for sharing this awesome plugin!
     
    OcRam likes this.
  3. OcRam

    OcRam Servant of the Universe Veteran

    Messages:
    281
    Likes Received:
    344
    Location:
    Void
    First Language:
    Finnish
    Primarily Uses:
    RMMV
    Thank you for the message,

    I will take a look at these ideas and try to fit them in next version of this plugin.

    @Ilovepapayas
    EDIT: I have now implemented this functionality and beta version is working like it is supposed to! Release is coming soon...
    local_coop_set_move_routes.png
     
    Last edited: Aug 2, 2019
    Ilovepapayas likes this.
  4. Chilifan

    Chilifan Villager Member

    Messages:
    11
    Likes Received:
    5
    I can only agree. Wonderful plugin. I use it for some kind of bomberman clone.

    Any chance to detect P2 pick up an item (Event on map) instead of Player (P1)? Both players have own equip (Variable control on map)

    I use max 2 players only, so any idea for eventing a condition(if not player) should also work.

    By the way. If you like to make p2 invisible you can use a follower Control plugin and set „move route“. ;-)
     
    OcRam likes this.
  5. OcRam

    OcRam Servant of the Universe Veteran

    Messages:
    281
    Likes Received:
    344
    Location:
    Void
    First Language:
    Finnish
    Primarily Uses:
    RMMV
    Thank you for the message,

    There are several ways to detect which player started the event. Some of the techniques are introduced in my YouTube video:
     
  6. Chilifan

    Chilifan Villager Member

    Messages:
    11
    Likes Received:
    5
    Uff, I missed the variable in turn. Thanks for the quick reply!
     
    OcRam likes this.
  7. OcRam

    OcRam Servant of the Universe Veteran

    Messages:
    281
    Likes Received:
    344
    Location:
    Void
    First Language:
    Finnish
    Primarily Uses:
    RMMV
    Hello everybody!

    It is time again to release something. So here we go!

    Latest release - v2.11 (released 2019/08/03)
    • Improved gamepad compatibility (shouldn't give undefined error anymore)
      Special thanks to @Tuomo L for reporting and testing this!
    • Implemented 3 new plugin commands
      • apply_to_player 2
        Apply move routes, balloons and animations to this player instead of player 1 (possible values 1-4)
      • apply_to_follower 1
        Apply move routes, balloons and animations to this follower instead of player (possible values 1-3)
      • followers_follow yes/no
        Will followers follow player 1?
     
  8. Chilifan

    Chilifan Villager Member

    Messages:
    11
    Likes Received:
    5
    Wow, this is a great! Specially followers follow. How to do this with move routes? I don't get. Plugin command on top of move route (Target player?)
     
    OcRam likes this.
  9. OcRam

    OcRam Servant of the Universe Veteran

    Messages:
    281
    Likes Received:
    344
    Location:
    Void
    First Language:
    Finnish
    Primarily Uses:
    RMMV
    There's screen shot on 1st page of this thread which shows use of plugin commands with move routes, balloons and animations.
     
  10. Chilifan

    Chilifan Villager Member

    Messages:
    11
    Likes Received:
    5
    I cannot believe that I have overlooked something so obvious again. XD Thank you again!
    But there seems to be a bug with the opacity. Other move routes commands work well.

    I've tried to set follower 1 opacity to "0".
    Plugin: apply_to_follower 1
    Set_Move_Route: opacity (0)

    I 've improvised and change the graphic in set_move_route.
     
    OcRam likes this.
  11. OcRam

    OcRam Servant of the Universe Veteran

    Messages:
    281
    Likes Received:
    344
    Location:
    Void
    First Language:
    Finnish
    Primarily Uses:
    RMMV
    Thank you for the report.

    I have now fixed this + also: MoveSpeed, BlendMode, WalkAnim, StepAnim, DirectionFixes and Transparencies should now work!

    Version 2.12 is now released!
     
  12. Chilifan

    Chilifan Villager Member

    Messages:
    11
    Likes Received:
    5
    Thanks for the quick cleanup. Opacity works.
    I'm sorry to report that, but with (v2.12.) I cannot move my second player with keyboard2. The joining works still. Using [wasd...]
    Strange...
     
    OcRam likes this.
  13. OcRam

    OcRam Servant of the Universe Veteran

    Messages:
    281
    Likes Received:
    344
    Location:
    Void
    First Language:
    Finnish
    Primarily Uses:
    RMMV
    Thank you for the quick report. I've now fixed this.

    I didn't raise the version, so latest version is still v2.12 (because you were the only one who had downloaded it). But I have changed the release date from 2019/08/04 to 2019/08/05

    Edit: Few hours after upload I found that line 469 had a bug... "p = p > vflwrs.length ? vflwrs.length : 0;" it should be "p = p > vflwrs.length ? vflwrs.length : p;" I have uploaded corrected version now... Sorry for any trouble this may have caused. (before fix 1st follower is always selected on apply_to_follower cmd)
     
    Last edited: Aug 5, 2019
    Chilifan likes this.
  14. Ilovepapayas

    Ilovepapayas Villager Member

    Messages:
    9
    Likes Received:
    3
    First Language:
    german
    AWESOME!! Thank you very much for this!!
     
    OcRam likes this.
  15. Chilifan

    Chilifan Villager Member

    Messages:
    11
    Likes Received:
    5
    Quick question OcRam.
    Is there a way to transfer only one Player on the same MAP with X and Y coordinates? I think there already is (page1 this.setPosition...) but i do not get it. I've also tried YEP MoveRouteCore teleport command for move route.
     
  16. OcRam

    OcRam Servant of the Universe Veteran

    Messages:
    281
    Likes Received:
    344
    Location:
    Void
    First Language:
    Finnish
    Primarily Uses:
    RMMV
    Just use * Plugin command * apply_to_player x
    (x = which player you want to transfer)
    NOTE: If player x is not present (gamepad disconnected etc...) all actions will be applied to player 1.

    And * Set movement route * script : this.setPosition(x, y);
     
  17. Chilifan

    Chilifan Villager Member

    Messages:
    11
    Likes Received:
    5
    Yeah i've tried this before, but it failed. It was as expected a user error XD.
    I have two identical MAPS for 1 player only and 2 players only.
    Unfortunately, the transfer to MAP was set wrong. I'm wondering all the time why Player 2 is treated like a follower.^^

    Thanks for your answer by the way!
     
  18. Restart

    Restart Veteran Veteran

    Messages:
    202
    Likes Received:
    130
    First Language:
    English
    Primarily Uses:
    RMMV
    I randomly happened upon this post

    https://forums.rpgmakerweb.com/inde...oute-with-diagonal-ability.94415/#post-945568

    Which demonstrates a working splitscreen plugin. I dunno if it's compatible with your local coop or not, but it'd be cool if it just worked
     
  19. Hugo Yasha

    Hugo Yasha Villager Member

    Messages:
    13
    Likes Received:
    2
    First Language:
    Portuguese
    Primarily Uses:
    RMMV
    Epic plugin!
    I'm using the YEP slippery tiles, and it only works with player one. Have I done something wrong or this plugin isn't compatible with the YEP Slippery Tiles?
    Thanks again man! Awesome plugin.
     
  20. OcRam

    OcRam Servant of the Universe Veteran

    Messages:
    281
    Likes Received:
    344
    Location:
    Void
    First Language:
    Finnish
    Primarily Uses:
    RMMV
    Thank you for pointing out that thread,

    But split screen (or making it compatible with that one) would be too big project for me ATM.

    Thank you for the message!

    I'll try to check this out. Doesn't seem too big thing to do (Yanfly -plugins are generally super easy to play with).
     
    Hugo Yasha likes this.

Share This Page