Videopac / Odyssey2 forum

Emulation => Emulating the Videopac / Odyssey2 => Topic started by: Rotgut on January 11, 2016, 03:23:34 PM



Title: Could Really Use Some Help With O2EM Controls
Post by: Rotgut on January 11, 2016, 03:23:34 PM
New member here!  Hi, Everyone   :)

Odyssey 2 was one of my absolute favorite video game systems growing up.  Some of my favorite games were UFO, K.C. Munchkin, Monkeyshines and Pick Axe Pete and I played them practically every day.

I bought a boxed O2 console and some game carts off of eBay several years ago, had fun with it for quite a while but sadly it eventually died.

Now I'm hoping someone can help me with some step-by-step direction regarding control mapping for O2EM.  I've set up emulators dozens of times in the past but I cannot for the life of me configure the controls for this.   ???

I would love to be able to play O2 games again through this emulator and add it to my HyperSpin wheel!

Help...?

Thank you in advance!

 ;D


Title: Re: Could Really Use Some Help With O2EM Controls
Post by: manopac on January 11, 2016, 03:52:13 PM
Have you tried what it says in the manual? ;-)
(docs/o2em.txt)

-s1=mode/keys Define stick 1 mode/keys
-s2=mode/keys Define stick 2 mode/keys

              These options define how the console joysticks are emulated.
              For autodetection just use -joyautodetect.
              You can use a joystick connected to your computer or use
              the keyboard. You can specify a mode number (compatible with
              previous versions of O2EM) to disable the joystick emulation,
              to select an actual joystick or to set a default keyboard
              emulation mode :
                0=Disable,
                1=Default Right keys (arrows keys and L)
                2=Default Left keys (W,S,A,D,SPACE)
                3=Joystick
              Example: -s1=1 -s2=3
                                
              You can also specify a list of 5 keyboard codes that will
              be used to emulate the joystick, separated by comas
              (without spaces), using this order : UP,DOWN,LEFT,RIGHT,FIRE.
              The following codes are accepted (not case sensitive):
                A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,
                0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
                0_PAD,1_PAD,2_PAD,3_PAD,4_PAD,5_PAD,6_PAD,7_PAD,8_PAD,9_PAD,
                TILDE, MINUS, EQUALS, BACKSPACE, TAB, OPENBRACE, CLOSEBRACE,
                ENTER, COLON, QUOTE, BACKSLASH, BACKSLASH2, COMMA, STOP,
                SLASH, SPACE, INSERT, DEL, HOME, END, PGUP, PGDN, LEFT,
                RIGHT, UP, DOWN, SLASH_PAD, ASTERISK, MINUS_PAD, PLUS_PAD,
                DEL_PAD, ENTER_PAD, PRTSCR, PAUSE, ABNT_C1, YEN, KANA, AT,
                CIRCUMFLEX, COLON2, KANJI, LSHIFT, RSHIFT, LCONTROL,
                RCONTROL, ALT, ALTGR, LWIN, RWIN, MENU, SCRLOCK, NUMLOCK
              Example: -s1=y,h,g,j,lcontrol -s2=8_PAD,5_PAD,4_PAD,6_PAD,RCONTROL

you have two options:
- either use it as command line parameters once you run o2em.exe
- include it in o2emcfg.xml

(adapt the "myConfig" or create a new one, e.g. one called "CustomMapping", then do the following:

<o2emConfig useConfig="CustomMapping">

   <config name="CustomMapping">
      <!-- override system keys with the given values -->
      <option name="s0">ESC,F1,F4,F5,F8,F2,F3,F6,F7,F9,F10,F11</option>
   
      <!-- set joystick 1 to specified keys (or use 0=disable, 1=default right keys, 2=default left keys, 3=joystick) -->
                <option name="s1">y,h,g,j,lcontrol</option>

      <!-- set joystick 2 to specified keys -->
                <option name="s2">8_PAD,5_PAD,4_PAD,6_PAD,RCONTROL</option>

<!--      <option name="joyautodetect" />    disable this line (or remove it) -->
      <option name="browsersortorder">gamename</option>
   </config>

I just realised there is no option to swap the joysticks from the command line/xml file - will include that in the next release ...


EDIT: the part above about the config XML File only works with the latest version of O2EM which you can find in the forum, command line options are valid also for older releases of O2EM






Title: Re: Could Really Use Some Help With O2EM Controls
Post by: Rotgut on January 11, 2016, 04:33:58 PM
Yes, thank you, I read it and it makes my head hurt.  Not sure which version of O2EM I have, I think it's the latest version.  I'll have to check.

I recall opening a file but wasn't sure exactly what to alter, even with the instructions provided.  Some of this stuff really messes with me.  lol  Like I said, I've set up many emulators and altered config files, xml files, etc...  hopefully I'll figure it out.


Title: Re: Could Really Use Some Help With O2EM Controls
Post by: manopac on January 11, 2016, 07:54:00 PM
there is not much to figure out left - just copy the stuff I wrote above into the o2emcfg.xml and put they keys you want instead of the ones I put there as a example (from the list of possible keys also in the first post) - alternatively let me know what keys you want and I will just send you an adapted o2emcfg.xml ... :-)


