mehtank / androminion

Androminion : Unofficial Dominion for Android
189 stars 65 forks source link

Multi-player in the future? #273

Open ghost opened 9 years ago

ghost commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 1:58

Will there be a multiplayer edition soon so my friend and I can play against 
each other on our separate phones?

Original issue reported on code.google.com by rogue...@gmail.com on 1 Aug 2014 at 8:41

Copied from original issue: tkdennis/androminion#648

ghost commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 1:58

There is a multiplayer edition that you can download right now.  It's a little 
complicated to get working if you've never used a terminal before, but you 
start a serving running on a machine somewhere, then connect to it with your 
separate phones, and it works just fine.  So it's not as simple as just "play 
against each other on our separate phones", but it works.

And, it's not likely that this will ever be updated to be more user-friendly.  
I wrote the multiplayer code as it exists now, after the project was basically 
dead.  I don't have the time to make a version that runs just on phones, and it 
doesn't look likely that anyone else will take it up, because the app is 
somewhat in conflict with the makers of the game Dominion.

Original comment by drai...@gmail.com on 4 Aug 2014 at 12:28

ghost commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 1:58

Thanks... 
Where do I download it and are there instructions on setting up the server?

Thanks.

Original comment by rogue...@gmail.com on 4 Aug 2014 at 12:38

ghost commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 1:58

Sorry to be slow; for some reason I didn't get notified when you responded to 
this.  I starred the issue now, so I believe I will get an email if you respond 
with further questions.

You can download the APK that lets you run multiplayer here:
https://code.google.com/p/androminion/source/browse/branches/Multiplayer/andromi
nion/bin/Androminion-debug.apk?r=902

I believe if you just navigate to that link from your device and click on "View 
raw file", it should download it, and you can install the app.  You will 
probably have to uninstall any previous version of Androminion first, though.

(Or, if you're familiar with android development, you could just download the 
source and build and install the multiplayer branch yourself, following the 
instructions in the README in the multiplayer branch.)

For instructions running the server, see here:

https://code.google.com/p/androminion/issues/detail?id=582#c33

If you have questions, let me know, and I'll do what I can to help.

Original comment by drai...@gmail.com on 8 Aug 2014 at 1:23

ghost commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 1:58

I see the linked thread, does that mean I need the sdk running? Is there a 
configured build of vdom I can download? 
Thanks 

Original comment by forgetth...@gmail.com on 18 Dec 2014 at 6:58

ghost commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 1:58

The vdom code is just in this repository.  Download the code, cd to the vdom/ 
directory, and type `ant run`.  It should work, without the need for the 
android sdk.  That's to start the server running.  Then you need to connect a 
phone to the server to actually play the game.

Original comment by drai...@gmail.com on 19 Dec 2014 at 11:07

theEdwardJC commented 8 years ago

hey there... Trying to play around with getting multiplayer to work.

have gotten the server up and running on my Mac. Using ARC Welder (on my Mac) I have connected a virtual android device to my server (using local host, the preset parameter) This works fine... I have a couple of questions though.

  1. I am unable to connect a phone to the server. I have tried using my ip address instead of local host (ip found using ipconfig terminal command) and that didn't work. What else should I try? EDIT Solved this... I'm on an open wifi at University so that was why I couldn't connect. Set up my mobile hotspot and boom it worked...
  2. How can I change the cards for the game I'm setting up on my server?

UPDATE I messed around with the xml file in /vdom to get some random cards. This works well and no longer has problems compiling. Now my issue is starting the game. Both players can enter into the server, view the cards in the kingdom but nothing else works, the game does not start. In the log it looks like one of my devices "quits" What it seems to me is happening is the device will connect to server, server sees there is a player and moves to next open port. At that point, the first device disconnects (error on device1 screen) then device2 has no problem connecting to second port, but then the server sees that the first device has quit so it shuts down the server. If the server stayed up, I could maybe reconnect the device to the server. Not sure how to do that.

Help me out!

dominionator commented 8 years ago

I haven't looked into the Multiplayer code much yet, but I plan to (possibly after Empires). I think the whole Multiplayer system needs a major overhaul to be useful. If you do manage to find anything out, feel free to post it here.