Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: Farmboy90 on February 14, 2006, 11:57:52 pm

Title: FCE Ultra code?
Post by: Farmboy90 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.
Title: Re: FCE Ultra code?
Post by: darthbane2k 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
Title: Re: FCE Ultra code?
Post by: Fat_Trucker on February 15, 2006, 05:51:10 am
Apparently the issue only exists in FullScreen mode but it tracks ok in a maximised window.
Title: Re: FCE Ultra code?
Post by: darthbane2k 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?
Title: Re: FCE Ultra code?
Post by: Silver 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.

Title: Re: FCE Ultra code?
Post by: darthbane2k 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!
Title: Re: FCE Ultra code?
Post by: Farmboy90 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
Title: Re: FCE Ultra code?
Post by: Silver 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...
Title: Re: FCE Ultra code?
Post by: unclet 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 ....  :)
Title: Re: FCE Ultra code?
Post by: jcrouse 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
Title: Re: FCE Ultra code?
Post by: Silver 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....
Title: Re: FCE Ultra code?
Post by: Silver 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  (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...)
Title: Re: FCE Ultra code?
Post by: jcrouse 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
Title: Re: FCE Ultra code?
Post by: jcrouse 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
Title: Re: FCE Ultra code?
Post by: jcrouse 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