June 08, 2023, 01:49:45 pm

The Gang Garrison 2 Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

NOTICE: Due to a rise in bot activity, new posters need to be approved before posting.

Join the community Discord server!

Pages: 1 [2]

Author Topic: [Client-Side] Controller Support 2.0  (Read 3745 times)

PrOF

  • Heroic Member
  • ****
  • Karma: 43
  • Offline Offline
  • Posts: 600
  • Sometimes a dev. Only sometimes
Re: [Client-Side] Controller Support 1.1
« Reply #15 on: January 10, 2018, 03:12:02 pm »

So it turns out that this plugin sucks and probably straight up crashes, so I'll probably roll out an update in the next few days. Will also probably massively help with lag caused by this plugin when you don't have a controller plugged in (or soon after startup)
I'll also try to improve compatibility, but it'll probably not be very compatible with other plugins
But hey menu navigation is also in the works
Logged

PrOF

  • Heroic Member
  • ****
  • Karma: 43
  • Offline Offline
  • Posts: 600
  • Sometimes a dev. Only sometimes
Re: [Client-Side] Controller Support 2.0
« Reply #16 on: January 17, 2018, 10:58:18 am »

Update 2.0: The Overhaul
This update brings new features along with huge optimisations, for a complete and fun experience :c8:

Changelog

-Complete menu navigation, use the left stick to move the cursor and X to click
-Menu navigation also when choosing a class or a team. :quote: support incoming
-Lobby menu navigation. Although being a very new feature it hasn't been tested as thoroughly as other features
-Now you need to press Numpad 0 to activate the plugin. Sadly it's necessary to avoid extreme slowdown on startup
-Testing shows that you're more likely to lag if you connect your gamepad after opening GG2
-Holding the square button now shows the scoreboard
-The select button now opens the change class menu
-The start button now opens the change team menu
-Pressing both start and select at the same time opens the In Game Menu
-Support for a 2nd controller slot. If you have 2 controllers plugged in at the same time priority will go to the first
-Quote and Sniper now handle differently from other classes, allowing full control
-Optimisations:
  -Overhauled and split code in more objects, so situational code only runs when it needs to
  -If the controller is disconnected mid-game you're much less likely to lag
  -Optimised bubble code for improved readability and very small gains in performance
  -Cleaned up code and modified comments for improved readability

Some data:
-This version has 32% more lines of code than the last one
-It's been 116 days since the last version
-This project has been the inspiration for the Context-based X3 button, hopefully implemented in the game this year


As always, please report any bugs you encounter
(click to show/hide)
« Last Edit: January 17, 2018, 10:59:58 am by PrOF »
Logged

Residays

  • New Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
Re: [Client-Side] Controller Support 2.0
« Reply #17 on: January 25, 2018, 03:17:52 pm »

Nice plugin, I haven't tried it yet but do you think it would be possible to play splitscreen if one were to play with mouse + keyboard and the other with controller with two gang garrison clients? (One which has the plugin and the other doesn't)
Logged

PrOF

  • Heroic Member
  • ****
  • Karma: 43
  • Offline Offline
  • Posts: 600
  • Sometimes a dev. Only sometimes
Re: [Client-Side] Controller Support 2.0
« Reply #18 on: January 25, 2018, 03:35:07 pm »

Nice plugin, I haven't tried it yet but do you think it would be possible to play splitscreen if one were to play with mouse + keyboard and the other with controller with two gang garrison clients? (One which has the plugin and the other doesn't)
Sadly almost certainly not, as both clients would aim in the same direction, based on the mouse position. I'm pretty sure you could move both characters independently, but that's about it
Logged

LucasRFA BR

  • New Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 19
  • I like GG2,i have steam:LucasRFA, i love Blockland
Re: [Client-Side] Controller Support 2.0
« Reply #19 on: February 23, 2018, 05:11:09 pm »

So, I tried to use this plugin and none of the buttons work. I installed the plugin in the "Plugins" folder, so I don't know why the plugin isn't working
Logged
Aww yea, baby! Let's move on!

PrOF

  • Heroic Member
  • ****
  • Karma: 43
  • Offline Offline
  • Posts: 600
  • Sometimes a dev. Only sometimes
