• HomeBoards
  • RulesRules
  • HelpHelp
  • WikiWiki
  • Donate

Author Topic: Vectrex SDL  (Read 64145 times)

Domian

  • Guest
Re: Vectrex SDL
« Reply #20 on: September 17, 2010, 11:58:01 pm »
I notice a problem, when I push long time on X during the games, emulator stop working and return to menu.


Answere:
Harteex, looks like SDL has the bug with X button: if the button pressed for long time (about 3 sec) the program quits.
That's standard "feature" of sys_judge_event -- Tim0xA was first who found it: http://boards.dingoonity.org/dingoo-development/platform-independant-dingoo-sdk/msg17853/#msg17853
So now all SDL-based games build with dingoo-sdk have the same "feature".
It's not really bug, but a feature in the OS. There are two ways you can use to fix it:

Either, before SDL init, do SDL_putenv("DINGOO_IGNORE_OS_EVENTS=1");
This is a dingoo specific flag to ignore the system events.

Otherwise you may also simply look for this code: if (event.type == SDL_QUIT)
and comment out the code so that you don't do anything on a quit event.

Domian

  • Guest
Re: Vectrex SDL
« Reply #21 on: September 18, 2010, 12:01:46 am »
I have a big selection of Vectrex ROMs waiting to be played on my Dingoo. Woo-hoo!
If they are free to share, can you share them? If it is ok by the Admins that is ofc?

TheCaffeinator

  • Posts: 128
Re: Vectrex SDL
« Reply #22 on: September 18, 2010, 05:02:45 am »
I didin't realize it at the time, but I kind of already did, which probably would have gotten me banned if the ROMs weren't already in the public domain. Just look at my earlier posts in this thread; it'll be obvious.

Domian

  • Guest
Re: Vectrex SDL
« Reply #23 on: September 18, 2010, 08:47:24 am »
I didin't realize it at the time, but I kind of already did, which probably would have gotten me banned if the ROMs weren't already in the public domain. Just look at my earlier posts in this thread; it'll be obvious.
oh yea, stupid me :D missed that! thank you :)

nzeemin

  • Guest
Vectrex SDL 0.3
« Reply #24 on: September 18, 2010, 02:11:13 pm »
Vectrex SDL 0.3 -- now with overlays!

This version seek for file <gamename>.png.
For now I prepared only two overlays: for Frogger and for Armor games.



Download: http://nzeemin-opensrc.googlecode.com/files/VectrexSdl_0_3.zip

Some more words on overlays. The .png file should be 320x240 pixels, so the image rotated 90 degree clockwise.
There are some overlays prepared for MESS project: http://mess.redump.net/_media/artwork:vectrex.zip but the images should be resized and rotated.
« Last Edit: September 18, 2010, 02:14:14 pm by nzeemin »

Chris23235

  • Posts: 603
Re: Vectrex SDL
« Reply #25 on: September 18, 2010, 07:56:40 pm »
Thanks for your work, any plans of including sound?

Maybe Fuzzi23 can provide us with a nice pack of overlays already converted for the Dingoo?
« Last Edit: September 18, 2010, 07:58:27 pm by Chris23235 »

nzeemin

  • Guest
Re: Vectrex SDL
« Reply #26 on: September 18, 2010, 08:03:19 pm »
Thanks for your work, any plans of including sound?

Maybe Fuzzi23 can provide us with a nice pack of overlays already converted for the Dingoo?

All I done for the moment was just recompiling the existing emulator with some tuning. So I'm not ready to enhance it to the next level right now, sorry. First I have to finish one other project for Dingoo. Will see after that.

Chris23235

  • Posts: 603
Re: Vectrex SDL
« Reply #27 on: September 19, 2010, 02:42:50 am »
No rush, right now I am happy to have Vectrex on my Dingoo at all.

fuzzi23

  • Posts: 207
Re: Vectrex SDL
« Reply #28 on: September 21, 2010, 10:22:13 pm »
Yes, Yes...  Yessssss!!! ;D

