Jump to content
IGNORED

How to get keyboard hackfile for Jzintv working on Ubuntu 14.04


IntyMan
 Share

Recommended Posts

The jzintv emulator works great on Ubuntu 14.04, except I can't get jzintv to open the hackfile.

Jzintv version: Linux 64-bit build. jzintv-20150120-linux-x86-64.zip
I got this from: http://atariage.com/forums/topic/234067-jzintv-2015-01-20-build/

In the post It said bugs in hackfile were fixed, so I tried that out with no success.

I used the command: jzintv -z3 -f1 Baseball.bin --kbdhackfile="~/jzintv/rom/hackfile.cfg"

All is fine till I use the hackfile tag: --kbdhackfile="~/jzintv/rom/hackfile.cfg"
I get error: Couldn't open keyboard map file '~/jzintv/rom/hackfile.cfg'

Jzintv can read input from intellivision controller via Ultimate Pc Interface.
jzintv -z3 -f1 event_diag.rom

I can see all the buttons and directional input on both controllers.

This is the hackfile I used below.

; -----------------------------------------------------------------------------------------
map 0      ; activate with F5
; -----------------------------------------------------------------------------------------

; map the Keyboard arrow keys

UP         KEYB_UP
DOWN       KEYB_DOWN
RIGHT      KEYB_RIGHT
LEFT       KEYB_LEFT

; map for the Ultimate PC Interface - joystick #0 - left controller

JS0_BTN_03 PAUSE
JS0_BTN_04 RESET
JS0_BTN_05 QUIT

JS0_BTN_00 PD0L_A_T
JS0_BTN_01 PD0L_A_L
JS0_BTN_02 PD0L_A_R
JS0_BTN_08 PD0L_KP1
JS0_BTN_09 PD0L_KP2
JS0_BTN_10 PD0L_KP3
JS0_BTN_11 PD0L_KP4
JS0_BTN_12 PD0L_KP5
JS0_BTN_13 PD0L_KP6
JS0_BTN_14 PD0L_KP7
JS0_BTN_15 PD0L_KP8
JS0_BTN_16 PD0L_KP9
JS0_BTN_17 PD0L_KPC
JS0_BTN_18 PD0L_KP0
JS0_BTN_19 PD0L_KPE

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

; map for the Ultimate PC Interface - joystick #1 - right controller

JS1_BTN_03 PAUSE
JS1_BTN_04 RESET
JS1_BTN_05 QUIT

JS1_BTN_00 PD0R_A_T
JS1_BTN_01 PD0R_A_L
JS1_BTN_02 PD0R_A_R
JS1_BTN_08 PD0R_KP1
JS1_BTN_09 PD0R_KP2
JS1_BTN_10 PD0R_KP3
JS1_BTN_11 PD0R_KP4
JS1_BTN_12 PD0R_KP5
JS1_BTN_13 PD0R_KP6
JS1_BTN_14 PD0R_KP7
JS1_BTN_15 PD0R_KP8
JS1_BTN_16 PD0R_KP9
JS1_BTN_17 PD0R_KPC
JS1_BTN_18 PD0R_KP0
JS1_BTN_19 PD0R_KPE

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

Please help or point me in the right direction.

 

Thanks

 

Link to comment
Share on other sites

mr_me, thanks for your help.

 

I tried with and without quotes and changing ~ to home/joey and still not working. Also downloaded the version in your link.

jzintv-20160817-linux-x86-64.zip I tried again changing quotes around and still not working.

 

Below is the terminal output.

joey@joey-System-Product-Name:~$ cd jzintv2016/bin
joey@joey-System-Product-Name:~/jzintv2016/bin$ jzintv -z3 -f1 Baseball.bin --kbdhackfile="~/jzintv2016/rom/hackfile.cfg"
Loading:
  /home/joey/jzintv/rom/Baseball.bin
jzintv:  Initializing Master Component and peripherals...
snd:  Requested 1 chan @ 48000Hz, Signed 16-bit (native), bufsize  2048
snd:        Got 1 chan @ 48000Hz, Signed 16-bit (native), bufsize  1024
ay8910:  Automatic sliding-window setting: 9
joy:  Found 2 joystick(s)
joy:  Joystick JS0 "Microchip Technology Inc. Ultimate 2"
joy:     2 axes, 0 trackball(s), 0 hat(s), 24 button(s)
joy:  Joystick JS1 "Microchip Technology Inc. Ultimate 2"
joy:     2 axes, 0 trackball(s), 0 hat(s), 24 button(s)
Couldn't open keyboard map file '~/jzintv2016/rom/hackfile.cfg'
joey@joey-System-Product-Name:~/jzintv2016/bin$

 
joey@joey-System-Product-Name:~/jzintv2016/bin$ jzintv -z3 -f1 Baseball.bin --kbdhackfile=~/jzintv2016/rom/hackfile.cfg
Loading:
  /home/joey/jzintv/rom/Baseball.bin
