GRS Star Wars flight yoke issues

Installing ARpiCADE for the first time? Having issues? Check here first for solutions and tips on installing.

Moderator: dee2eR

User avatar
cool_factor
Legendary Contributor
Legendary Contributor
Posts: 332
Joined: Tue Sep 26, 2017 10:55 am
Location: Fort Worth TX

Re: GRS Star Wars flight yoke issues

Post by cool_factor » Wed Apr 26, 2023 12:58 pm

:(

Well, did in game testing, now MAME 172, 203, 230 sees the GRS as Joy1. So aggravating. The hotkeys are partially working, I can ESC game holding P1 down, cannot coin up, can move around ATTRACT with Joy and select/launch games. If I change COIN 1 to P1 Joy2 Button 0 I can coin up. jtest still shows correctly for js0-js2 and js3 shows as GRS fy. Thinking MAME is the problem? I am at a loss right now. Small victory, small defeat.

User avatar
cool_factor
Legendary Contributor
Legendary Contributor
Posts: 332
Joined: Tue Sep 26, 2017 10:55 am
Location: Fort Worth TX

Re: GRS Star Wars flight yoke issues

Post by cool_factor » Thu Apr 27, 2023 12:49 pm

I can 100% confirm js0-js2 remain the same with GRS powered off, power it on at attract mode and js0-js2 still remain the same. Power on GRS in attract then launch game in mame and Joy 1 (becomes joy2) and joy2 (becomes joy3) GRS shows as joy1.

dee2eR
Inventor
Inventor
Posts: 1871
Joined: Tue Aug 22, 2017 2:07 pm

Re: GRS Star Wars flight yoke issues

Post by dee2eR » Thu Apr 27, 2023 1:54 pm

That we can fix in mame.ini, for at least 172, 203 and 230, I think. Very far down in the file you'll want to set
#
# SDL JOYSTICK MAPPING
#
joy_idx1 GPIOController1
joy_idx2 GPIOController2
you can hard code the others if it matters too. I think I have the names right but I don't have it in front of me at the moment, I can check on the SD card I was using the other day if you need.

Do you have access to /home/mame172/mame.ini etc? I can post the terminal commands to do it there if you need, maybe hard to read the text editor on a arcade monitor though.

User avatar
cool_factor
Legendary Contributor
Legendary Contributor
Posts: 332
Joined: Tue Sep 26, 2017 10:55 am
Location: Fort Worth TX

Re: GRS Star Wars flight yoke issues

Post by cool_factor » Thu Apr 27, 2023 5:19 pm

Yes I can edit from my PC.

Nearly all my games are in 172 (136 games) then 203 (7 games), 8 in advmame, 2 in fba, 2 in daphne, 1 in PlayStation.

2 jamma joysticks (actually 3 but its wired into jamma 1 joystick and can be removed (youve seen my videos of my 2 cabs)

1 usb ultimarc spinner
1 usb ultimarc trackball
and the usb GRS star wars flight yoke

The spinner and trackball games are so few I can just assign those "in game" if need be as well. Just getting the jamma joys and the GRS fixed would be HUGE, especially when someone else comes along and finds the "fix" once its done.
Even just getting the joys to be joy1 and joy2 across the board would help, the GRS flight yoke has less than 10 games (for me at least, Ive read spyhunter and lunar lander can be played with it). Next will be fixing the "dead zone" but I think thats just a mame setting. Again, THANKS FOR ALL YOUR HELP!!!!!!!!!!

On a side note: Any way you could make me an admin on this board? As you can see I'm always here helping where I can and always report the spam/adverts on this site? Just a thought.

User avatar
cool_factor
Legendary Contributor
Legendary Contributor
Posts: 332
Joined: Tue Sep 26, 2017 10:55 am
Location: Fort Worth TX

Re: GRS Star Wars flight yoke issues

Post by cool_factor » Fri Apr 28, 2023 1:10 am

I made these and not sure if they're even correct or will work


99-starwars.rules

ATTRS{idVendor}=="32be", ATTRS{idProduct}=="1402", MODE="0666"
KERNEL=="js?", ENV{ID_VENDOR}=="Baolian_industry_Co._Ltd.", ENV{ID_MODEL}=="BL_flight_yoke_#1", NAME="input/js3"

--------------------

Also these 3 cfg files:

jammajoytest.cfg

<mameconfig version="10">
<system name="default">

<!-- Jamma Version 1.0 input configuration file -->
<input>
<mapdevice device="15000000010000000100000000010000" controller="JOYCODE_1" />
<mapdevice device="15000000010000000200000000010000" controller="JOYCODE_2" />
<mapdevice device="03000000be3200000214000011010000" controller="JOYCODE_3" />
</input>
</system>

</mameconfig>
---------------------------------------------
jammajoytest2.cfg
<mameconfig version="10">
<system name="default">
---------------------------------------------
<!-- Jamma Version 1.0 input configuration file -->
<input>
<mapdevice device="GPIOController1" controller="JOYCODE_1" />
<mapdevice device="GPIOController2" controller="JOYCODE_2" />
<mapdevice device="BaolianindustryCo.,Ltd.BLflightyoke#1" controller="JOYCODE_3" />
</input>
</system>

</mameconfig>
---------------------------------------------
I haven't tried any of them because I'm not sure where to put them or if they'll even work.
Last edited by cool_factor on Fri Apr 28, 2023 12:37 pm, edited 3 times in total.

User avatar
cool_factor
Legendary Contributor
Legendary Contributor
Posts: 332
Joined: Tue Sep 26, 2017 10:55 am
Location: Fort Worth TX

Re: GRS Star Wars flight yoke issues

Post by cool_factor » Fri Apr 28, 2023 1:51 am

used mame230 and ran ./mamearcade -v >joy.txt (this was ran when everything was "on" so the order is messed up but it gives me the info we need I think)

results:

Attempting load of mame.ini
Parsing mame.ini
Attempting load of mame.ini
Parsing mame.ini
Reading translation file English: 1 strings, original table at word offset 7, translated table at word offset 9
Loaded 0 translations from file English
Starting plugin data...
Attempting load of mame.ini
Parsing mame.ini
Attempting load of mame.ini
Parsing mame.ini
Available videodrivers: x11 KMSDRM RPI dummy
Current Videodriver: KMSDRM
Display #0
Renderdrivers:
opengl (0x0)
opengles2 (0x0)
software (0x0)
Available audio drivers:
alsa
sndio
dsp
disk
dummy
Build version: 0.230 (unknown)
Build architecure:
Build defines 1: SDLMAME_UNIX=1 SDLMAME_X11=1 SDLMAME_LINUX=1
Build defines 1: LSB_FIRST=1
SDL/OpenGL defines: SDL_COMPILEDVERSION=2010 USE_OPENGL=1
Compiler defines A: __GNUC__=8 __GNUC_MINOR__=3 __GNUC_PATCHLEVEL__=0 __VERSION__="8.3.0"
Compiler defines B: __unix__=1
Compiler defines C: __USE_FORTIFY_LEVEL=0
Enter init_monitors
Adding monitor screen0 (960 x 480)
Leave init_monitors
Enter sdlwindow_init
Using SDL multi-window soft driver (SDL 2.0+)

Hints:
SDL_FRAMEBUFFER_ACCELERATION (NULL)
SDL_RENDER_DRIVER (NULL)
SDL_RENDER_OPENGL_SHADERS (NULL)
SDL_RENDER_SCALE_QUALITY (NULL)
SDL_RENDER_VSYNC (NULL)
SDL_VIDEO_X11_XVIDMODE (NULL)
SDL_VIDEO_X11_XINERAMA (NULL)
SDL_VIDEO_X11_XRANDR (NULL)
SDL_GRAB_KEYBOARD (NULL)
SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS (NULL)
SDL_IOS_IDLE_TIMER_DISABLED (NULL)
SDL_IOS_ORIENTATIONS (NULL)
SDL_XINPUT_ENABLED (NULL)
SDL_GAMECONTROLLERCONFIG (NULL)
SDL_JOYSTICK_ALLOW_BACKGROUND_EVENTS (NULL)
SDL_ALLOW_TOPMOST (NULL)
SDL_TIMER_RESOLUTION (NULL)
SDL_RENDER_DIRECT3D_THREADSAFE (NULL)
SDL_VIDEO_ALLOW_SCREENSAVER (NULL)
SDL_ACCELEROMETER_AS_JOYSTICK (NULL)
SDL_MAC_CTRL_CLICK_EMULATE_RIGHT_CLICK (NULL)
SDL_VIDEO_WIN_D3DCOMPILER (NULL)
SDL_VIDEO_WINDOW_SHARE_PIXEL_FORMAT (NULL)
SDL_VIDEO_MAC_FULLSCREEN_SPACES (NULL)
SDL_MOUSE_RELATIVE_MODE_WARP (NULL)
SDL_RENDER_DIRECT3D11_DEBUG (NULL)
SDL_VIDEO_HIGHDPI_DISABLED (NULL)
SDL_WINRT_PRIVACY_POLICY_URL (NULL)
SDL_WINRT_PRIVACY_POLICY_LABEL (NULL)
SDL_WINRT_HANDLE_BACK_BUTTON (NULL)
Leave sdlwindow_init
Enter sdl_info::create
window: using renderer opengl
renderer: flag SDL_RENDERER_PRESENTVSYNC
renderer: flag SDL_RENDERER_ACCELERATED
Leave renderer_sdl2::create
Audio: Start initialization
Audio: Driver is alsa
Audio: frequency: 48000, channels: 2, samples: 512
sdl_create_buffers: creating stream buffer of 25600 bytes
Audio: End initialization
Keyboard: Start initialization
Input: Adding keyboard #0: System keyboard (device id: System keyboard)
Keyboard: Registered System keyboard
Keyboard: End initialization
Mouse: Start initialization
Input: Adding mouse #0: System mouse (device id: System mouse)
Mouse: Registered System mouse
Mouse: End initialization
Joystick: Start initialization
Input: Adding joystick #0: BaolianindustryCo.,Ltd.BLflightyoke#1 (device id: 03000000be3200000214000011010000)
Joystick: Baolian industry Co., Ltd. BL flight yoke #1 [GUID 03000000be3200000214000011010000]
Joystick: ... 2 axes, 15 buttons 0 hats 0 balls
Joystick: ... Physical id 0 mapped to logical id 1
Joystick: ... Does not have haptic capability
Input: Adding joystick #1: XboxGamepad(userspacedriver) (device id: 0000000058626f782047616d65706100)
Joystick: Xbox Gamepad (userspace driver) [GUID 0000000058626f782047616d65706100]
Joystick: ... 4 axes, 15 buttons 0 hats 0 balls
Joystick: ... Physical id 1 mapped to logical id 2
Joystick: ... Does not have haptic capability
Input: Adding joystick #2: GPIOController1 (device id: 15000000010000000100000000010000)
Joystick: GPIO Controller 1 [GUID 15000000010000000100000000010000]
Joystick: ... 2 axes, 9 buttons 0 hats 0 balls
Joystick: ... Physical id 2 mapped to logical id 3
Joystick: ... Does not have haptic capability
Input: Adding joystick #3: GPIOController2 (device id: 15000000010000000200000000010000)
Joystick: GPIO Controller 2 [GUID 15000000010000000200000000010000]
Joystick: ... 2 axes, 9 buttons 0 hats 0 balls
Joystick: ... Physical id 3 mapped to logical id 4
Joystick: ... Does not have haptic capability
Joystick: End initialization
Optional memory region ':screen' not found
Starting No Driver Loaded ':'
(missing dependencies; rescheduling)
Starting Video Screen ':screen'
Starting No Driver Loaded ':'
Checking for icons in directory icons
No candidate icons found for machines
Attempting to parse: default.cfg
Attempting to parse: ___empty.cfg
Searching font Liberation Sans in -. path/s
font Liberation Sans|Regular is not TrueType or BDF, using MAME default
sdl_kill: closing audio
Enter sdlwindow_exit
Leave sdlwindow_exit
Last edited by cool_factor on Fri Apr 28, 2023 12:40 pm, edited 1 time in total.

User avatar
cool_factor
Legendary Contributor
Legendary Contributor
Posts: 332
Joined: Tue Sep 26, 2017 10:55 am
Location: Fort Worth TX

Re: GRS Star Wars flight yoke issues

Post by cool_factor » Fri Apr 28, 2023 3:01 am

lsusb:

GRS device is 32be:1402 (weird that its different from above: Baolian industry Co., Ltd. BL flight yoke #1 [GUID 03000000be3200000214000011010000])

Device 003 is the USB keyboard
Attachments
20230427_213509.jpg
20230427_213509.jpg (201.23 KiB) Viewed 2863 times
Last edited by cool_factor on Fri Apr 28, 2023 12:42 pm, edited 1 time in total.

User avatar
cool_factor
Legendary Contributor
Legendary Contributor
Posts: 332
Joined: Tue Sep 26, 2017 10:55 am
Location: Fort Worth TX

Re: GRS Star Wars flight yoke issues

Post by cool_factor » Fri Apr 28, 2023 3:15 am

Not sure what I ran for these results, I think it was udevadm info -q all -n /dev/input/js3
Attachments
Screenshot_20230427-221248_Gallery.jpg
Screenshot_20230427-221248_Gallery.jpg (122.91 KiB) Viewed 2861 times

User avatar
cool_factor
Legendary Contributor
Legendary Contributor
Posts: 332
Joined: Tue Sep 26, 2017 10:55 am
Location: Fort Worth TX

Re: GRS Star Wars flight yoke issues

Post by cool_factor » Fri Apr 28, 2023 5:22 pm

dee2eR wrote:
Thu Apr 27, 2023 1:54 pm
That we can fix in mame.ini, for at least 172, 203 and 230, I think. Very far down in the file you'll want to set
#
# SDL JOYSTICK MAPPING
#
joy_idx1 GPIOController1
joy_idx2 GPIOController2
you can hard code the others if it matters too. I think I have the names right but I don't have it in front of me at the moment, I can check on the SD card I was using the other day if you need.

Do you have access to /home/mame172/mame.ini etc? I can post the terminal commands to do it there if you need, maybe hard to read the text editor on a arcade monitor though.
So this???

#
# SDL JOYSTICK MAPPING
#
joy_idx1 GPIOController1
joy_idx2 GPIOController2
joy_idx3 BaolianindustryCo.,Ltd.BLflightyoke#1

User avatar
cool_factor
Legendary Contributor
Legendary Contributor
Posts: 332
Joined: Tue Sep 26, 2017 10:55 am
Location: Fort Worth TX

Re: GRS Star Wars flight yoke issues

Post by cool_factor » Sat Apr 29, 2023 12:59 pm

While searching I found a post that a Windows PC recognizes the GRS as a game pad. Not sure if this is useful or not...

Post Reply