DOSBox (and various downstream implementations) seems to have a problem starting, when a mapper defines a second controller but the (second) controller is not present.
It does not have the same issue when a single controller is defined, but that single controller is not present.
Example:
key_esc "stick_0 button 7" "key 27"
...works with zero or one controller.
key_esc "stick_0 button 7" "stick_1 button 7" "key 27"
....crashes with zero or one controller.
Extraneous definitions should just be ignored, I believe.
This is a workaround but I believe you cannot map the D-Pad to P2 controller, but mapping the D-Pad to P1 is fine. Games boot then (regardless of how many controllers are connected).
Is it fixed by 4346 ? or are you using the latest code already ?
I am not 100% with what you mean with mapping the d-pad to p2 controller. So I prefer to to "stick" to the non-working mapper lines.
I can't really reproduce the problem.
What is the setting of the joysticktype ?
I created a mapper file and replaced the esc key with that line that crashes according to you and started dosbox with one joystick attached.
Which version of DOSBox (svn or 0.74-3 ?)
Here's how to reproduce the issue (it makes no difference in the dosbox.conf which joystick type is selected or even if left alone as auto/default joystick):
I can work with it now I know this issue but can it be fixed more thoroughly than this workaround? As far as I know, they are the latest versions used in DOSBox 0.74r3, ECE, SVN_ECE, but I could be wrong on that.
Cheers for the help,
Pipmick
Last edit: Pipmick 2021-01-29
Thank you for the steps.
I was able to get it to crash.
I found the problem, but I discovered some other problems as well.
Well, I suppose that's a good thing so they can be fixed or amended to work properly. :)