Author Topic: PC Engine Netplay  (Read 388 times)

albinoMithos

  • Guest
PC Engine Netplay
« on: August 05, 2008, 09:13:50 PM »
Well folks after a little playing around with Mednafen we have a working emulator with netplay available.  Using client versions 0.8.9 and server version 0.3.0 along with hamachi we're able to play multiplayer pc-engine/TG-16 games over the internet.  To do so first go here to get the client http://sourceforge.net/project/showfiles.php?group_id=150840 .  The server is available but you have to compile it, but a version compiled by Zeon is already available here http://www.mediafire.com/?i0mn1nxvm9z

Hamachi can be downloaded here: www.hamachi.cc

For those who haven't heard of hamachi it sets up a VPN which is a virtual private network that lets computers across the web connect as if you're really on the same network.  It gives you a virtual IP and everything.

Ok to get netplay started first we need to configure Hamachi.
1. Startup hamachi and press the power on button in the lower lefthand corner.
2. To the right of that is a button that lets you create or join network.  You can create your own network with a pass or you can join this one setup by wind
Network Name: pcengine
Network Password: pico

Everyone who wants to play in the same game needs to join the same network so decide and join up.

3.  Alright you now that the network is setup you need to click on the button to the right of the create/join network button.  Once that pops up goto preferences.  You should be at the status screen, but if you're not click on status on the left side area.  Then on the right panel there should be a button that says detailed configuration
click it.
4. In the window that pops up under "Connect via Proxy" click disable.  Under "Connecting through NAT" check both UDP and TCP and type in 4046 in both boxes.   Click OK and then OK again.  Ok now hamachi is set up. 

*NOTE: you may need to forward port 4046 on both UDP and TCP on your router.  This is especially true if you're running the server. *

