OcRam - Local Coop plugin [v2.04 updated 2018/05/24]

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

  1. OcRam

    OcRam Servant of the Universe Veteran

    Messages:
    92
    Likes Received:
    74
    Location:
    Void
    First Language:
    Finnish
    Primarily Uses:
    RMMV
    Ok I'm assuming Default Turn Battle aka. "DTB" is in use. Please take look at the latest version 1.02 with debug mode set to "true". What does it say?

    Edit: You can also PM me
     
    #21
  2. Isabella Ava

    Isabella Ava Veteran Veteran

    Messages:
    406
    Likes Received:
    349
    First Language:
    English
    Hi @OcRam
    Yes i am using DTB battle system.
    This is my console log, the game can't escape victory screen and running extremely slow (like and endless for loop or something..)
    upload_2018-2-11_10-2-13.png
     
    #22
  3. OcRam

    OcRam Servant of the Universe Veteran

    Messages:
    92
    Likes Received:
    74
    Location:
    Void
    First Language:
    Finnish
    Primarily Uses:
    RMMV
    Ok the log tells me that the possible loop ain't in this Plugin, but ofc it can effect other plugins / other scripts. This plugin overrides big part of RMMV Input class. I tried to take a look at most of your plugins, but didn't see too many plugins that should conflict. For example I use almost all of the Yanfly plugins and some of the Moghunters and Orange (Hudell) myself.

    I have tested with most obvious plugins that may cause this kind of behaviour (like "victory aftermath" and "Battle end events"), but everything worked as it supposed to...

    Can you show common events on "Battle end events" (if there are any)? And what does "MyJS" -plugin do? Still the best way to solve this is to turn off plugin by plugin and see what happens, IMO...
     
    #23
  4. Isabella Ava

    Isabella Ava Veteran Veteran

    Messages:
    406
    Likes Received:
    349
    First Language:
    English
    @OcRam i tried to turn off some plugin and found out that SRD_BattleEndEvent was the culprit :|
     
    #24
  5. SoulOfRock

    SoulOfRock Veteran Veteran

    Messages:
    34
    Likes Received:
    6
    First Language:
    Spanish
    I update the plugin, and im having troubles TnT... Help pls
    At the start of my project this happend

    TypeError
    Cannot read property 'inBattle' of null

    Developer tools

    PixiJS 4.5.4 - ✰ WebGL ✰ http://www.pixijs.com/ ♥♥♥


    rpg_managers.js:1949 TypeError: Cannot read property 'inBattle' of null
    at Function.Input._updateGamepadState (/C:/Users/SiehHasen/Downloads/Devil%C2%B4s%20Heart/js/plugins/OcRam_Local_Coop.js:919)
    at Function.Input._pollGamepads (/C:/Users/SiehHasen/Downloads/Devil%C2%B4s%20Heart/js/plugins/OcRam_Local_Coop.js:750)
    at Function.Input.update (rpg_core.js:3068)
    at Function.Input.update (/C:/Users/SiehHasen/Downloads/Devil%C2%B4s%20Heart/js/plugins/OcRam_Local_Coop.js:599)
    at Function.SceneManager.updateInputData (rpg_managers.js:1966)
    at Function.SceneManager.updateMain (rpg_managers.js:1981)
    at Function.SceneManager.updateMain (/C:/Users/SiehHasen/Downloads/Devil%C2%B4s%20Heart/js/plugins/SRD_SuperToolsEngine.js:397)
    at Function.SceneManager.update (rpg_managers.js:1907)
     
    #25
  6. OcRam

    OcRam Servant of the Universe Veteran

    Messages:
    92
    Likes Received:
    74
    Location:
    Void
    First Language:
    Finnish
    Primarily Uses:
    RMMV
    Have you tried putting Local Coop plugin at the bottom of list?
     
    #26
  7. fizzly

    fizzly Veteran Veteran

    Messages:
    367
    Likes Received:
    254
    Location:
    Poland
    First Language:
    Polish
    Primarily Uses:
    N/A
    @OcRam , I couldn't move player 2. What should I do exactly? I tried with keyboard and xbox pads. Should I bind keys somehow or something?
     
    #27
  8. OcRam

    OcRam Servant of the Universe Veteran

    Messages:
    92
    Likes Received:
    74
    Location:
    Void
    First Language:
    Finnish
    Primarily Uses:
    RMMV
    First of all thank you for trying out this Plugin!

    Ok, I'm assuming you have followed my instructions at the first page (where most important thing is that event and plugin parameter matches "P2 Switch Id" and "P2 Event name"). Also page 1 should be blank in case that P2 is not connected.

    Do you use "P2 Auto assign" or the plugin command to bind device to P2? To which device you have bound P2 -1, 0, 1 or something else?
     
    #28
  9. fizzly

    fizzly Veteran Veteran

    Messages:
    367
    Likes Received:
    254
    Location:
    Poland
    First Language:
    Polish
    Primarily Uses:
    N/A
    Also thank you for your plugin and for hard work!
    Yes, I've read manual, but looks like I don't get it... ^^;
    So yes, event has PS2 event name and switch for player 2 is ON. Have that blank page for P2 not active. I have PS2 auto assign as 0, but I don't really get it. Whats is -1, 0, 1, etc.
     
    #29
  10. OcRam

    OcRam Servant of the Universe Veteran

    Messages:
    92
    Likes Received:
    74
    Location:
    Void
    First Language:
    Finnish
    Primarily Uses:
    RMMV
    "P2 Auto Assign": -1 = Not in use, 0-n = Gamepad index in your system (if you have several gamepads/joysticks you just gotta find right one, they should popup in connecting order).

    You can assign keyboard + mouse for P2 manually using "p2_assign -1" Plugin command. NOTE: This will block P1 from using keyboard and mouse and then requires P1 to use gamepad/joystick. ...maybe adding shared keyboard / mouse feature in next update...

    "P1 Auto Assign" defaults to -1 (keyboard + mouse)
    "P2 Auto Assign" defaults also to -1 (not in use) ...I change this to 0 in next update...
     
    #30
    fizzly likes this.
  11. fizzly

    fizzly Veteran Veteran

    Messages:
    367
    Likes Received:
    254
    Location:
    Poland
    First Language:
    Polish
    Primarily Uses:
    N/A
    @OcRam, thank you for making it clear for me. Now it works! I love it. It has much potential!
    If I can suggest some thing:
    * walking and stopped animation avaible
    * map edge colission (p2 can wander behind scenes)
     
    #31
    OcRam likes this.
  12. SoulOfRock

    SoulOfRock Veteran Veteran

    Messages:
    34
    Likes Received:
    6
    First Language:
    Spanish
    I have solved, was my stupid joystick config... Sorry TnT!

    now im having other issue, when the player 2 is on map, and i go to another map this happend.

    TypeError: Cannot read property 'pages' of undefined
    at Game_Event.page (rpg_objects.js:8466)
    at Game_Event.list (rpg_objects.js:8470)
    at oc_get_event_comments (/C:/Users/SiehHasen/Downloads/Devil%C2%B4s%20Heart/js/plugins/OcRam_Local_Coop.js:348)
    at p2_check_touch (/C:/Users/SiehHasen/Downloads/Devil%C2%B4s%20Heart/js/plugins/OcRam_Local_Coop.js:470)
    at Function.Input._updateGamepadState (/C:/Users/SiehHasen/Downloads/Devil%C2%B4s%20Heart/js/plugins/OcRam_Local_Coop.js:904)
    at Function.Input._pollGamepads (/C:/Users/SiehHasen/Downloads/Devil%C2%B4s%20Heart/js/plugins/OcRam_Local_Coop.js:750)
    at Function.Input.update (rpg_core.js:3068)
    at Function.Input.update (/C:/Users/SiehHasen/Downloads/Devil%C2%B4s%20Heart/js/plugins/OcRam_Local_Coop.js:599)
    at Function.SceneManager.updateInputData (rpg_managers.js:1966)
    at Function.SceneManager.updateMain (rpg_managers.js:1981)
     
    Last edited: Feb 14, 2018
    #32
  13. OcRam

    OcRam Servant of the Universe Veteran

    Messages:
    92
    Likes Received:
    74
    Location:
    Void
    First Language:
    Finnish
    Primarily Uses:
    RMMV
    Suggestions are always welcome! :wink:

    Walking and stopped (if you ment stepping on/off) animations should be already doable (just use normal eventing for P2 event). And map edge collision is going to be in next version (under development).

    Thank you for the report. What other plugins do you use and what is plugin order? And which version do you use of this plugin? Edit: Just saw you said you updated this plugin, just make sure it's 1.02 ;)

    Edit2: I'll fix this issue ASAP.
     
    Last edited: Feb 15, 2018
    #33
    fizzly likes this.
  14. SoulOfRock

    SoulOfRock Veteran Veteran

    Messages:
    34
    Likes Received:
    6
    First Language:
    Spanish
    yup is 1.02 and the order is all Yanfly plugins like the web site order say...

    i put all the plugins off except your plugin and is the same... TnT :D
     
    #34
  15. OcRam

    OcRam Servant of the Universe Veteran

    Messages:
    92
    Likes Received:
    74
    Location:
    Void
    First Language:
    Finnish
    Primarily Uses:
    RMMV
    For me everything worked if I didn't spam player transfer command??

    I have released a hotfix where this issue has been fixed. Thank you for noticing this!
     
    #35
  16. SoulOfRock

    SoulOfRock Veteran Veteran

    Messages:
    34
    Likes Received:
    6
    First Language:
    Spanish
    Works! Thank you!
     
    #36
    OcRam likes this.
  17. Joshmcd

    Joshmcd Villager Member

    Messages:
    11
    Likes Received:
    0
    First Language:
    English
    Primarily Uses:
    RMMV
    Currently in development on a game and this might be exactly what I've been looking for. So excited to have come across your work.
    I have a quick question though, how possible do you think it would be to allow more than just two playable characters and do something more like 3 or 4?
     
    #37
  18. OcRam

    OcRam Servant of the Universe Veteran

    Messages:
    92
    Likes Received:
    74
    Location:
    Void
    First Language:
    Finnish
    Primarily Uses:
    RMMV
    Thank you for your interest towards this plugin. It's quite possible, but it takes time to do it. I have been thinking to do it for 4 players, but when? ...I do not know yet. I will add it to "Under development" part when I start to do it :wink:
     
    #38
  19. Joshmcd

    Joshmcd Villager Member

    Messages:
    11
    Likes Received:
    0
    First Language:
    English
    Primarily Uses:
    RMMV

    Quite possible eh? what's I like to hear! I'm excited to test it out within the next few days and see what I can do with it. Thanks for the quick reply and keep up the good work!
     
    #39
  20. OcRam

    OcRam Servant of the Universe Veteran

    Messages:
    92
    Likes Received:
    74
    Location:
    Void
    First Language:
    Finnish
    Primarily Uses:
    RMMV
    Hello fellow RPG Makers!:kaohi:

    Due several requests:
    I'm about to release new version where "P2 Eventing" will be replaced with control over followers (up to 4 players)! I will update "Under development" if I add any new features to this patch (such as "shared keyboard").

    If anyone wants me to keep old version downloadable please contact me (Note: it won't support 4 players). Otherwise I will replace old version with new one.
     
    #40

Share This Page