jzintv:  Initializing Master Component and peripherals...
snd:  Requested 1 chan @ 48000Hz, Signed 16-bit (native), bufsize  2048
snd:        Got 1 chan @ 48000Hz, Signed 16-bit (native), bufsize  1024
ay8910:  Automatic sliding-window setting: 9
joy:  Found 2 joystick(s)
joy:  Joystick JS0 "Microchip Technology Inc. Ultimate 2"
joy:     2 axes, 0 trackball(s), 0 hat(s), 24 button(s)
joy:  Joystick JS1 "Microchip Technology Inc. Ultimate 2"
joy:     2 axes, 0 trackball(s), 0 hat(s), 24 button(s)
Couldn't open keyboard map file '~/jzintv2016/rom/hackfile.cfg'
joey@joey-System-Product-Name:~/jzintv2016/bin$

 
joey@joey-System-Product-Name:~/jzintv2016/bin$ jzintv -z3 -f1 Baseball.bin "--kbdhackfile=~/jzintv2016/rom/hackfile.cfg"
Loading:
  /home/joey/jzintv/rom/Baseball.bin
jzintv:  Initializing Master Component and peripherals...
snd:  Requested 1 chan @ 48000Hz, Signed 16-bit (native), bufsize  2048
snd:        Got 1 chan @ 48000Hz, Signed 16-bit (native), bufsize  1024
ay8910:  Automatic sliding-window setting: 9
joy:  Found 2 joystick(s)
joy:  Joystick JS0 "Microchip Technology Inc. Ultimate 2"
joy:     2 axes, 0 trackball(s), 0 hat(s), 24 button(s)
joy:  Joystick JS1 "Microchip Technology Inc. Ultimate 2"
joy:     2 axes, 0 trackball(s), 0 hat(s), 24 button(s)
Couldn't open keyboard map file '~/jzintv2016/rom/hackfile.cfg'
joey@joey-System-Product-Name:~/jzintv2016/bin$

 
joey@joey-System-Product-Name:~/jzintv2016/bin$ jzintv -z3 -f1 Baseball.bin "--kbdhackfile=home/joey/jzintv2016/rom/hackfile.cfg"
Loading:
  /home/joey/jzintv/rom/Baseball.bin
jzintv:  Initializing Master Component and peripherals...
snd:  Requested 1 chan @ 48000Hz, Signed 16-bit (native), bufsize  2048
snd:        Got 1 chan @ 48000Hz, Signed 16-bit (native), bufsize  1024
ay8910:  Automatic sliding-window setting: 9
joy:  Found 2 joystick(s)
joy:  Joystick JS0 "Microchip Technology Inc. Ultimate 2"
joy:     2 axes, 0 trackball(s), 0 hat(s), 24 button(s)
joy:  Joystick JS1 "Microchip Technology Inc. Ultimate 2"
joy:     2 axes, 0 trackball(s), 0 hat(s), 24 button(s)
Couldn't open keyboard map file 'home/joey/jzintv2016/rom/hackfile.cfg'
joey@joey-System-Product-Name:~/jzintv2016/bin$

 
joey@joey-System-Product-Name:~/jzintv2016/bin$ jzintv -z3 -f1 Baseball.bin --kbdhackfile="home/joey/jzintv2016/rom/hackfile.cfg"
Loading:
  /home/joey/jzintv/rom/Baseball.bin
jzintv:  Initializing Master Component and peripherals...
snd:  Requested 1 chan @ 48000Hz, Signed 16-bit (native), bufsize  2048
snd:        Got 1 chan @ 48000Hz, Signed 16-bit (native), bufsize  1024
ay8910:  Automatic sliding-window setting: 9
joy:  Found 2 joystick(s)
joy:  Joystick JS0 "Microchip Technology Inc. Ultimate 2"
joy:     2 axes, 0 trackball(s), 0 hat(s), 24 button(s)
joy:  Joystick JS1 "Microchip Technology Inc. Ultimate 2"
joy:     2 axes, 0 trackball(s), 0 hat(s), 24 button(s)
Couldn't open keyboard map file 'home/joey/jzintv2016/rom/hackfile.cfg'
joey@joey-System-Product-Name:~/jzintv2016/bin$

 
joey@joey-System-Product-Name:~/jzintv2016/bin$ jzintv -z3 -f1 Baseball.bin --kbdhackfile=home/joey/jzintv2016/rom/hackfile.cfg
Loading:
  /home/joey/jzintv/rom/Baseball.bin
jzintv:  Initializing Master Component and peripherals...
snd:  Requested 1 chan @ 48000Hz, Signed 16-bit (native), bufsize  2048
snd:        Got 1 chan @ 48000Hz, Signed 16-bit (native), bufsize  1024
ay8910:  Automatic sliding-window setting: 9
joy:  Found 2 joystick(s)
joy:  Joystick JS0 "Microchip Technology Inc. Ultimate 2"
joy:     2 axes, 0 trackball(s), 0 hat(s), 24 button(s)
joy:  Joystick JS1 "Microchip Technology Inc. Ultimate 2"
joy:     2 axes, 0 trackball(s), 0 hat(s), 24 button(s)
Couldn't open keyboard map file 'home/joey/jzintv2016/rom/hackfile.cfg'
joey@joey-System-Product-Name:~/jzintv2016/bin$

 

