{"author_name":"metalchouchen","cat":"LD #31","comments":[{"author_name":"","time":"December 14, 2014 7:40 am","epoch":1418560800,"text":"And to answer your question: I&#8217;ve used it to build local multiplayer games with 4 players in Unity 4.6 and I don&#8217;t have any of the problems you&#8217;re describing.","spam":"N"},{"author_name":"metalchouchen","time":"December 14, 2014 4:15 pm","epoch":1418591700,"text":"Thanks! I will probably give a try to this plugin.","spam":"N"},{"author_name":"metalchouchen","time":"January 22, 2015 6:40 pm","epoch":1421970000,"text":"Winxalex sorry I just saw your message now. I will give a try to your solution soon I think <img src=\"http:\/\/ludumdare.com\/compo\/wp-includes\/images\/smilies\/simple-smile.png\" alt=\":)\" class=\"wp-smiley\" style=\"height: 1em; max-height: 1em;\" \/> Thanks!","spam":"N"}],"epoch":1418521860,"likes":1,"metadata":{"p_key":"21992","p_author":"metalchouchen","p_authorkey":"37446","p_urlkey":"57356","p_title":"So, I tried to make a local multiplayer game with Unity3D","p_cat":"LD #31","p_event":"LD31","p_time":"1418521860","p_likes":"1","p_comments":"5","p_status":"UPD5","us_key":"37446","us_name":"metalchouchen","us_username":"metalchouchen","event_start":"1417737600","event_key":"26","event_name":"LD31"},"text":"<p>After I&#8217;ve heard the theme of the LD31, I\u2019d immediately thought about making a multiplayer local game. I\u2019m surprise to not find any bomber man like, in all games I have tested (If someone find one, please send me it!) Plus, as far as I knew, Unity3D had no problem to manage gamepads. So all of this, sounded like a very good idea.<\/p>\n <p>&nbsp;<\/p>\n <p style=\"text-align: center\"><a href=\"http:\/\/ludumdare.com\/compo\/wp-content\/uploads\/2014\/12\/hockeyslash_500px.jpg\"><img class=\"size-full wp-image-427051 alignnone\" src=\"http:\/\/ludumdare.com\/compo\/wp-content\/uploads\/2014\/12\/hockeyslash_500px.jpg\" alt=\"hockeyslash_500px\" width=\"550\" height=\"305\" srcset=\"http:\/\/ludumdare.com\/compo\/wp-content\/uploads\/2014\/12\/hockeyslash_500px-300x166.jpg 300w, http:\/\/ludumdare.com\/compo\/wp-content\/uploads\/2014\/12\/hockeyslash_500px.jpg 550w\" sizes=\"(max-width: 550px) 100vw, 550px\" \/><\/a><\/p>\n <p style=\"text-align: center\"><a href=\"http:\/\/ludumdare.com\/compo\/ludum-dare-31\/?action=preview&amp;uid=37446\">http:\/\/ludumdare.com\/compo\/ludum-dare-31\/?action=preview&amp;uid=37446<\/a><\/p>\n <p>&nbsp;<\/p>\n <p>During the development I always tested my game with my two gamepads :<\/p>\n <ul>\n <li>MadCatz F.P.S PRO for Xbox 360<\/li>\n <li>MadCatz Street Fighter 4 for Xbox 360<\/li>\n <\/ul>\n <p>&nbsp;<\/p>\n <p>And I\u2019ve got no problem until some hours before submit the game in compo. I took gamepads from friends and plug four to my computer, and I discovered really annoying bugs. Specially when I plug\/unplug gamepads.<\/p>\n <ul>\n <li>Some gamepad controlled two characters.<\/li>\n <li>Some gamepad controlled no character.<\/li>\n <\/ul>\n <p>&nbsp;<\/p>\n <p>After writing some logs. When I plug four controllers to my computer, Unity3D thinks there is 6 controllers. And start to have this strange behaviors.<\/p>\n <p>After some search I read this interesting blog post :<\/p>\n <p><a href=\"http:\/\/www.gallantgames.com\/posts\/27\/details-on-the-xbox-360-controller-bug-in-unity\">http:\/\/www.gallantgames.com\/posts\/27\/details-on-the-xbox-360-controller-bug-in-unity<\/a> and I also found this plugin on GitHub : <a href=\"https:\/\/github.com\/JISyed\/Unity-XboxCtrlrInput\">https:\/\/github.com\/JISyed\/Unity-XboxCtrlrInput<\/a><\/p>\n <p>It\u2019s work really well and the rewrite of my code was not very long. But after some comments on my entry post, I could notice there still some bugs.<\/p>\n <ol>\n <li>The webplayer version continue to bug, I think it\u2019s because the plugin use two dlls, and if one got native code, it will be not include with the webplayer build.<\/li>\n <li>It doesn\u2019t give the name of the gamepad so I cannot use my Sf4 controllers (no joystick).<\/li>\n <li>Logitech gamepads don\u2019t work, I thinks it\u2019s because the plugin is really oriented for Xbox 360 gamepads.<\/li>\n <\/ol>\n <p><a href=\"http:\/\/ludumdare.com\/compo\/wp-content\/uploads\/2014\/12\/gamepads.jpg\"><img class=\"size-full wp-image-427055 aligncenter\" src=\"http:\/\/ludumdare.com\/compo\/wp-content\/uploads\/2014\/12\/gamepads.jpg\" alt=\"gamepads\" width=\"429\" height=\"177\" \/><\/a><\/p>\n <p>&nbsp;<\/p>\n <p>I\u2019m still happy to \u00a0develop this game, even if without this problem I could add more features of course.<\/p>\n <p>But because I want to continue developing multiplayer local games. I\u2019m looking for some good wisdom :<\/p>\n <p>Do you use 4 controllers with Unity3D 4.6 ?<\/p>\n <p>Do you have equivalent problem ?<\/p>\n <p>Also, do you know some Unity3D titles in local multiplayer, (with four players) \u00a0?<\/p>\n <p>&nbsp;<\/p>\n <p>Thanks for reading !<\/p>\n <p>Damien;<\/p>\n <p>Ps : Last pro tip \u00a0for myself. Next time, don\u2019t forget to also manage the keyboard.<\/p>","time":"December 13th, 2014 8:51 pm","title":"So, I tried to make a local multiplayer game with Unity3D"}