Author Topic: O2EM - Odyssey2 emulator (WIP)  (Read 30694 times)

Gab1975 (OP)

  • Posts: 1165
O2EM - Odyssey2 emulator (WIP)
« on: July 26, 2014, 09:40:22 am »
Some time ago I made the PNGs for a hypothetical Odyssey 2 emulator... if anyone is interesting in the porting, maybe they will be useful! :) ... work in progress ...

http://sourceforge.net/projects/o2em/

http://o2em2.sourceforge.net/

latest "beta" release: o2emBETA201411012125.opk (by David Knight)

On first run the emulator creates the .o2em directory in $HOME.
Place uncompressed bios files in the bios sub-folder and uncompressed voice files in the voice sub-folder.

know issues:
- the reset button (in the virtual keyboard) causes the emulator freeze;
- the default volume is a bit too loud;
- the voice module isn't emulated.
« Last Edit: November 06, 2014, 01:23:03 pm by Gab1975 »

Xaijiqq

  • Posts: 425
Re: Port request/possibility: O2EM
« Reply #1 on: July 27, 2014, 03:24:24 pm »
i'd love to see O2EM for the gcw.  theres been port discussion on it in the past, sounds highly unlikely it'll ever happen

Gab1975 (OP)

  • Posts: 1165
Re: Port request/possibility: O2EM
« Reply #2 on: July 27, 2014, 04:46:47 pm »
i'd love to see O2EM for the gcw.  theres been port discussion on it in the past, sounds highly unlikely it'll ever happen

There is a proverb which says, "Hope is the last to die"... so one never knows! ;)
Maybe in the near future a benevolent coder will make the porting! :)

Xaijiqq

  • Posts: 425
Re: Port request/possibility: O2EM
« Reply #3 on: July 27, 2014, 05:33:29 pm »
I guess stranger things have happened  :D

Gab1975 (OP)

  • Posts: 1165
Re: Port request/possibility: O2EM
« Reply #4 on: October 08, 2014, 09:12:45 am »
I renew this topic... maybe anyone is interested in the porting! ( hope springs eternal ! :P )

David Knight

  • Posts: 577
Re: Port request/possibility: O2EM
« Reply #5 on: October 08, 2014, 09:54:30 pm »
Well it compiles fine with a modified makefile, I don't know much about this console. Does it need a bios? Any demo files I can download to test?
« Last Edit: October 08, 2014, 10:31:29 pm by David Knight »

Gab1975 (OP)

  • Posts: 1165
Re: Port request/possibility: O2EM
« Reply #6 on: October 09, 2014, 06:46:41 am »
Well it compiles fine with a modified makefile, I don't know much about this console. Does it need a bios? Any demo files I can download to test?

Thanks for your interest ! :)

- Yes, Odyssey2 emulator requires the bios file, O2ROM.BIN (or G7400.BIN, C52.BIN, or JOPAC.BIN);
- for the second question you have a pm! ;)

David Knight

  • Posts: 577
Re: Port request/possibility: O2EM
« Reply #7 on: October 09, 2014, 09:09:04 pm »
This reminds me of the BBC microcomputer

It uses Allegro which I'm not familiar with but now learning ;)

Graphics, corrupted but working with a little fiddling - needs more work though.
Sound working without changing code
Controls configured and working spoke too soon  :(
Frontend needed - It comes with one but I haven't tried it yet.

Overall seems promising, just played volleyball on it.



« Last Edit: October 11, 2014, 12:06:59 am by David Knight »

Gab1975 (OP)

  • Posts: 1165
Re: Port request/possibility: O2EM
« Reply #8 on: October 09, 2014, 09:54:41 pm »
It's a pleasure to read that "the works are progressing" ! :)

Obviously, if you want, you can use the PNGs in the OP for the frontend and, if you need some new specific "drawing", just feel free to ask... I will be happy to give you a little help! :)

David Knight

  • Posts: 577
Re: Port request/possibility: O2EM
« Reply #9 on: October 10, 2014, 12:51:43 am »
Thanks, still working on the graphics, it's now drawing to screen correctly, I'll start on the frontend tomorrow.

David Knight

  • Posts: 577
Re: Port request/possibility: O2EM
« Reply #10 on: October 10, 2014, 11:33:26 pm »
Frontend coming on nicely, all going well should be good for an initial release over the weekend. Stay tuned ;)

HELP NEEDED:
Which keys do we need to remap? Direction keys obviously, I think 1 and 2, any more?

TESTED ROMS - (with frontend)
All tested load fine, I have not played on the original console so cannot compare. I have not tested gameplay for all as I need to further remap the keys to do this.

alien invaders plus
alpine skiing
amok!
atlantis
attack of the time lord
baseball
clockout & breakdown
bowling & basketball
casino slot machine
catch the ball & noughts and crosses
clay pigeon
computer golf
conquest of the world
cosmic conflict
frogger
volleyball


Will continue testing but so far no roms failed to load.
« Last Edit: October 11, 2014, 12:00:41 am by David Knight »

Gab1975 (OP)

  • Posts: 1165
Re: Port request/possibility: O2EM
« Reply #11 on: October 11, 2014, 06:32:34 am »
HELP NEEDED:
Which keys do we need to remap? Direction keys obviously, I think 1 and 2, any more?

