Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: FCE Ultra code?  (Read 2042 times)

0 Members and 1 Guest are viewing this topic.

Farmboy90

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 294
  • Last login:June 26, 2006, 12:15:04 am
  • My cab is done... Pics coming soon!!
FCE Ultra code?
« on: February 14, 2006, 11:57:52 pm »
Does anyone knows where to get the source code to FCE Ultra?  It is supposed to be open source but I couldn't find it for some reason.

I want to see about fixing the offset problem with lightguns.  All games seem to be off by a couple inches so I wanted to peek into the code to see if it can be fixed.

darthbane2k

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 546
  • Last login:September 30, 2009, 04:54:06 am
  • Built the cab, just need the time to play!
Re: FCE Ultra code?
« Reply #1 on: February 15, 2006, 04:48:14 am »
Does anyone knows where to get the source code to FCE Ultra?  It is supposed to be open source but I couldn't find it for some reason.

I want to see about fixing the offset problem with lightguns.  All games seem to be off by a couple inches so I wanted to peek into the code to see if it can be fixed.

I too am curious about this, although its not too much of a problem, as all of the NES gun games are playable in MAME via the VS (or was it playchoice?) series.

However if you check this review of the LCD Topgun

http://www.lik-sang.com/news.php?artc=3798

they specifically confirm that duck hunt was tested on fce ultra perfectly.. I would like to know what version they were using, because I have the SAME Oftset problem as you

Fat_Trucker

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 306
  • Last login:September 08, 2010, 11:44:22 am
  • I want to build my own arcade controls!
Re: FCE Ultra code?
« Reply #2 on: February 15, 2006, 05:51:10 am »
Apparently the issue only exists in FullScreen mode but it tracks ok in a maximised window.
I didn't touch it....honest!

darthbane2k

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 546
  • Last login:September 30, 2009, 04:54:06 am
  • Built the cab, just need the time to play!
Re: FCE Ultra code?
« Reply #3 on: February 15, 2006, 06:00:45 am »
Apparently the issue only exists in FullScreen mode but it tracks ok in a maximised window.

yeah, but what use is that in a cab?

Silver

  • Wiki Contributor
  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1668
  • Last login:February 17, 2024, 10:29:00 am
  • Cunning like the Fox.
    • Mods'n'Mods
Re: FCE Ultra code?
« Reply #4 on: February 15, 2006, 06:11:07 am »
Hi, fancy seeing you lot here.....

Anyway, you can get the source for FCE Ultra here:

http://www.zophar.net/nes.html

latest stable was 0.98.12, so I would not bother with the 0.98.13/debug release.


darthbane2k

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 546
  • Last login:September 30, 2009, 04:54:06 am
  • Built the cab, just need the time to play!
Re: FCE Ultra code?
« Reply #5 on: February 15, 2006, 06:16:30 am »
Hi, fancy seeing you lot here.....

Anyway, you can get the source for FCE Ultra here:

http://www.zophar.net/nes.html

latest stable was 0.98.12, so I would not bother with the 0.98.13/debug release.



remember to hack it to enable the ESC key to exit!

Farmboy90

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 294
  • Last login:June 26, 2006, 12:15:04 am
  • My cab is done... Pics coming soon!!
Re: FCE Ultra code?
« Reply #6 on: February 15, 2006, 10:47:15 am »
Any other requests while I am poking around?  :)

Thanks Silver for the link.  Christ, put this on the list of things for me to work on...  PowerMAME, FCE Utlra...

I should have never started this stupid hobby.  :P

Silver

  • Wiki Contributor
  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1668
  • Last login:February 17, 2024, 10:29:00 am
  • Cunning like the Fox.
    • Mods'n'Mods
Re: FCE Ultra code?
« Reply #7 on: February 15, 2006, 10:52:37 am »
I believe you can start it up fullscreen from the commandline, although looking at the code earlier I think it looked easy to set it to default to fullscreen...

I only had a quick look, looks like the mouse co-ords (GetMouseData and others) are tied up in all the sdl video drawing code, which is presumably cos it uses the SDL library for full screen. Not overly obvious at first glance where its setting initial co-ords on the switch to full screen, but then I'm not experienced at C...

unclet

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3561
  • Last login:April 26, 2023, 07:34:43 pm