Title: Re: Could Really Use Some Help With O2EM Controls
Post by: Rotgut on January 12, 2016, 03:01:49 PM
Have you tried what it says in the manual? ;-)
(docs/o2em.txt)

-s1=mode/keys Define stick 1 mode/keys
-s2=mode/keys Define stick 2 mode/keys

              These options define how the console joysticks are emulated.
              For autodetection just use -joyautodetect.
              You can use a joystick connected to your computer or use
              the keyboard. You can specify a mode number (compatible with
              previous versions of O2EM) to disable the joystick emulation,
              to select an actual joystick or to set a default keyboard
              emulation mode :
                0=Disable,
                1=Default Right keys (arrows keys and L)
                2=Default Left keys (W,S,A,D,SPACE)
                3=Joystick
              Example: -s1=1 -s2=3
                                
              You can also specify a list of 5 keyboard codes that will
              be used to emulate the joystick, separated by comas
              (without spaces), using this order : UP,DOWN,LEFT,RIGHT,FIRE.
              The following codes are accepted (not case sensitive):
                A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,
                0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
                0_PAD,1_PAD,2_PAD,3_PAD,4_PAD,5_PAD,6_PAD,7_PAD,8_PAD,9_PAD,
                TILDE, MINUS, EQUALS, BACKSPACE, TAB, OPENBRACE, CLOSEBRACE,
                ENTER, COLON, QUOTE, BACKSLASH, BACKSLASH2, COMMA, STOP,
                SLASH, SPACE, INSERT, DEL, HOME, END, PGUP, PGDN, LEFT,
                RIGHT, UP, DOWN, SLASH_PAD, ASTERISK, MINUS_PAD, PLUS_PAD,
                DEL_PAD, ENTER_PAD, PRTSCR, PAUSE, ABNT_C1, YEN, KANA, AT,
                CIRCUMFLEX, COLON2, KANJI, LSHIFT, RSHIFT, LCONTROL,
                RCONTROL, ALT, ALTGR, LWIN, RWIN, MENU, SCRLOCK, NUMLOCK
              Example: -s1=y,h,g,j,lcontrol -s2=8_PAD,5_PAD,4_PAD,6_PAD,RCONTROL

you have two options:
- either use it as command line parameters once you run o2em.exe
- include it in o2emcfg.xml

(adapt the "myConfig" or create a new one, e.g. one called "CustomMapping", then do the following:

<o2emConfig useConfig="CustomMapping">

   <config name="CustomMapping">
      <!-- override system keys with the given values -->
      <option name="s0">ESC,F1,F4,F5,F8,F2,F3,F6,F7,F9,F10,F11</option>
   
      <!-- set joystick 1 to specified keys (or use 0=disable, 1=default right keys, 2=default left keys, 3=joystick) -->
                <option name="s1">y,h,g,j,lcontrol</option>

      <!-- set joystick 2 to specified keys -->
                <option name="s2">8_PAD,5_PAD,4_PAD,6_PAD,RCONTROL</option>

<!--      <option name="joyautodetect" />    disable this line (or remove it) -->
      <option name="browsersortorder">gamename</option>
   </config>

I just realised there is no option to swap the joysticks from the command line/xml file - will include that in the next release ...


EDIT: the part above about the config XML File only works with the latest version of O2EM which you can find in the forum, command line options are valid also for older releases of O2EM




I got it to work last night.  Thank you so much, manopac!


Title: Re: Could Really Use Some Help With O2EM Controls
Post by: Rotgut on January 20, 2016, 01:27:03 AM
...alternatively let me know what keys you want and I will just send you an adapted o2emcfg.xml ... :-)

Hi, manopac!  Hey, is it too late to take you up on the offer?  For some reason o2em stopped letting me use those keys I had put in.  I may have screwed something up, not sure?

In any case, I'd really appreciate a custom file.  I am using an opti-pac mini setup with arcade sticks and Happ buttons. Player 1 is UP, DOWN, LEFT, RIGHT keys and X key for Fire.  Player 2 is R, F, D, G keys and K key for Fire.  I also use the ESC key to Exit.



Title: Re: Could Really Use Some Help With O2EM Controls
Post by: manopac on January 20, 2016, 08:37:57 AM
here you go  :)



Title: Re: Could Really Use Some Help With O2EM Controls
Post by: Rotgut on January 20, 2016, 04:30:36 PM
here you go  :)



Thanks again!  I will let you know how it works out!

 ;D