XBOX One Controller

Linux geeks and Mac OS hipsters unite! A board for discussion of Supermodel on non-Windows platforms.
Forum rules
Keep it classy!

  • No ROM requests or links.
  • Do not ask to be a play tester.
  • Do not ask about release dates.
  • No drama!

XBOX One Controller

Postby fearbefore » Wed Nov 04, 2020 7:01 pm

Hello - first time post and sorry if this info has already been answered/posted.

I am on Mojave 10.14.4 (18E226).

I got Supermodel up and running but just have a non-responsive crosshair on the screen. Do I need an input command to activate my trackpad, and is it possible to use my bluetooth connected XBOX One controller as an input?

Also, any ideas how to solve that NVRAM error?

Attached are a few screenshots, thanks for your time and help on this. :D

Crosshair.jpg
Crosshair.jpg (135.7 KiB) Viewed 232 times


Terminal.jpg
Terminal.jpg (139.82 KiB) Viewed 232 times
fearbefore
 
Posts: 10
Joined: Wed Nov 04, 2020 6:35 pm

Re: XBOX One Controller

Postby Bart » Wed Nov 04, 2020 9:38 pm

You're using an ancient version :) See if you can build from the SVN source code directly.

Besides that, try to follow the procedure for configuring inputs and see what happens. Run:

Code: Select all
./supermodel -config-inputs


And then carefully read all the instructions printed in the terminal. I believe that Lost World is using the "gun" input. You should be able to use either the mouse or an analog joystick for that.
User avatar
Bart
Site Admin
 
Posts: 3086
Joined: Thu Sep 01, 2011 2:13 pm
Location: Reno, Nevada

Re: XBOX One Controller

Postby fearbefore » Wed Nov 04, 2020 11:00 pm

Thanks for the quick reply! I solved a majority of my issues by changing the directory in Terminal to the Supermodel folder. Now the crosshair responds to my trackpad and I don't get the NVRAM error.

As for running -config-inputs it doesn't seem to respond to the XBOX controller. If I run supermodel -print-inputs I can see the controller under the joystick options:
Screen Shot 2020-11-05 at 6.26.35 PM.png
Screen Shot 2020-11-05 at 6.26.35 PM.png (60.73 KiB) Viewed 229 times


But when I run -config-inputs and select the blank Supermodel window, it doesn't respond to anything I press on the controller.
Screen Shot 2020-11-05 at 6.27.58 PM.jpg
Screen Shot 2020-11-05 at 6.27.58 PM.jpg (185.03 KiB) Viewed 229 times


Also, I had a look at the latest build of Supermodel - building from the SVN source code directly is a bit over my head, but I did notice there was a Games.xml in Config that I did not have in 0.2a where <input type="analog_gun1" /> is specified for The Lost World. Would I need to copy this xml to my 0.2a build and specify <input type="joystick1" />

So at this point I can get The Lost World going and use the trackpad/keyboard for play, but just can't figure out how to select/configure the XBOX controller within Terminal.
fearbefore
 
Posts: 10
Joined: Wed Nov 04, 2020 6:35 pm

Re: XBOX One Controller

Postby fearbefore » Thu Nov 05, 2020 3:49 pm

OK, I have now been able to map the XBOX One controller joystick, but after I accept (y) and press q it is still non-responsive in the game and only responds to my trackpad. I tried mapping a few buttons though on the controller and they are responsive - just the crosshairs respond to the trackpad and not the joystick.

Screen Shot 2020-11-06 at 11.43.11 AM.jpg
Screen Shot 2020-11-06 at 11.43.11 AM.jpg (175.71 KiB) Viewed 217 times


Also wanna apologize in advance if I am missing something fairly obvious as it seems I was in mapping my controller. I feel like there is a simple step I am not getting right...
fearbefore
 
Posts: 10
Joined: Wed Nov 04, 2020 6:35 pm

Re: XBOX One Controller

Postby fearbefore » Thu Nov 05, 2020 10:16 pm

OK, I finally got this figured out. My issue was that I was not mapping the thumbstick correctly. So I guess this thread was really me answering my own questions, but thanks for the guidance and I can confirm the XBOX One controller works flawlessly when connected via Bluetooth and needs no additional drivers.

I will set a notification to the thread so if anyone else needs help with getting an XBOX One controller working with Supermodel on OSX post here and I will respond.

:mrgreen:
fearbefore
 
Posts: 10
Joined: Wed Nov 04, 2020 6:35 pm

Re: XBOX One Controller

Postby Bart » Fri Nov 06, 2020 2:03 pm

Glad you got it sorted. When using -config-inputs, you need to have the blank window selected, by the way. It's a little unintuitive. Because we lack a GUI or even text rendering, we write instructions to the terminal but the inputs are only picked up by the Supermodel window.
User avatar
Bart
Site Admin
 
Posts: 3086
Joined: Thu Sep 01, 2011 2:13 pm
Location: Reno, Nevada

Re: XBOX One Controller

Postby fearbefore » Fri Nov 06, 2020 3:41 pm

Bart wrote:Glad you got it sorted. When using -config-inputs, you need to have the blank window selected, by the way. It's a little unintuitive. Because we lack a GUI or even text rendering, we write instructions to the terminal but the inputs are only picked up by the Supermodel window.


You have done a really good job with it all - I have zero coding skills and barely use Terminal but I was able to figure it all out with the instructions on screen. Super excited to play this game without spending all my quarters before the final stage.
fearbefore
 
Posts: 10
Joined: Wed Nov 04, 2020 6:35 pm


Return to Alternative Fashion

Who is online

Users browsing this forum: No registered users and 0 guests

cron