Jump to content

Photo

World Championship Baseball controller help

intellivision controller jzintv retropie

2 replies to this topic

#1 brasskat OFFLINE  

brasskat

    Combat Commando

  • 2 posts

Posted Thu May 18, 2017 7:51 PM

Hi All,

 

Hoping someone can help me.  I am trying to get a wireless 8BITDO controller working with jzintv on RetroPie with World Championship Baseball.  I can use the keyboard and I can switch to the controller by toggling F7 - but I can only use the directional keys which are mapped to the keypad - but not the disc.  That is, I can activate or throw to a player but can't move the player with the joystick.  I know that my keyboard hackfile is working - the reset and power mappings work.  For some reason the disc mappings do not work on this game alone.  My hackfile is below.  Any ideas?  Other games are working fine. Thanks in advance.

 

 

 

; -----------------------------------------------------------------------------------------
MAP 0      ; keymap 0 (default keymap)
; -----------------------------------------------------------------------------------------
; ***** Joystick #0 - Left Controller *****
; ** Side Buttons and Numeric Keypad **
JS0_BTN_06 PD0L_A_T
JS0_BTN_07 PD0L_A_T
JS0_BTN_08 PD0L_A_L
JS0_BTN_09 PD0L_A_R
JS0_HAT0_NW PD0L_KP1
JS0_HAT0_N PD0L_KP2
JS0_HAT0_NE PD0L_KP3
JS0_HAT0_W PD0L_KP4
JS0_BTN_04 PD0L_KP5
JS0_HAT0_E PD0L_KP6
JS0_HAT0_SW PD0L_KP7
JS0_HAT0_S PD0L_KP8
JS0_HAT0_SE PD0L_KP9
JS0_BTN_04 PD0L_KPC
JS0_BTN_01 PD0L_KP0
JS0_BTN_00 PD0L_KPE
JS0_BTN_10 RESET
JS0_BTN_11 QUIT
; ** Direction Disc **
JS0_N      PD0L_J_N
JS0_NNE    PD0L_J_NNE
JS0_NE     PD0L_J_NE
JS0_ENE    PD0L_J_ENE
JS0_E      PD0L_J_E
JS0_ESE    PD0L_J_ESE
JS0_SE     PD0L_J_SE
JS0_SSE    PD0L_J_SSE
JS0_S      PD0L_J_S
JS0_SSW    PD0L_J_SSW
JS0_SW     PD0L_J_SW
JS0_WSW    PD0L_J_WSW
JS0_W      PD0L_J_W
JS0_WNW    PD0L_J_WNW
JS0_NW     PD0L_J_NW
JS0_NNW    PD0L_J_NNW
 
; ***** Joystick #1 - Right Controller *****
; ** Side Buttons and Numeric Keypad **
JS1_BTN_06 PD0R_A_T
JS1_BTN_07 PD0R_A_T
JS1_BTN_08 PD0R_A_L
JS1_BTN_09 PD0R_A_R
JS1_HAT0_NW PD0R_KP1
JS1_HAT0_N PD0R_KP2
JS1_HAT0_NE PD0R_KP3
JS1_HAT0_W PD0R_KP4
JS1_BTN_04 PD0R_KP5
JS1_HAT0_E PD0R_KP6
JS1_HAT0_SW PD0R_KP7
JS1_HAT0_S PD0R_KP8
JS1_HAT0_SE PD0R_KP9
JS1_BTN_04 PD0R_KPC
JS1_BTN_01 PD0R_KP0
JS1_BTN_00 PD0R_KPE
JS1_BTN_10 RESET
JS1_BTN_11 QUIT

; ** Direction Disc **
JS1_N      PD0R_J_N
JS1_NNE    PD0R_J_NNE
JS1_NE     PD0R_J_NE
JS1_ENE    PD0R_J_ENE
JS1_E      PD0R_J_E
JS1_ESE    PD0R_J_ESE
JS1_SE     PD0R_J_SE
JS1_SSE    PD0R_J_SSE
JS1_S      PD0R_J_S
JS1_SSW    PD0R_J_SSW
JS1_SW     PD0R_J_SW
JS1_WSW    PD0R_J_WSW
JS1_W      PD0R_J_W
JS1_WNW    PD0R_J_WNW
JS1_NW     PD0R_J_NW
JS1_NNW    PD0R_J_NNW
 
