Joystick 2 object doesn't work on steam

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Hello !
    I'm currently finishing a game called DIE for steam. I used the joystick 2 object during the development and it works fine. I upload my build on steam, and when I launch my game with steam, my controllers don't work anymore (I have different types of controllers and none of them works)

    The thing that is really weird is that, when I run the game without steam (only the exe or with clickteam) it works.

    I don't know what to do to fix this issue, so if anyone can help me, it would save me.

    Thanks for your help and sorry for the bad english ^^"

  • Ugh, that sounds terrible.

    I haven't used the Joystick 2 object personally but I know when you use the "Player 1" native stuff (i.e. the little black joystick for MMF player input) and then set the player input to "1" (gamepad), a wired 360 controller will work on Steam. My games can all support a 360 controller there this way.

    If you want to use stuff like the 360's shoulder or D-pad buttons you'll need the separate XBOX360 object and will have to code a bit extra though.

    Weebish Mines, my retro Metroidvania!
    Please login to see this link.

  • [MENTION=25678]Naturium[/MENTION]: That sounds concerning... my game relies on joy2 too. Do you already have a store page set up or did you just manually add the game’s .exe to your library for testing? I’ve not run my game with the Steam overlay for a while now. In 2017 they added remapping support for generic controllers via the Steam interface. My guess is that this might interfere with joy2 extension. I’ll test this in the next days and ask other devs and CT on Discord about this issue.

    Please login to see this link.
    Please login to see this link. | Please login to see this link. | Please login to see this link. | Please login to see this link.

  • Does it behave the same if you manually add an .exe to your steam library an launch from there? Just curious, cuz this is the only setup I can test right now and it works for me with both joy2 and Xbox gamepad setup.

    Another thing you can try: Add the library Please login to see this link.to your binary data, I was told a couple of years ago that this library missing can be the cause of joy2 not working correctly, don't know why tho, I include it since then.

    Please login to see this link.
    Please login to see this link. | Please login to see this link. | Please login to see this link. | Please login to see this link.

    Edited once, last by Julian82 (February 14, 2019 at 10:22 PM).

  • Ok, try the XINPUT thing I just edited. If that does not work, I'll ask some other devs tomorrow!

    Please login to see this link.
    Please login to see this link. | Please login to see this link. | Please login to see this link. | Please login to see this link.

  • same folder as your .mfa, add it to your binary data, then build the app

    Please login to see this link.
    Please login to see this link. | Please login to see this link. | Please login to see this link. | Please login to see this link.

  • Btw, I remember the Fusion game Please login to see this link.had some issues with gamepad support on launch too (although the game was supposed to fully support generic controllers) I think [MENTION=6]Kisguri[/MENTION] helped out with that, maybe he can help you out with some information what exactly is causing this.

    Please login to see this link.
    Please login to see this link. | Please login to see this link. | Please login to see this link. | Please login to see this link.

  • Alright, I'll let you know when I've collected some information on this. I'm sure there's a solution.

    Please login to see this link.
    Please login to see this link. | Please login to see this link. | Please login to see this link. | Please login to see this link.

  • [MENTION=25678]Naturium[/MENTION]: talked to CT and another dev on Discord. Joy2 is widely used on Steam and an issue of not working at all is not known, at least not if plugged-in before starting the app. Can you provide a code-snipped, either mfa or a .png illustrating how you use joy2? Cheers

    Please login to see this link.
    Please login to see this link. | Please login to see this link. | Please login to see this link. | Please login to see this link.

  • Here's a png of the code I use for example in the menu :
    Please login to see this attachment.

    If you need the mfa of the game i'll gladly send it in private message on discord/mail/twitter if you have one

  • Yes, got it! I’ll look at it this weekend, need to finish some stuff for my publisher until Friday!

    Please login to see this link.
    Please login to see this link. | Please login to see this link. | Please login to see this link. | Please login to see this link.

  • [MENTION=25678]Naturium[/MENTION]: Had a look at your gamepad readout. In general there seems nothing wrong and it works on my machine. I cannot test on Steam tho.
    There are two things that came to my mind to help you track the bug down further.

    1. Before the gamepads work, your game demands to assign an input device for each player and stores that value in an ini. Are your sure this ini file is saved and read out correctly in the Steam environment? I see in the "Battle" frame you set and read out the ini within one frame loop (line 4). This can be dangerous in some cases cuz if the load delays a bit for some reason the read out within the same frame loop may fail and set player gamepad "0". Long story short: Check if the ini reads out correctly on Steam, if not delay the read out of the ini a couple of milliseconds after initialization.

    2. Assuming joy2 may have a general problem of Steam (other devs on Discord could not confirm this), try to boil it down to a very simple .mfa that illustrates the issue.

    That's the only things that came up to my mind right now! Hope you get it fixed!

    Please login to see this link.
    Please login to see this link. | Please login to see this link. | Please login to see this link. | Please login to see this link.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!