Author Topic: [SOLVED] fceux: two players on one gcw zero  (Read 4509 times)

bdantas (OP)

  • *
  • Posts: 6
[SOLVED] fceux: two players on one gcw zero
« on: August 28, 2014, 04:08:45 pm »
I got the gcw zero to play classic two-player nes games (galaga, arkanoid, etc) with my wife. Everything works fine for player one, but the d-pad and buttons don't do anything when it is player two's turn. Since all the games we'd like to play are ones where the two players take turns, it seems silly to require two different devices or controllers.

I've tinkered with the settings in /usr/local/home/.fceux/fceux.cfg, /usr/local/home/.fceux/cfg/.cfg, and (for example) /usr/local/home/.fceux/cfg/galaga.cfg. I've tried all the logical things (e.g., SDL.Input.GamePad.1 settings same as for SDL.Input.GamePad.0) and nothing has worked.

Please, which setting(s) in which fceux config file(s) need(s) to be changed so that the controls for player two are the same as those for player one (i.e., both players are playing on the same gcw zero, handing the device back and forth as they take turns)? If this is impossible with fceux, is there a different nes emulator for the gcw that supports this?
« Last Edit: August 31, 2014, 02:48:06 am by bdantas »

bdantas (OP)

  • *
  • Posts: 6
Re: fceux: two players on one gcw zero
« Reply #1 on: August 30, 2014, 01:35:34 am »
I contacted one of fceux's developers (adelikat) with this question. I got a prompt and courteous response, but he did not seem to be familiar with the gcw zero.

At this point I have tried every combination and permutation of config settings in different files but have made no progress with this. Even though I am a gcw zero/emulation newbie, I am proficient with linux and am highly motivated to solve this. Any tips would be greatly appreciated.

pcercuei

  • ***
  • Posts: 1429
    • My devblog
Re: fceux: two players on one gcw zero
« Reply #2 on: August 30, 2014, 07:08:22 am »
I think that fceux does not support that, at least not the port that we use; it would be required to add the feature to the code.

bdantas (OP)

  • *
  • Posts: 6
Re: fceux: two players on one gcw zero
« Reply #3 on: August 30, 2014, 11:58:17 am »
That's a pity, but it's good to know so that I can stop chasing my tail on this. Thank you.

Would you happen to know where I can submit the feature request?

Nebuleon

  • Guest
Re: fceux: two players on one gcw zero
« Reply #4 on: August 30, 2014, 08:22:46 pm »
Well, you've already made it here, but you can submit it in a post in /GCW Zero/Releases/FCEUX 2.2.2 as well.

zear

  • * Moderator
  • Posts: 2379
Re: fceux: two players on one gcw zero
« Reply #5 on: August 30, 2014, 10:31:53 pm »
@bdantas
I made the appropriate changes in the source code. Could you please test and see if it matches your expectations and/or functions without issues?


OPK download: https://docs.google.com/file/d/0B7wD0T-3tQNpMGxBZHh0b0xsYlk
Diff: http://pastebin.com/kyC6XbJ2 (also available as pull request on the project's repo)
« Last Edit: August 30, 2014, 11:12:14 pm by zear »

Nebuleon

  • Guest
Re: fceux: two players on one gcw zero
« Reply #6 on: August 30, 2014, 10:47:20 pm »
Reading the diff quickly for code review, I spotted a few issues; zear is fixing those in a new paste. I don't know whether UpdateGamepad() wants the status of NES controllers as bits, or of host controllers, so I'm not sure if the way he made copies of controller 1 into controller 2 is correct.

Edit: Yeah, (wg + 1) << 3 implies that further controllers are just higher up in the controller bits. This should be correct.
« Last Edit: August 30, 2014, 11:01:01 pm by Nebuleon »

bdantas (OP)

  • *
  • Posts: 6
Re: fceux: two players on one gcw zero
« Reply #7 on: August 31, 2014, 02:43:12 am »
@zear

YES, I tried the opk in your link and the "Merge P1/P2" setting causes the device to function exactly as expected.

I am absolutely amazed at how quickly you implemented the feature and resolved this issue. Thank you so much.

raygan

  • *
  • Posts: 158
    • I'm on Twitter and stuff...
Re: [SOLVED] fceux: two players on one gcw zero
« Reply #8 on: August 31, 2014, 05:02:41 am »
This is a cool development; it had not occurred to me that many NES games can basically work as "pass-and-play" given this change.

Which games play well this way?

bdantas (OP)

  • *
  • Posts: 6
Re: [SOLVED] fceux: two players on one gcw zero
« Reply #9 on: August 31, 2014, 01:34:35 pm »
Galaga, Arkanoid, Pac-Man, Ms. Pac-Man, Q*bert, and Super Mario Bros, to name my favorites. I am sure there are many, many more but I don't have a list.
« Last Edit: August 31, 2014, 07:34:30 pm by bdantas »

Gab1975

  • ***
  • Posts: 1165
Re: [SOLVED] fceux: two players on one gcw zero
« Reply #10 on: September 01, 2014, 09:18:18 am »
Can this fceux release (2014-08-30) be considered an official update or is it still a "beta version" ?

zear

  • * Moderator
  • Posts: 2379
Re: [SOLVED] fceux: two players on one gcw zero
« Reply #11 on: September 01, 2014, 09:23:54 am »
Can this fceux release (2014-08-30) be considered an official update or is it still a "beta version" ?
I only recompiled it with this new feature. This is by no means a new official build by d_smagin.

 

Post a new topic
Post a new topic