The keys remapping could make "some trouble"... this console is equipped with a keyboard (see the foto), the best thing would be to have a virtual keyboard... in any case (like you wrote), in addition to the direction and action keys, it should be important to remap the number keys (at least 1 and 2): these keys are used to select a game and/or skill level.

Maybe it can be useful... in the Windows O2EM the "joysticks" default keymap is the follow:
joystick 1: direction keys W (up) S (down) A (left) D (right) - spacebar (action)
joystick 2: direction keys "cursor keys" - L (action)



Here a video review: https://www.youtube.com/watch?v=yXsDlDFO-SE
« Last Edit: October 11, 2014, 07:25:05 am by Gab1975 »

Gab1975 (OP)

  • Posts: 1165
Re: Port request/possibility: O2EM
« Reply #12 on: October 11, 2014, 07:28:47 am »
Sound working without changing code

Did you try also "The VOICE module" playback (speech synthesis and enhanced sound effects) ?

PS: An example of game which uses this extra module it's K.C.'s Krazy...

David Knight

  • Posts: 577
Re: Port request/possibility: O2EM
« Reply #13 on: October 12, 2014, 06:23:48 pm »
Yes the voice modules work fine, pretty impressive for ~1980!
Ideally this needs a virtual keyboard, for now I'll configure joysticks as it'll take me a while to figure out how to do this.
Almost there ;)

Gab1975 (OP)

  • Posts: 1165
Re: Port request/possibility: O2EM
« Reply #14 on: October 12, 2014, 10:00:48 pm »
Yes the voice modules work fine, pretty impressive for ~1980!
Ideally this needs a virtual keyboard, for now I'll configure joysticks as it'll take me a while to figure out how to do this.
Almost there ;)

If I'm not mistaken the Odyssey 2 vertical resolution should be 200 pixels, so 40 pixels are unused (240px LCD)... they could be used for a virtual keyboard... I made a fitted keyboard layout, in case you will try to implement it! :)

 
« Last Edit: October 13, 2014, 07:33:21 am by Gab1975 »

David Knight

  • Posts: 577
Re: Port request/possibility: O2EM
« Reply #15 on: October 12, 2014, 10:25:05 pm »
This is a beta version of O2em, an Odyssey 2/VideoPac emulator. The finished version will include a virtual keyboard. I have no experience of the original console. Please feel free to report issues here. There is a slowdown issue on some games I have noticed.

You will need the bios files, rom files and (optionally) voice files.

On first run it will create the .o2em directory in $HOME.
Place uncompressed bios files in the bios folder and uncompressed voice files in the voice folder.

Use the rom selector to find and run your roms. Obviously roms requiring the keyboard will not currently work!

For some reason some games require you to use the player 2 joystick even if you are player 1 (eg Frogger, Amok!). I like the idea of having 2 player games on the gcw but of course the player 2 keys are not nice to use. Any suggestions?

Controls:

Player 1
D-pad: movement
L-shoulderpad: fire

Player 2
X,A,Y,B: movement
R-shoulderpad: fire

SELECT: quit to rom selector
START: "Enter"
L-shoulderpad: "1"
R-shoulderpad: "2"

opk with sourcecode:

https://drive.google.com/file/d/0BwYi4RGX-HSaYk9NSTBkRVJLeHM/view?usp=sharing
newer version available
« Last Edit: October 28, 2014, 11:50:20 pm by David Knight »

Gab1975 (OP)

  • Posts: 1165
Re: Port request/possibility: O2EM
« Reply #16 on: October 12, 2014, 11:15:17 pm »

For some reason some games require you to use the player 2 joystick even if you are player 1 (eg Frogger, Amok!). I like the idea of having 2 player games on the gcw but of course the player 2 keys are not nice to use. Any suggestions?

A possible solution could be a settings menu with an option to invert P1 and P2 commands (obviously this menu could have also other options, like " virtual keyboard on/off").
IMHO a good choice it would be to use "select" to access to the menu and select+start to quit to roms selector.

here an example picture:

David Knight

  • Posts: 577
Re: Port request/possibility: O2EM
« Reply #17 on: October 12, 2014, 11:20:51 pm »
Another option would be to detect the problem games and flip controls automagically.

Gab1975 (OP)

  • Posts: 1165
Re: Port request/possibility: O2EM
« Reply #18 on: October 12, 2014, 11:30:15 pm »
This is a beta version of O2em, an Odyssey 2/VideoPac emulator. The finished version will include a virtual keyboard. I have no experience of the original console. Please feel free to report issues here. There is a slowdown issue on some games I have noticed.

Honestly, I have no experience of the original console too, however, probably, I found two "issues":
1) the colors seem altered compared with the original hardware;
2) sometimes the sound is a bit crackly (in any case the voice synthesis works fine).

PS: Thanks for your work! :)

Gab1975 (OP)

  • Posts: 1165
Re: Port request/possibility: O2EM
« Reply #19 on: October 12, 2014, 11:38:08 pm »
Another option would be to detect the problem games and flip controls automagically.

I noticed that the "problem" is also in the Windows version... in this case, there is an option to assign the default left/right keys to the Stick 1 and the Stick 2.

EDIT
Quote
-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.
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 right shift)
2=Default Left keys (W,S,A,D,SPACE)
3=Joystick
Example: o2em <game> -s1=1 -s2=3
« Last Edit: October 12, 2014, 11:46:15 pm by Gab1975 »

 

Post a new topic