Alright we're ready to get netplay going now:
1. First the person with the best connection should start the server (if you're using the pre-compiled version from zeon just run the .bat file)
2. Now you need to get a rom to play and load it into Mednafen by drag and drop onto the .exe or through the command line or however else it says you can do it in the readme.  It might be best if everybody uses the same rom but we've seen that this is not always the case but just to be on the safe side you might all want to use the same rom.
3. Ok the person who wants to be player 1 (i.e. the person that Mednafen lets control the game setup or master player) needs to connect to the server first. This could be the person running the server but that doesn't have to be the case.  Yes even the person running the server has to run the client in addition to the server and connect to their own server. 
4. To connect to the server once the client and rom are loaded up press T.  Then type in the following

/server [Server IP Address] 4046

[Server IP Address] is the address of, you guessed it, the person running the server.  Now since we're using the hamachi address you need to open up the hamachi window and see the address next to the name of the person who loaded up the server.  Type that address in.
Again this needs to be done in order of who wants to be what player (Player 1 connects first, 2 connects, 3 connects, etc.)

5. Once everyone is connected player 1 needs to startup the multiplayer game and it should automatically lead everybody to the screen player 1 is viewing.

Now you can play to your heart's content.

A few things:

1. You can change your controls by pressing ALT+SHIFT+1
You can use Joy2key if you want to use a a gamepad.  Joy2key maps keyboard buttons to joystick/pad buttons and can be downloaded here:
http://www.electracode.com/4/joy2key/JoyToKey%20English%20Version.htm

2. You can assign your client's nickname by typing in the following

/nick [Desired Nickname]

3.  F1 in Mednafen brings up a help menu.
4.  You can have multiple servers on the same network.
5. Mednafen supports PC Engine, SuperGrafx, PC Engine CD, PC-FX, TG-16, TG-CD games.  I'm not sure about this but it seems that the PC-FX emulation is still under development. 


Take note that Mednafen is not the best emulator and honestly I want to destroy the person who wrote it........but I'll not do it cause he did give us netplay and deserves mad props for that.  Also a big thanks to Zeon for starting the whole netplay endeavor and Windancer for being a test subject.  Also if anyone has any questions you can PM Zeon or I or you can refer to the readme included with the Mednafen install. 

Also the use of hamachi may not be needed but that's the only way we got it to work and the way we know works so if anyone gets it to work without hamachi let us know.  We think it may just be bad interaction between our ISPs when we tried to connect without hamachi, but hamachi solved that. 

Oh Mednafen works under Linux and Windows, not sure about Mac OS. 

Mednafen documentation can be found here:
http://mednafen.sourceforge.net/documentation/


So anyone wanna play or have a suggestion on what we should play? :P
« Last Edit: August 05, 2008, 09:28:08 PM by Mithos »

Windancer

  • Guest
Re: PC Engine Netplay
« Reply #1 on: August 05, 2008, 09:20:56 PM »
oh I just downloaded bomberman 93, burning angels, Don doko don, and double dungeons let the online play begin!

oldskool

  • Sr. Member
  • ****
  • Posts: 319
Re: PC Engine Netplay
« Reply #2 on: August 05, 2008, 09:30:42 PM »
I'll definetely get this set up soon!!


Keranu

  • Hero Member
  • *****
  • Posts: 9054
Re: PC Engine Netplay
« Reply #3 on: August 05, 2008, 10:45:56 PM »
Great to see that there is finally a way to play Turbo games online! I've been waiting for that for years.
Quote from: Bonknuts
Adding PCE console specific layer on top of that, makes for an interesting challenge (no, not a reference to Ys II).

ceti alpha

  • Hero Member
  • *****
  • Posts: 3835
Re: PC Engine Netplay
« Reply #4 on: August 06, 2008, 03:38:33 AM »
This is fantastic!  :clap: :clap:


"Let the CAW and Mystery of a Journey Unlike Any Other Begin"

Black Tiger

  • Hero Member
  • *****
  • Posts: 11242
Re: PC Engine Netplay
« Reply #5 on: August 06, 2008, 04:49:55 AM »
This is very cool, but I hope I can get it running. :P
http://www.superpcenginegrafx.net/forum

Active and drama free PC Engine forum

Necromancer

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 21366
Re: PC Engine Netplay
« Reply #6 on: August 06, 2008, 07:18:02 AM »
Take note that Mednafen is not the best emulator and honestly I want to destroy the person who wrote it........but I'll not do it cause he did give us netplay and deserves mad props for that.

You may not think that Mednafen is the best, but it is the most accurate.  Its creator is a fellow forum member; if you'd asked, she might've helped you set it up properly.
U.S. Collection: 97% complete    155/159 titles

albinoMithos

  • Guest
Re: PC Engine Netplay
« Reply #7 on: August 06, 2008, 07:58:23 AM »
Take note that Mednafen is not the best emulator and honestly I want to destroy the person who wrote it........but I'll not do it cause he did give us netplay and deserves mad props for that.

You may not think that Mednafen is the best, but it is the most accurate.  Its creator is a fellow forum member; if you'd asked, she might've helped you set it up properly.

That's not my problem with it.  When I say it's not the best I don't mean accurate I mean it's not the easiest to use.  I know how to set it up and it's a it cumbersome is all.  I was just fuming about it is all.  Nothing personal.

Necromancer

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 21366
Re: PC Engine Netplay
« Reply #8 on: August 06, 2008, 08:09:05 AM »
I wasn't disagreeing about it being the best, as I prefer ME myself.  I was just noting that it accurately emulates the hardware, rather than being a string of hacks to make specific games work.  As for setting it up, I meant the net play; perhaps you don't need a VPN, or maybe their's an easier way.
U.S. Collection: 97% complete    155/159 titles

albinoMithos

  • Guest
Re: PC Engine Netplay
« Reply #9 on: August 06, 2008, 08:20:11 AM »
I wasn't disagreeing about it being the best, as I prefer ME myself.  I was just noting that it accurately emulates the hardware, rather than being a string of hacks to make specific games work.  As for setting it up, I meant the net play; perhaps you don't need a VPN, or maybe their's an easier way.

I'm pretty sure we don't need a VPN, but for the 3 of us that were trying to get it to work we could never direct connect...... I mean it could be something as stupid as one of us forgot to set out routers properly, or a static ip wasn't actually static or something dumb like that.  I included the part about the VPN because it's mostly a guaranteed method that we got to work.  Like I said before if anyone finds otherwise I'd like to know because it should work directly.   Also I guess "not the best emulator" was a bad choice of words on my part.  Emulator program would've been better as the emulation is fine, just other things aren't.
« Last Edit: August 06, 2008, 09:51:02 AM by Mithos »

Mednafen

  • Full Member
  • ***
  • Posts: 140
Re: PC Engine Netplay
« Reply #10 on: August 06, 2008, 12:59:27 PM »
FYI, 38.113.114.92 runs an open server, on the west coast of the U.S.  The network connectivity is kind of sketchy, and server(not netplay server) load is high at times, so it may not be the best as far as latency is concerned.

Also, there are some bugs in the pad emulation save-state code, specifically relating to 6-button controller mode.  If a player has it enabled when connecting, or disables/enables it while connected and another player connects, there will be very bad desynchronization.  (Note that this mode is unintentionally enabled while configuring buttons, so it would be best to exit and restart after configuring buttons before you use netplay).  These bugs are planned to be fixed in 0.8.A.

albinoMithos

  • Guest
Re: PC Engine Netplay
« Reply #11 on: August 06, 2008, 01:05:52 PM »
FYI, 38.113.114.92 runs an open server, on the west coast of the U.S.  The network connectivity is kind of sketchy, and server(not netplay server) load is high at times, so it may not be the best as far as latency is concerned.

Also, there are some bugs in the pad emulation save-state code, specifically relating to 6-button controller mode.  If a player has it enabled when connecting, or disables/enables it while connected and another player connects, there will be very bad desynchronization.  (Note that this mode is unintentionally enabled while configuring buttons, so it would be best to exit and restart after configuring buttons before you use netplay).  These bugs are planned to be fixed in 0.8.A.

Cool!  I didn't know you were a member here at all. Sorry about the earlier remarks really I don't mean anything bad by it at all.  Actually I may have some questions later about Mednafen if that's alright with you.
« Last Edit: August 06, 2008, 01:21:28 PM by Mithos »

Joe Redifer

  • Hero Member
  • *****
  • Posts: 8178
Re: PC Engine Netplay
« Reply #12 on: August 06, 2008, 01:11:15 PM »
This all sounds way too easy, straightforward and uncomplicated for me.  I refuse to play internet multiplayer unless it is more of a pain in the ass!

_joshuaTurbo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5157
Re: PC Engine Netplay
« Reply #13 on: August 11, 2008, 04:17:33 AM »
any idea if MednafenX for Xbox could get this treatment?

albinoMithos

  • Guest
Re: PC Engine Netplay
« Reply #14 on: August 11, 2008, 08:13:07 AM »
any idea if MednafenX for Xbox could get this treatment?
Not sure never used it, but I could check later.