Re: FCE Ultra code?
« Reply #8 on: February 15, 2006, 03:15:22 pm »
Just make sure you inform everyone when you are done and possibly place your hacked FCE Ultra version next to the others on jcrouse's site.

Obvious ... but I thought I would mention it  anyway ....  :)

jcrouse

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1027
  • Last login:January 09, 2010, 05:53:51 pm
    • CPViewer
Re: FCE Ultra code?
« Reply #9 on: February 16, 2006, 09:37:57 am »
I would downlaod the hacked version from my CPViewer website and look at the readme. There are a few other changes that we incorporated. Mostly Mame keys such as pause and screenshots. It gets a little tricky with the save state keys since I believe a couple of them conflict slightly.

John

Silver

  • Wiki Contributor
  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1668
  • Last login:February 17, 2024, 10:29:00 am
  • Cunning like the Fox.
    • Mods'n'Mods
Re: FCE Ultra code?
« Reply #10 on: February 17, 2006, 12:06:12 am »
Ah there is already a hacked version?

Do you know if the source is available for this?

Also I don't have much time to look at this, and I'm also learning C.

If someone whos looked at this before/is good at C could take a look, it would probably be a lot faster getting this hack done....
« Last Edit: February 17, 2006, 12:13:54 am by Silver »

Silver

  • Wiki Contributor
  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1668
  • Last login:February 17, 2024, 10:29:00 am
  • Cunning like the Fox.
    • Mods'n'Mods
Re: FCE Ultra code?
« Reply #11 on: March 10, 2006, 07:23:30 am »
Just posted this in lightgun thread, forgot about this one:

RE NES lightguns - someone was asking about FCE and the Topgun lightguns a while back....

The lightguns work in FCE, at least in windowed mode, but as soon as you switch to fullscreen, we get an offset similar to the offset issues we had in some mame games until we corrected the lightguns input port's initial co-ordinates to be 'centre-of-the screen'.

I've been communicating with the author of FCEU SP (it seems the original FCE authors are not around for communication) who has also spoken to the Nintendulator authors, but the issue has not been resolved (they can't think of anything causing it, but also can not reproduce the error because they don't have lightguns - it works ok with mice.) Also the lightgun code in FCE and its variants has apparantly not been touched since it was originally written and that author as mentioned is not around...

I've tried going through the FCEU code and reading up on SDL libarys (FCEU uses SDL for its input/gfx interfaces) but can't see anything obvious causing the shift in full screen, not that it means much(!). The SDL call to retrieve the mouse co-ordinates is pretty basic so its possible the issue is in how SDL is getting the mouse co-ords in the first place when in fullscreen (ie the SDL library).

Is anyone here familar with SDL and/or C and willing to take a look? The FCEU source is available here:

http://www.zophar.net/nes.html (look at 0.98.12 code)

You can search for GetMouseData to see some of the SDL calls. (input.c and sdl.c etc...)

jcrouse

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1027
  • Last login:January 09, 2010, 05:53:51 pm
    • CPViewer
Re: FCE Ultra code?
« Reply #12 on: March 10, 2006, 07:40:15 am »
Ah there is already a hacked version?

Do you know if the source is available for this?

Also I don't have much time to look at this, and I'm also learning C.

If someone whos looked at this before/is good at C could take a look, it would probably be a lot faster getting this hack done....

I have acces to the source for the hacked version on my website. It has mame/cabinet friendly controls. Let me know if you need it. I too am in the process of self-educating in C++.

Silver ...... Drop me an email if you need anything!

John
« Last Edit: March 10, 2006, 07:42:40 am by jcrouse »

jcrouse

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1027
  • Last login:January 09, 2010, 05:53:51 pm
    • CPViewer
Re: FCE Ultra code?
« Reply #13 on: March 10, 2006, 08:56:01 am »
My (actually Jerry Fath's) version has these changes:

Exits with the ESC key
Pauses with the P key
No saves state graphics when pressing the 1 or 2 key.

John

jcrouse

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1027
  • Last login:January 09, 2010, 05:53:51 pm
    • CPViewer
Re: FCE Ultra code?
« Reply #14 on: March 13, 2006, 03:25:37 pm »
Bear in mind that NES is darn near perfect in MESS. That being said, once Derrick gets the Mame mouse/lightgun sorted out the changes will find their way into MESS and maybe help with the issues.

John