Welcome to the Gamebase 64 forums.                 An attempt to document ALL Commodore 64 gameware before it's too late!

Gamebase Oric V3.0

Discuss any other databases that use the GameBase Frontend, whether in pre development, development or publically released.

Moderator: Jimbo

User avatar
.mad.
Highly Commended Member
Highly Commended Member
Location: Lancashire
Posts: 1600
Joined: Sun Jun 19, 2005 3:30 pm

Wed Oct 07, 2015 5:51 pm

Oricutron has an excellent keymap feature.

press F1 for main menu.

then select the submenu called "Keyboard options".

In the submenu you can find:
- a toggle that shows/hides the visual keyboard (you can click on the keyboard keys to enter key presses/releases) ;
- a toggle that gets you in the key mapping definition mode (you can then click on a visual keyboard key ; press a real key on your keyboard and the mapping will work) ;
- a toggle that allows mod keys (ctrl, shift, funct) to be sticky (ie you first click on a key to press it and then either re-click it to release it or click on another key and it will generate a modded key press - e.g. a Ctrl-T instead of T - and then auto release the key) ;
- an option to save a keyboard mapping (.kma file) ;
- an option to load a keyboard mapping ;
- an option that resets the keyboard mapping to the default one.

You can also add the following in your oricutron.cfg to autoload a keyboard
mapping (here Test.kma in the keymap directory found in Oricutron's directory):

; automatically load a keyboard mapping file
autoload_keyboard_mapping = 'keymap/Test.kma

or you can edit the Oricutron.cfg with your desired Joy keyset.

; Keys to emulate joystick, set 1
; NOTE: "fire2" is only available on telestrat
kbjoy1_up = 'KP8'
kbjoy1_down = 'KP2'
kbjoy1_left = 'KP4'
kbjoy1_right = 'KP6'
kbjoy1_fire1 = 'KP_ENTER'
kbjoy2_fire2 = 'KP_PLUS'

; Keys to emulate joystick, set 2
kbjoy2_up = 'R'
kbjoy2_down = 'F'
kbjoy2_left = 'D'
kbjoy2_right = 'G'
kbjoy2_fire1 = 'I'
kbjoy2_fire2 = 'W'
repetto74
Keen Member
Keen Member
Posts: 112
Joined: Sat Feb 08, 2014 2:58 pm

Thu Oct 08, 2015 3:31 pm

Hi Mad,

Thanks again for your help. You said to change keys int the oricutron cfg file but what about the script? Do I need to change also there?
There are also different options to set up depending on the machine emulated "none" "altai" "pase" or "ijk".

Here is the script :

;********************************
;* Oricutron GEMUS Script *
;* 23rd August 2012 *
;********************************
;
; PLEASE SET YOUR EMULATOR PROPERTIES AS FOLLOWS:
;
; Emulator File: ORICUTRON.EXE
; Associated Script File (1): Oricutron.cfg
; Use Short Filenames: YES
; File Types: TAP;DSK;WAV
; (Compressed File Types: GZ;Z;BZ2;ZIP;TAR;TZG;ZOO)
;
; This script was written for Oricutron 0.9,
; but may work with other versions too.
;
; YOU MUST PLACE AN [options] SECTION MARKER AT TOP OF ORICUTRON.CFG FILE FOR SCRIPT TO WORK


If Key_version CONTAINS(atmos)
Set_INI_Value(1||options||machine|| atmos)
Else
Set_INI_Value(1||options||machine|| oric1)
End If

If Key_version CONTAINS(telestrat)
Set_INI_Value(1||options||machine|| telestrat)
End If

If Key_version CONTAINS(pravetz)
Set_INI_Value(1||options||machine|| pravetz)
End If



If GameType CONTAINS(tap||wav)
Add_CLP(-t%gamepathfile%)
End If

If GameType CONTAINS(Dsk)
Add_CLP(-d%gamepathfile%)
End If

; Render mode (soft, opengl)
Set_INI_Value(1||options||rendermode|| soft)

; Show scanlines? (yes/no)
Set_INI_Value(1||options||scanlines|| no)

; Horizontal stretch? (yes/no) <-- opengl only
Set_INI_Value(1||options||hstretch|| no)

; PAL ghosting? (yes/no) <-- opengl only
Set_INI_Value(1||options||palghost|| no)

; Start fullscreen?
Set_INI_Value(1||options||fullscreen|| no)

; Lightpen (yes/no)
Set_INI_Value(1||options||lightpen|| no)

; Joystick interface for Atmos/Oric-1 mode. Telestrat has its own built-in standard.
; Options are 'none', 'altai', 'pase' or 'ijk'
Set_INI_Value(1||options||joyinterface|| altai)

; How to emulate joysticks attached to the above interface
; Options are 'none', 'kbjoy1', 'kbjoy2', 'sdljoyN' (where n is 0 to 9)
Set_INI_Value(1||options||joystick_a|| kbjoy1)
Set_INI_Value(1||options||joystick_b|| none)

; How to emulate joysticks attached to the telestrat
; Options are 'none', 'kbjoy1', 'kbjoy2', 'sdljoyN', 'mouse'
Set_INI_Value(1||options||telejoy_a|| kbjoy1)
Set_INI_Value(1||options||telejoy_b|| none)

; Keys to emulate joystick, set 1
; NOTE: "fire2" is only available on telestrat
Set_INI_Value(1||options||kbjoy1_up|| 'KP8')
Set_INI_Value(1||options||kbjoy1_down|| 'KP2')
Set_INI_Value(1||options||kbjoy1_left|| 'KP4')
Set_INI_Value(1||options||kbjoy1_right|| 'KP6')
Set_INI_Value(1||options||kbjoy1_fire1|| 'KP_ENTER')
Set_INI_Value(1||options||kbjoy2_fire2|| 'KP_PLUS')

; Keys to emulate joystick, set 2
Set_INI_Value(1||options||kbjoy2_up|| 'W')
Set_INI_Value(1||options||kbjoy2_down|| 'S')
Set_INI_Value(1||options||kbjoy2_left|| 'A')
Set_INI_Value(1||options||kbjoy2_right|| 'D')
Set_INI_Value(1||options||kbjoy2_fire1|| 'SPACE')
Set_INI_Value(1||options||kbjoy2_fire2|| 'N')



If Key_pravetz CONTAINS(cload)
Run_Emulator_Send_Keys([3]cload""{enter}||60)

Else

Run_Emulator()

End If
User avatar
.mad.
Highly Commended Member
Highly Commended Member
Location: Lancashire
Posts: 1600
Joined: Sun Jun 19, 2005 3:30 pm

Thu Oct 08, 2015 4:25 pm

with that setup you will ONLY need to edit the script.

make sure you have latest version of emulator Oricutron 1.2. (clean install).

edit the oricutron.cfg file.
add "[options]" to the top line and save it.

Code: Select all

&#91;options&#93;
;
; Example config file for Oricutron
;

;                 ----------------------------------
if you want two keyboard mapped joysticks, edit this...
Set_INI_Value(1||options||joystick_a|| kbjoy1)
Set_INI_Value(1||options||joystick_b|| kbjoy2)


NOTE:
make sure you leave the SPACE after the double pipe "||" before your key choice 'A'.
repetto74
Keen Member
Keen Member
Posts: 112
Joined: Sat Feb 08, 2014 2:58 pm

Thu Oct 08, 2015 5:44 pm

Hi Mad,

Many thanks I will give this a try as soon as possible and let you know. Yes I do have Oricutron 1.2 and I think it may be the Options flag missing in the script file.

Thanks
Rick
:)
repetto74
Keen Member
Keen Member
Posts: 112
Joined: Sat Feb 08, 2014 2:58 pm

Fri Oct 09, 2015 3:42 pm

Hi Mad,

Million thanks again you saved my day! :D All is working now and can use the cab joystick to play with Oric games :wink:
User avatar
OX
Cool Member
Cool Member
Posts: 459
Joined: Thu Jun 24, 2010 9:05 pm

Mon Mar 06, 2017 11:26 pm

Are you still working on the final update to Gamebase Oric Tubbs?
Tubbs3622
Keen Member
Keen Member
Location: Huddersfield, UK
Posts: 97
Joined: Tue Mar 15, 2005 8:24 am

Wed Mar 08, 2017 6:10 pm

Slowly but surely! There will be a final release of this Gamebase hopefully sometime this year but if not then next year at the latest. I've had very little time to work on it recently but keep adding things whenever I get the chance.

Return to “Other GameBase Projects”

Who is online

Users browsing this forum: No registered users and 0 guests