Jump to content

Photo

[2.53] Left stick on gamepad pausing ZC


  • Please log in to reply
3 replies to this topic

#1 Moosh

Moosh

    Tiny Little Questmaker

  • ZC Developers

Posted 27 October 2018 - 06:36 PM

In previous versions of ZC, there was a way to assign a joystick button to pause the game (same as clicking the screen or pressing escape). That option is gone in 2.53, but clicking in the left stick (button 9 according to ZC) still pauses the game. Setting btn_p = 0 in zc.cfg or ag.cfg does nothing to fix it. I'm able to unassign the button just fine in 2.50.2, so I don't think it's a problem with my gamepad.

 

I'm currently using 2.53 build 31 to test this.



#2 Timelord

Timelord

    The Timelord

  • Banned
  • Location:Prydon Academy

Posted 28 October 2018 - 10:47 AM

In previous versions of ZC, there was a way to assign a joystick button to pause the game (same as clicking the screen or pressing escape). That option is gone in 2.53, but clicking in the left stick (button 9 according to ZC) still pauses the game. Setting btn_p = 0 in zc.cfg or ag.cfg does nothing to fix it. I'm able to unassign the button just fine in 2.50.2, so I don't think it's a problem with my gamepad.
 
I'm currently using 2.53 build 31 to test this.


Which beta ID--you can view this in the About utility in ZC/ZQuest; and is the directional control that you are using a dpad, or an analogue stick?

What brand and model controller are you using?

The config for btn_p is the map button. Is button 9 mapped to 'left' in the joypad buttons config panel?

Where was the configuration for this in older versions? I frankly don't remember it at all.





...


Do you have a gamepad with which you can try to replicate this? I literally see nothing in the code that could do this, nor any way to set a controller button to pause.
 

...


Do you happen to recall what config_int in ag.cfg used to do this, and where it was called?

The only controls of which I'm aware to pause the game, are in zc_sys.cpp, and those are FKeys, plus keys P, and A.

#3 Moosh

Moosh

    Tiny Little Questmaker

  • ZC Developers

Posted 28 October 2018 - 06:12 PM

Which beta ID--you can view this in the About utility in ZC/ZQuest;

LFSZkmC.png
This is all the About window gives me, as I said it says Build 31. For more context, this is the latest build that you've sent in the ZScript Discord, the one advertising the addition of dark theme.
 


and is the directional control that you are using a dpad, or an analogue stick?

Neither. It is a button. Most controllers have a button under the left and right analogue stick, when you press it down. I used that because the left and right triggers are pressure based, and ZC has never agreed with that.
 

What brand and model controller are you using?

EasySMX ESM-9100. I have not noticed anything different about this controller from other ones I've used for ZC. All the button configurations lined up with the last one I used.
 

The config for btn_p is the map button. Is button 9 mapped to 'left' in the joypad buttons config panel?

Really now?

btn_a = 1
btn_b = 2
btn_s = 8
btn_m = 9
btn_l = 5
btn_r = 6
btn_p = 7

I would've assumed s was for start, m was for map and p was for pause. This also would seem to line up with the order the inputs were added to the game. If those last two are reversed this could change everything...Yup. I just went in zc.cfg and unbound btn_m and it worked. Still stands that there's no way to do this in the ZC program and this should be either fixed or the button mapping should be deprecated entirely.

 

Where was the configuration for this in older versions? I frankly don't remember it at all.

2.50.2:

PU36exL.png

2.53:

XTX1dTa.png

 

In 2.50.2, there was no way to rebind directional inputs on a controller and Ex buttons were on a different page. 2.53 appears to have fixed this, but that Menu binding (Ohhhh, that's why it was btn_m) appears to have disappeared entirely. Unless I'm blind. Personally I think it should just be done away with. There's no useful application for having pausing ZC bound to a button when unpausing it (and navigating menus comfortably) uses a mouse anyways.


Edited by Moosh, 28 October 2018 - 06:19 PM.


#4 Timelord

Timelord

    The Timelord

  • Banned
  • Location:Prydon Academy

Posted 30 October 2018 - 04:07 PM

LFSZkmC.png
This is all the About window gives me, as I said it says Build 31. For more context, this is the latest build that you've sent in the ZScript Discord, the one advertising the addition of dark theme.
 


Neither. It is a button. Most controllers have a button under the left and right analogue stick, when you press it down. I used that because the left and right triggers are pressure based, and ZC has never agreed with that.
 

EasySMX ESM-9100. I have not noticed anything different about this controller from other ones I've used for ZC. All the button configurations lined up with the last one I used.
 

Really now?

btn_a = 1
btn_b = 2
btn_s = 8
btn_m = 9
btn_l = 5
btn_r = 6
btn_p = 7

I would've assumed s was for start, m was for map and p was for pause. This also would seem to line up with the order the inputs were added to the game. If those last two are reversed this could change everything...Yup. I just went in zc.cfg and unbound btn_m and it worked. Still stands that there's no way to do this in the ZC program and this should be either fixed or the button mapping should be deprecated entirely.

 

2.50.2:

PU36exL.png

2.53:

XTX1dTa.png

 

In 2.50.2, there was no way to rebind directional inputs on a controller and Ex buttons were on a different page. 2.53 appears to have fixed this, but that Menu binding (Ohhhh, that's why it was btn_m) appears to have disappeared entirely. Unless I'm blind. Personally I think it should just be done away with. There's no useful application for having pausing ZC bound to a button when unpausing it (and navigating menus comfortably) uses a mouse anyways.

 

 

Oh, it was the menu button that you were referencing, not an actual pause button.

 

I'll look into that. Saffith rewrote those dialogues, and I hadn't noticed that the menu button config was removed. I'll need to re-add it somewhere. (I'm not sure why he removed it.)

 

I didn't name these variables. I think that BtnP was originally meant to be mapped to SELECT, which was the pause control on the NES< but it was repurposed to the map when DN/WL introduced that feature.

 

Believe me, I had fun figuring that out.

 

I should add the beta ID, or change the Build ID to Beta, on that ZC dialogue. (ZQuest reports it.)




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users