Author Topic: PC Engine emulator port [WIP]  (Read 14675 times)

ker (OP)

  • Posts: 620
PC Engine emulator port [WIP]
« on: May 14, 2014, 04:19:38 pm »
dingux-hugo port to GCW0

- Recompiled with GCW0 toolchain
- Deleted all copyrighted stuff
- Removed chipset and cpu references
- Removed not necessary menu options (volume, clock frequency, ...)
- Moved config/data to $HOME folder (system card rom can be saved at $HOME/.hugo/bios/ folder)
- Last used rom path saved in config file
- Created OPK

Download: http://www.mediafire.com/download/vd589xt0g2w53j0/dingux-hugo.opk

Sources: https://github.com/kerheol/dingux-hugo

I didn't test it a lot. I don't have any CD rom, so I cannot say if it works.

Feedback and advices are welcome. Enjoy!

[15-05-2014]
- New pngs. Updated help.txt file (thanks to Gab1975)
- Compiled with double buffer
- Paths for rom and cdrom saved
- Better cdrom support (I hope)

[16-05-2014]
- Fixed load saved configuration problem
- Menus suit now better in GCW0 screen
« Last Edit: June 02, 2014, 08:17:54 pm by ker »

surfi80

  • Posts: 252
Re: PC Engine emulator port [WIP]
« Reply #1 on: May 14, 2014, 06:13:59 pm »
Greet the machine ;)
play with the best? die like the rest!

http://www.elotrolado.net/wiki/PS_VITA_Usuarios_EoL

MacDonals

  • Posts: 79
Re: PC Engine emulator port [WIP]
« Reply #2 on: May 14, 2014, 06:33:45 pm »
I will check this out tonight, thanks!

Gab1975

  • Posts: 1165
Re: PC Engine emulator port [WIP]
« Reply #3 on: May 14, 2014, 06:46:41 pm »
Great news Ker! ;)

I made a quick test, I tried some jap and USA games and they work pretty well (with the exception of Air Zonk which has flickering issues)...
from this my first quick test I have a suggestion and, probably, I found a "bug":
- In the emu settings there are three rendering options: fast max, fast, fit. Maybe it will be better to rename them as follows: fast (stretched), fast (1:1), fit (stretched)... and to put as default fast (1:1) and not fast (stretched).
- I activated the v-sync (on) in the emu settings, but it seems to be not operative.

PS: I had no time to try the CD emulation, I will test it as soon as possible...
« Last Edit: May 14, 2014, 06:51:39 pm by Gab1975 »

ker (OP)

  • Posts: 620
Re: PC Engine emulator port [WIP]
« Reply #4 on: May 14, 2014, 08:01:34 pm »
Great news Ker! ;)

I made a quick test, I tried some jap and USA games and they work pretty well (with the exception of Air Zonk which has flickering issues)...
from this my first quick test I have a suggestion and, probably, I found a "bug":
- In the emu settings there are three rendering options: fast max, fast, fit. Maybe it will be better to rename them as follows: fast (stretched), fast (1:1), fit (stretched)... and to put as default fast (1:1) and not fast (stretched).
- I activated the v-sync (on) in the emu settings, but it seems to be not operative.

PS: I had no time to try the CD emulation, I will test it as soon as possible...

I've just look at code. VSync function is empty  :-[

I think this will be a nice emulator to learn something  :P

Gab1975

  • Posts: 1165
Re: PC Engine emulator port [WIP]
« Reply #5 on: May 14, 2014, 08:38:40 pm »
I've just look at code. VSync function is empty  :-[

I think this will be a nice emulator to learn something  :P

Moreover, I think that the emulator stores the framebuffer in the system memory (SDL_SWSURFACE)... if I'm not mistaken, to use the v-sync it's needed to store the framebuffer in the video memory and to activate at least the double buffer (SDL_HWSURFACE | SDL_DOUBLEBUF)...

falconthefearless

  • Posts: 52
THANK YOU
« Reply #6 on: May 14, 2014, 09:34:30 pm »
the system finally has its own TG16 emulator once again thank you!

Inertia

  • Posts: 157
Re: PC Engine emulator port [WIP]
« Reply #7 on: May 14, 2014, 09:46:43 pm »
Damn, pc engine emus and vsync aren't good friends :p
thanks your work Ker :)

Someone need to work on that vsync problem wich plague temper as well :(

eltehero

  • Posts: 338
Re: PC Engine emulator port [WIP]
« Reply #8 on: May 14, 2014, 11:13:51 pm »
Damn, pc engine emus and vsync aren't good friends :p
thanks your work Ker :)