; -----------------------------------------------------------------------------------------
MAP 1      ; ECS 1 (ECS keymap)
; -----------------------------------------------------------------------------------------
; ***** Joystick #0 - Left Controller *****
; ** Side Buttons and Numeric Keypad **
JS0_BTN_06 PD0L_A_T
JS0_BTN_07 PD0L_A_T
JS0_BTN_08 PD0L_A_L
JS0_BTN_09 PD0L_A_R
JS0_HAT0_NW PD0L_KP1
JS0_HAT0_N PD0L_KP2
JS0_HAT0_NE PD0L_KP3
JS0_HAT0_W PD0L_KP4
JS0_BTN_04 PD0L_KP5
JS0_HAT0_E PD0L_KP6
JS0_HAT0_SW PD0L_KP7
JS0_HAT0_S PD0L_KP8
JS0_HAT0_SE PD0L_KP9
JS0_BTN_04 PD0L_KPC
JS0_BTN_01 PD0L_KP0
JS0_BTN_00 PD0L_KPE
JS0_BTN_10 RESET
JS0_BTN_11 QUIT
 
; ** Direction Disc **
JS0_N      PD0L_J_N
JS0_NNE    PD0L_J_NNE
JS0_NE     PD0L_J_NE
JS0_ENE    PD0L_J_ENE
JS0_E      PD0L_J_E
JS0_ESE    PD0L_J_ESE
JS0_SE     PD0L_J_SE
JS0_SSE    PD0L_J_SSE
JS0_S      PD0L_J_S
JS0_SSW    PD0L_J_SSW
JS0_SW     PD0L_J_SW
JS0_WSW    PD0L_J_WSW
JS0_W      PD0L_J_W
JS0_WNW    PD0L_J_WNW
JS0_NW     PD0L_J_NW
JS0_NNW    PD0L_J_NNW
 
; ***** Joystick #1 - Right Controller *****
; ** Side Buttons and Numeric Keypad **
JS1_BTN_06 PD0R_A_T
JS1_BTN_07 PD0R_A_T
JS1_BTN_08 PD0R_A_L
JS1_BTN_09 PD0R_A_R
JS1_HAT0_NW PD0R_KP1
JS1_HAT0_N PD0R_KP2
JS1_HAT0_NE PD0R_KP3
JS1_HAT0_W PD0R_KP4
JS1_BTN_04 PD0R_KP5
JS1_HAT0_E PD0R_KP6
JS1_HAT0_SW PD0R_KP7
JS1_HAT0_S PD0R_KP8
JS1_HAT0_SE PD0R_KP9
JS1_BTN_04 PD0R_KPC
JS1_BTN_01 PD0R_KP0
JS1_BTN_00 PD0R_KPE
JS1_BTN_10 RESET
JS1_BTN_11 QUIT

; ** Direction Disc **
JS1_N      PD0R_J_N
JS1_NNE    PD0R_J_NNE
JS1_NE     PD0R_J_NE
JS1_ENE    PD0R_J_ENE
JS1_E      PD0R_J_E
JS1_ESE    PD0R_J_ESE
JS1_SE     PD0R_J_SE
JS1_SSE    PD0R_J_SSE
JS1_S      PD0R_J_S
JS1_SSW    PD0R_J_SSW
JS1_SW     PD0R_J_SW
JS1_WSW    PD0R_J_WSW
JS1_W      PD0R_J_W
JS1_WNW    PD0R_J_WNW
JS1_NW     PD0R_J_NW
JS1_NNW    PD0R_J_NNW

 

 

 

 



#2 mr_me OFFLINE  

mr_me

    River Patroller

  • 2,220 posts
  • Location:Ontario

Posted Fri May 19, 2017 3:53 AM