Re: [Client-Side] Controller Support 2.0
« Reply #20 on: February 24, 2018, 12:24:14 am »

-Now you need to press Numpad 0 to activate the plugin. Sadly it's necessary to avoid extreme slowdown on startup
Logged

LucasRFA BR

  • New Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 19
  • I like GG2,i have steam:LucasRFA, i love Blockland
Re: [Client-Side] Controller Support 2.0
« Reply #21 on: February 25, 2018, 01:20:59 pm »

-Now you need to press Numpad 0 to activate the plugin. Sadly it's necessary to avoid extreme slowdown on startup
facepalm for me, sorry :(

(The worst thing is that I read everything but I overlooked this '-')
Logged
Aww yea, baby! Let's move on!

PrOF

  • Heroic Member
  • ****
  • Karma: 43
  • Offline Offline
  • Posts: 600
  • Sometimes a dev. Only sometimes
Re: [Client-Side] Controller Support 2.0
« Reply #22 on: February 25, 2018, 01:24:24 pm »

facepalm for me, sorry :(

(The worst thing is that I read everything but I overlooked this '-')
Don't worry, it is quite unintuitive but also needed, Game Maker 8 does not like handling controllers without almost fainting every second :z6:
Logged

LucasRFA BR

  • New Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 19
  • I like GG2,i have steam:LucasRFA, i love Blockland
Re: [Client-Side] Controller Support 2.0
« Reply #23 on: February 25, 2018, 02:03:41 pm »

Plugin Feedback:

Well, it doesn't work with my PS2 Controller, when I activate the plugin my mouse keeps going upper-left and my character going to the left forever =/.

I tried to use a program that makes the Smartphone send Xinput buttons to your PC. And It worked, but the buttons are broken, its not the same as the layout that you show in the image. (Seriously, I can aim up pressing RT button and the fast chat doesn't work... I could only aim left and right) :z9:.

Not even using the X360ce program fixed the solution... but, hey: its just a test. Its still better to play with a keyboard and mouse, anyways... :z6:
Logged
Aww yea, baby! Let's move on!

PrOF

  • Heroic Member
  • ****
  • Karma: 43
  • Offline Offline
  • Posts: 600
  • Sometimes a dev. Only sometimes
Re: [Client-Side] Controller Support 2.0
« Reply #24 on: February 25, 2018, 02:22:46 pm »

This plugin is made to take input from any gamepad still using the (old) DirectInput api because of Game Maker 8's limitations. It was tested with a ps3 controller recognised by the SCP DS3 unofficial driver, it should work fine with a 360 controller and even stuff like a flight joystick or a steering wheel (useful, I know)
-Is the PS2 controller stuck in the upper left only until you move the right/left analog stick?
-Which app are you using?
-Server-sent plugins like chat are not supported
Logged

LucasRFA BR

  • New Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 19
  • I like GG2,i have steam:LucasRFA, i love Blockland
Re: [Client-Side] Controller Support 2.0
« Reply #25 on: February 25, 2018, 02:51:58 pm »

This plugin is made to take input from any gamepad still using the (old) DirectInput api because of Game Maker 8's limitations. It was tested with a ps3 controller recognised by the SCP DS3 unofficial driver, it should work fine with a 360 controller and even stuff like a flight joystick or a steering wheel (useful, I know)
-Is the PS2 controller stuck in the upper left only until you move the right/left analog stick?
-Which app are you using?
-Server-sent plugins like chat are not supported

Im using a generic PS2 controller, and when I activate the plugin I don't press anything and the character keeps going left. And I use the Monect PC Remote to test the XInput Controller with the plugin
Logged
Aww yea, baby! Let's move on!

PrOF

  • Heroic Member
  • ****
  • Karma: 43
  • Offline Offline
  • Posts: 600
  • Sometimes a dev. Only sometimes
Re: [Client-Side] Controller Support 2.0
« Reply #26 on: February 25, 2018, 03:04:44 pm »

(old) DirectInput api
XInput Controller
Here's your problem. Monect should also have a Windows XP version, so I'd also guess they use DirectInput there
Logged
Pages: 1 [2]
 

Page created in 0.043 seconds with 36 queries.