Someone need to work on that vsync problem wich plague temper as well :(

Is this vsync problem just on gcw version? Temper was made for GPH handhelds and was one of best emu's on the GP2X.

Gab1975

  • Posts: 1165
Re: PC Engine emulator port [WIP]
« Reply #9 on: May 15, 2014, 08:08:49 am »
I tested the CD emulation, but without success (at least for now)... :(
I put the syscard.pce in the $HOME/.hugo/bios folder and after I tried to load a PCE CD image, but the result was: "Can't load file!"
Below the tries which I made:
- I tried with different syscards (.pce and .bin), I used also the syscard3.pce which is available in the Zx-81 Dingux-hugo binary file;
- I tried to put the syscards files in the $HOME/.hugo/ folder;
- I tried to rename "syscard3.pce" simply "syscard.pce";
- I tried to load the CD image with the .hcd metafile or directly with the .iso file.

PS: I noticed that the CD-ROM browser doesn't save the last used ROM path (the function should be added)
« Last Edit: May 15, 2014, 08:34:25 am by Gab1975 »

ker (OP)

  • Posts: 620
Re: PC Engine emulator port [WIP]
« Reply #10 on: May 15, 2014, 08:57:01 am »
I tested the CD emulation, but without success (at least for now)... :(
I put the syscard.pce in the $HOME/.hugo/bios folder and after I tried to load a PCE CD image, but the result was: "Can't load file!"
Below the tries which I made:
- I tried with different syscards (.pce and .bin), I used also the syscard3.pce which is available in the Zx-81 Dingux-hugo binary file;
- I tried to put the syscards files in the $HOME/.hugo/ folder;
- I tried to rename "syscard3.pce" simply "syscard.pce";
- I tried to load the CD image with the .hcd metafile or directly with the .iso file.

PS: I noticed that the CD-ROM browser doesn't save the last used ROM path (the function should be added)

Syscard files can have this names:
- syscard.pce
- syscard3.pce
- syscard30.pce
- cd-rom~1.pce

I'll try to check cdrom load myself. Thanks for your feedback!

14catorce

  • Posts: 16
Re: PC Engine emulator port [WIP]
« Reply #11 on: May 15, 2014, 07:13:31 pm »
great, thank you! since I'm a shmup nut, pc engine is one of my favourite systems, and couldn't get Temper port to work. I hope you will get CD games to work soon without problems. Are save states avaliable? I will try it when I arrive home.

Gab1975

  • Posts: 1165
Re: PC Engine emulator port [WIP]
« Reply #12 on: May 15, 2014, 07:44:32 pm »
Are save states avaliable? I will try it when I arrive home.

Yes, the save state function is available and fully operative (I tested it)... ;)

ker (OP)

  • Posts: 620
Re: PC Engine emulator port [WIP]
« Reply #13 on: May 16, 2014, 01:42:46 am »
OPK updated. Changelog on first post.

Gab1975

  • Posts: 1165
Re: PC Engine emulator port [WIP]
« Reply #14 on: May 16, 2014, 07:48:25 am »
Good improvements Ker! ;)

The scrolling is very smoothly and the CD emulation works!
I tested a CD game without CD-DA tracks... I'm not sure, but I suppose that dingux-hugo supports only the uncompressed audio (not mp3 or ogg vorbis)

PS: I noticed that in the "Settings" sub-menu is possible to save a configuration, but it's not possible to load the saved configuration (probably the right path "$HOME/.hugo/set" was not set in the code)
« Last Edit: May 16, 2014, 07:51:01 am by Gab1975 »

ker (OP)

  • Posts: 620
Re: PC Engine emulator port [WIP]
« Reply #15 on: May 16, 2014, 08:44:28 am »
Good improvements Ker! ;)

The scrolling is very smoothly and the CD emulation works!
I tested a CD game without CD-DA tracks... I'm not sure, but I suppose that dingux-hugo supports only the uncompressed audio (not mp3 or ogg vorbis)

PS: I noticed that in the "Settings" sub-menu is possible to save a configuration, but it's not possible to load the saved configuration (probably the right path "$HOME/.hugo/set" was not set in the code)

YEEEES!!! I'm very happy!!! Thank you for your tests!!!

I'll take a look to config paths later.

Edit: Settings load problem fixed
« Last Edit: May 16, 2014, 09:38:54 am by ker »

Xaijiqq

  • Posts: 445
Re: PC Engine emulator port [WIP]
« Reply #16 on: May 16, 2014, 11:23:09 am »
thanks!  only tried a handful of games but the scrolling is a big improvement over the first release although i notice keith courage is running a little slower.  couldn't find the right balance to fix this when tweaking the settings it either went too fast or too slow

Gab1975

  • Posts: 1165
Re: PC Engine emulator port [WIP]
« Reply #17 on: May 16, 2014, 11:50:13 am »
I suppose that the v-sync and double buffer are hard coded, so you could remove the "v-sync" option in the "Settings" menu! :)

Gab1975

  • Posts: 1165
Re: PC Engine emulator port [WIP]
« Reply #18 on: May 16, 2014, 11:52:30 am »
thanks!  only tried a handful of games but the scrolling is a big improvement over the first release although i notice keith courage is running a little slower.  couldn't find the right balance to fix this when tweaking the settings it either went too fast or too slow

Maybe the triple buffer support could help in this case! :)

surfi80

  • Posts: 252
PC Engine emulator port [WIP]
« Reply #19 on: May 16, 2014, 12:18:08 pm »
wow going great, now proves cd games  ;D ;D ;D ;D ;D
play with the best? die like the rest!

http://www.elotrolado.net/wiki/PS_VITA_Usuarios_EoL