Unless you remap the function keys,  F7 activates "map 2", which you haven't defined.  F5 activates "map 0" and F6 "map 1".  Because "map 2" isn't defined jzintv uses default mappings and by default it maps the first system joystick to the left Intellivision controller.  By default jzintv maps the first controller's d-pad (JS0_HAT0) to the right Intellivision controller keypad.

 

The problem is World Championship Baseball uses the right Intellivision controller when playing one-player against the computer.  I'm assuming you have only one game controller hooked up.  There isn't a simple way to swap left and right controllers in jzintv, I suggest using "map 1"/F6 to swap them.  Just edit your hackfile and switchup L and R in "map 1"  i.e. JS0_BTN_06  PD0R_A_T etc..  You can get jzintv to use map 1 by default for a game by adding -m1 to the command.



#3 brasskat OFFLINE  

brasskat

    Combat Commando

  • Topic Starter
  • 2 posts

Posted Fri May 19, 2017 5:02 AM

Success!  I swapped the JS0 to Right and JS1 to Left as you suggested.  For  anyone interested, here is the corrected hack file:

 

Thanks so much!

 

; -----------------------------------------------------------------------------------------
MAP 0      ; keymap 0 (default keymap)
; -----------------------------------------------------------------------------------------
; ***** Joystick #0 - Left Controller *****
; ** Side Buttons and Numeric Keypad **
JS0_BTN_06 PD0L_A_T
JS0_BTN_07 PD0L_A_T
JS0_BTN_08 PD0L_A_L
JS0_BTN_09 PD0L_A_R
JS0_HAT0_NW PD0L_KP1
JS0_HAT0_N PD0L_KP2
JS0_HAT0_NE PD0L_KP3
JS0_HAT0_W PD0L_KP4
JS0_BTN_04 PD0L_KP5
JS0_HAT0_E PD0L_KP6
JS0_HAT0_SW PD0L_KP7
JS0_HAT0_S PD0L_KP8
JS0_HAT0_SE PD0L_KP9
JS0_BTN_04 PD0L_KPC
JS0_BTN_01 PD0L_KP0
JS0_BTN_00 PD0L_KPE
JS0_BTN_10 RESET
JS0_BTN_11 QUIT
; ** Direction Disc **
JS0_N      PD0L_J_N
JS0_NNE    PD0L_J_NNE
JS0_NE     PD0L_J_NE
JS0_ENE    PD0L_J_ENE
JS0_E      PD0L_J_E
JS0_ESE    PD0L_J_ESE
JS0_SE     PD0L_J_SE
JS0_SSE    PD0L_J_SSE
JS0_S      PD0L_J_S
JS0_SSW    PD0L_J_SSW
JS0_SW     PD0L_J_SW
JS0_WSW    PD0L_J_WSW
JS0_W      PD0L_J_W
JS0_WNW    PD0L_J_WNW
JS0_NW     PD0L_J_NW
JS0_NNW    PD0L_J_NNW
 
; ***** Joystick #1 - Right Controller *****
; ** Side Buttons and Numeric Keypad **
JS1_BTN_06 PD0R_A_T
JS1_BTN_07 PD0R_A_T
JS1_BTN_08 PD0R_A_L
JS1_BTN_09 PD0R_A_R
JS1_HAT0_NW PD0R_KP1
JS1_HAT0_N PD0R_KP2
JS1_HAT0_NE PD0R_KP3
JS1_HAT0_W PD0R_KP4
JS1_BTN_04 PD0R_KP5
JS1_HAT0_E PD0R_KP6
JS1_HAT0_SW PD0R_KP7
JS1_HAT0_S PD0R_KP8
JS1_HAT0_SE PD0R_KP9
JS1_BTN_04 PD0R_KPC
JS1_BTN_01 PD0R_KP0
JS1_BTN_00 PD0R_KPE
JS1_BTN_10 RESET
JS1_BTN_11 QUIT