After Amiga now my dearly beloved Vectrex. Thank you so much nzeemin. That's what I was waiting for. Now all that's missing is an VPinMAME Port. ;D

Quote
Maybe Fuzzi23 can provide us with a nice pack of overlays already converted for the Dingoo?

yes, as chris knows I work on an complete overlay pack (includes overlays for each homebrew game). But I want first complete my work before I publish them, so it could take months until it is done. :-\

nzeemin

  • Guest
Vectrex SDL 0.4
« Reply #29 on: September 23, 2010, 04:06:17 pm »
Vectrex SDL 0.4:
  • In this new version I renamed rom.dat to ROM.VECX so now you can select ROM.VECX in the list of game roms -- that means "do not use any cartridge, run Mine Storm game from the device ROM".
  • "I push long time on X during the game" problem was addressed.
  • Also, I included 15 PD games in the archive along with overlays adopted to the Dingoo version.

Download: http://nzeemin-opensrc.googlecode.com/files/VectrexSdl_0_4.zip
Enjoy!


Chris23235

  • Posts: 603
Re: Vectrex SDL
« Reply #30 on: September 23, 2010, 05:03:39 pm »
Runs great, the Overlays look fine. No only sound is missing, if you manage to add it, you would make many people happy, but even without sound, thanks for your work.

nzeemin

  • Guest
Re: Vectrex SDL
« Reply #31 on: September 23, 2010, 05:47:10 pm »
Runs great, the Overlays look fine. No only sound is missing, if you manage to add it, you would make many people happy, but even without sound, thanks for your work.

Thanks for the kind words.

BTW I found a vecx emulator fork with sound support. Hope I can adopt it to my version.
http://petersieg.webng.com/vectrex/vectrex.html

nzeemin

  • Guest
Re: Vectrex SDL
« Reply #32 on: September 23, 2010, 08:27:10 pm »
So, I adopted the AY emulation code from that vecx fork, and it works on PC,
BUT it doesn't work on Dingoo :(
Looks like I found a bug in Dingoo SDL audio implementation.
I reported it so we'll see what dingoo-sdk developers will say about it.

Chris23235

  • Posts: 603
Re: Vectrex SDL
« Reply #33 on: September 23, 2010, 09:07:16 pm »
Interesting developent, I will stay tuned. :-)

Coccijoe

  • Posts: 366
    • Underground Portables
Re: Vectrex SDL
« Reply #34 on: September 24, 2010, 12:00:16 am »
thank you for your work !

djdron

  • Posts: 33
Re: Vectrex SDL
« Reply #35 on: September 24, 2010, 09:57:22 am »
Where we can get plastic screen overlays for Dingoo?  :D

Hellblaze

  • Guest
Re: Vectrex SDL
« Reply #36 on: September 28, 2010, 04:59:42 am »
Nice :)

I'm crossing my fingers that you can get sound working at some point.

Is there a way to get ROMS to run off the miniSD Card? Not a major issue, was just worried I was doing something wrong...

nzeemin

  • Guest
Re: Vectrex SDL
« Reply #37 on: October 01, 2010, 06:46:57 pm »
Bad news. I just noticed that overlays make the emulator run too slow. Will work on it.

nzeemin

  • Guest
Vectrex SDL 0.6 -- now with sound
« Reply #38 on: October 03, 2010, 09:32:16 pm »
Thanks for Harteex for dingoo_sdk patch, so this release includes sound support.
But I noticed that games run too slowly with overlays, so looks like you have to choose, use overlay or hear sounds at proper speed.
Just remove .PNG if you don't need overlay.

Download: http://nzeemin-opensrc.googlecode.com/files/VectrexSdl_0_6.zip

Chris23235

  • Posts: 603
Re: Vectrex SDL
« Reply #39 on: October 04, 2010, 11:29:36 am »
Many thanks, sound support is great :-)

 

Post a new topic