I will try some other combinations with hackfile and report back.

 

Please let me know if you have any more suggestions.

 

Sorry I have not been on forums in long time posting. Not sure if code tag is giving readers a scroll bar for the code. It's not on my end.

 

Thanks very much for your help!

Joe

Link to comment
Share on other sites

It looks like the / at the beginning is missing. Try:

 

jzintv -z3 -f1 Baseball.bin --kbdhackfile=/home/joey/jzintv2016/rom/hackfile.cfg

 

And if that doesn't work, use 'ls' to make sure the path is right. eg:

 

ls /home/joey/jzintv2016/rom/hackfile.cfg

 

For example, on my machine, without and then with the begging /:

 

olmstead@marty:~/intv> ls home/olmstead/hackfile.txt
/bin/ls: cannot access 'home/olmstead/hackfile.txt': No such file or directory
olmstead@marty:~/intv> ls /home/olmstead/hackfile.txt
/home/olmstead/hackfile.txt

Then you know the path is right and you can copy and paste it into jzintv

 

jzintv -z1 --kbdhackfile=/home/olmstead/hackfile.txt intybasic/samples/controlle

 

I hope that helps!

Link to comment
Share on other sites

mr_me, thanks for your help.

 

I changed the permissions to read only and that did not help.

 

I did get it to work by: jzintv -z3 -f1 Baseball.bin "--kbdhackfile=hackfile.cfg"

after moving the hackfile to the jzintv2016/bin directory with jzintv executable.

 

Also seen the keyboard map file was not setup right. Below is the fix for that.

; -----------------------------------------------------------------------------------------
map 0      ; activate with F5
; -----------------------------------------------------------------------------------------

; map the keyboard for the left controller

1          PD0L_KP1
2          PD0L_KP2
3          PD0L_KP3
4          PD0L_KP4
5          PD0L_KP5
6          PD0L_KP6
7          PD0L_KP7
8          PD0L_KP8
9          PD0L_KP9
0          PD0L_KP0
-          PD0L_KPC
=          PD0L_KPE

LSHIFT     PD0L_A_T
LCTRL      PD0L_A_L
LALT       PD0L_A_R

UP         PD0L_D_N
DOWN       PD0L_D_S
RIGHT      PD0L_D_E
LEFT       PD0L_D_W

; map the keyboard for the right controller

Q          PD0R_KP1
W          PD0R_KP2
E          PD0R_KP3
R          PD0R_KP4
T          PD0R_KP5
Y          PD0R_KP6
U          PD0R_KP7
I          PD0R_KP8
O          PD0R_KP9
P          PD0R_KP0
[          PD0R_KPC
]          PD0R_KPE

RSHIFT     PD0R_A_T
RALT       PD0R_A_L
RCTRL      PD0R_A_R

L          PD0R_D_N
/          PD0R_D_S
.          PD0R_D_E
,          PD0R_D_W

; map for the Ultimate PC Interface - joystick #0 - left controller

JS0_BTN_00 PD0L_A_T
JS0_BTN_01 PD0L_A_L
JS0_BTN_02 PD0L_A_R
JS0_BTN_08 PD0L_KP1
JS0_BTN_09 PD0L_KP2
JS0_BTN_10 PD0L_KP3
JS0_BTN_11 PD0L_KP4
JS0_BTN_12 PD0L_KP5
JS0_BTN_13 PD0L_KP6
JS0_BTN_14 PD0L_KP7
JS0_BTN_15 PD0L_KP8
JS0_BTN_16 PD0L_KP9
JS0_BTN_17 PD0L_KPC
JS0_BTN_18 PD0L_KP0
JS0_BTN_19 PD0L_KPE

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

; map for the Ultimate PC Interface - joystick #1 - right controller

JS1_BTN_00 PD0R_A_T
JS1_BTN_01 PD0R_A_L
JS1_BTN_02 PD0R_A_R
JS1_BTN_08 PD0R_KP1
JS1_BTN_09 PD0R_KP2
JS1_BTN_10 PD0R_KP3
JS1_BTN_11 PD0R_KP4
JS1_BTN_12 PD0R_KP5
JS1_BTN_13 PD0R_KP6
JS1_BTN_14 PD0R_KP7
JS1_BTN_15 PD0R_KP8
JS1_BTN_16 PD0R_KP9
JS1_BTN_17 PD0R_KPC
JS1_BTN_18 PD0R_KP0
JS1_BTN_19 PD0R_KPE

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


Olmstead, thanks for your help. One little thing and it wont work. I will it out with / and if it works put back in rom directory.

Also thanks on the path testing method.

 

Thanks

Joe

Link to comment
Share on other sites

i did some testing in Ubuntu [16.04] and have it working with a full path. Here's what I found.

 

It doesn't like the '~' in the path, use full path starting with '/' as olmstead suggested.

If you have spaces in the file path, surround it with double quotes. Unlike Windows, it doesn't matter where you put the quotes.

It doesn't like upper case in the file extension, lower case file extension only.

Edited by mr_me
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...