; ** Direction Disc **
JS1_N      PD0R_J_N
JS1_NNE    PD0R_J_NNE
JS1_NE     PD0R_J_NE
JS1_ENE    PD0R_J_ENE
JS1_E      PD0R_J_E
JS1_ESE    PD0R_J_ESE
JS1_SE     PD0R_J_SE
JS1_SSE    PD0R_J_SSE
JS1_S      PD0R_J_S
JS1_SSW    PD0R_J_SSW
JS1_SW     PD0R_J_SW
JS1_WSW    PD0R_J_WSW
JS1_W      PD0R_J_W
JS1_WNW    PD0R_J_WNW
JS1_NW     PD0R_J_NW
JS1_NNW    PD0R_J_NNW
; -----------------------------------------------------------------------------------------
MAP 1     ; WCB JS0 = Right, JS1 = Left
; -----------------------------------------------------------------------------------------
; ***** Joystick #0 - Left Controller *****
; ** Side Buttons and Numeric Keypad **
JS0_BTN_06 PD0R_A_T
JS0_BTN_07 PD0R_A_T
JS0_BTN_08 PD0R_A_L
JS0_BTN_09 PD0R_A_R
JS0_HAT0_NW PD0R_KP1
JS0_HAT0_N PD0R_KP2
JS0_HAT0_NE PD0R_KP3
JS0_HAT0_W PD0R_KP4
JS0_BTN_04 PD0R_KP5
JS0_HAT0_E PD0R_KP6
JS0_HAT0_SW PD0R_KP7
JS0_HAT0_S PD0R_KP8
JS0_HAT0_SE PD0R_KP9
JS0_BTN_04 PD0R_KPC
JS0_BTN_01 PD0R_KP0
JS0_BTN_00 PD0R_KPE
JS0_BTN_10 RESET
JS0_BTN_11 QUIT
; ** Direction Disc **
JS0_N      PD0R_J_N
JS0_NNE    PD0R_J_NNE
JS0_NE     PD0R_J_NE
JS0_ENE    PD0R_J_ENE
JS0_E      PD0R_J_E
JS0_ESE    PD0R_J_ESE
JS0_SE     PD0R_J_SE
JS0_SSE    PD0R_J_SSE
JS0_S      PD0R_J_S
JS0_SSW    PD0R_J_SSW
JS0_SW     PD0R_J_SW
JS0_WSW    PD0R_J_WSW
JS0_W      PD0R_J_W
JS0_WNW    PD0R_J_WNW
JS0_NW     PD0R_J_NW
JS0_NNW    PD0R_J_NNW
 
; ***** Joystick #1 - Right Controller *****
; ** Side Buttons and Numeric Keypad **
JS1_BTN_06 PD0L_A_T
JS1_BTN_07 PD0L_A_T
JS1_BTN_08 PD0L_A_L
JS1_BTN_09 PD0R_A_R
JS1_HAT0_NW PD0L_KP1
JS1_HAT0_N PD0L_KP2
JS1_HAT0_NE PD0L_KP3
JS1_HAT0_W PD0L_KP4
JS1_BTN_04 PD0L_KP5
JS1_HAT0_E PD0L_KP6
JS1_HAT0_SW PD0L_KP7
JS1_HAT0_S PD0L_KP8
JS1_HAT0_SE PD0L_KP9
JS1_BTN_04 PD0L_KPC
JS1_BTN_01 PD0L_KP0
JS1_BTN_00 PD0L_KPE
JS1_BTN_10 RESET
JS1_BTN_11 QUIT

; ** Direction Disc **
JS1_N      PD0L_J_N
JS1_NNE    PD0L_J_NNE
JS1_NE     PD0L_J_NE
JS1_ENE    PD0L_J_ENE
JS1_E      PD0L_J_E
JS1_ESE    PD0L_J_ESE
JS1_SE     PD0L_J_SE
JS1_SSE    PD0L_J_SSE
JS1_S      PD0L_J_S
JS1_SSW    PD0L_J_SSW
JS1_SW     PD0L_J_SW
JS1_WSW    PD0L_J_WSW
JS1_W      PD0L_J_W
JS1_WNW    PD0L_J_WNW
JS1_NW     PD0L_J_NW
JS1_NNW    PD0L_J_NNW          






Also tagged with one or more of these keywords: intellivision, controller, jzintv, retropie

0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users