It is currently 18 Sep 2019, 09:24
   
Text Size

Network Multiplayer (Multi-human players)

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, friarsol, Blacksmith, KrazyTheFox, Agetian, CCGHQ Admins

Re: Network Multiplayer (Multi-human players)

Postby Rob Cashwalker » 03 Nov 2014, 05:05

We can put it on cardforge.org of course...

It would be really cool if it could be hosted on multiple servers which keep each other updated.
The Force will be with you, Always.
User avatar
Rob Cashwalker
Programmer
 
Posts: 2167
Joined: 09 Sep 2008, 15:09
Location: New York
Has thanked: 5 times
Been thanked: 40 times

Re: Network Multiplayer (Multi-human players)

Postby elcnesh » 03 Nov 2014, 07:25

I have some domain names (external hosting, which includes php and sql) which we could use :) But of course cardfore.org makes the most sense ;)
elcnesh
 
Posts: 290
Joined: 16 May 2014, 15:11
Location: Netherlands
Has thanked: 34 times
Been thanked: 92 times

Re: Network Multiplayer (Multi-human players)

Postby drdev » 03 Nov 2014, 15:52

cardforge.org is the first thing I thought of, but it doesn't seem to have PHP and MySQL support from what I could tell. I tried connecting to it using WebMatrix with my FTP credentials that I use for publish Android builds, but it was returning that cardforge does not support PHP.

If that's not the case, could somebody tell me how to publish PHP to and create a MySQL database on cardforge?
drdev
Programmer
 
Posts: 1958
Joined: 27 Jul 2013, 02:07
Has thanked: 189 times
Been thanked: 565 times

Re: Network Multiplayer (Multi-human players)

Postby friarsol » 03 Nov 2014, 16:02

drdev wrote:cardforge.org is the first thing I thought of, but it doesn't seem to have PHP and MySQL support from what I could tell. I tried connecting to it using WebMatrix with my FTP credentials that I use for publish Android builds, but it was returning that cardforge does not support PHP.
Probably just your credentials are only setup for FTPing. If you goto the cardforge website, the index redirects you to /index.php and I'm pretty sure the Mantis Bug Tracker (that we tried to use for a little bit) requires a Database (which is probably MySQL)
friarsol
Global Moderator
 
Posts: 7467
Joined: 15 May 2010, 04:20
Has thanked: 241 times
Been thanked: 934 times

Re: Network Multiplayer (Multi-human players)

Postby Fizanko » 03 Nov 2014, 17:11

Please, make that tracking of players by a server/database/whatever something optional and not forced on players that may not agree to being tracked by a server while playing Forge.
Innistrad world for Forge (updated 17/11/2014)
Duel Decks for Forge - Forge custom decks (updated 25/10/2014)
User avatar
Fizanko
Tester
 
Posts: 768
Joined: 07 Feb 2014, 11:24
Has thanked: 154 times
Been thanked: 87 times

Re: Network Multiplayer (Multi-human players)

Postby drdev » 03 Nov 2014, 20:03

Fizanko wrote:Please, make that tracking of players by a server/database/whatever something optional and not forced on players that may not agree to being tracked by a server while playing Forge.
It will be optional. As I've designed it in my head, you can either enter an IP address manually, post a game to this "server" for others to find, or click on one of those postings to challenge someone who already created a game. There will be no login required, and the only thing that will ever be shared if you create a game is your IP address, player name and avatar, and game format information. If you choose to join a game someone else posted, then this information will only be sent to that person and not the "server".

Once a game has its players, the "server" no longer plays a role. Instead, one player's machine will act as the game server that the others will communicate with via sockets.

Does that make sense?
drdev
Programmer
 
Posts: 1958
Joined: 27 Jul 2013, 02:07
Has thanked: 189 times
Been thanked: 565 times

Re: Network Multiplayer (Multi-human players)

Postby elcnesh » 03 Nov 2014, 20:33

Sounds good! The only other thing I think we should communicate is the Forge version number, to prevent mixed versions causing crashes in network games :P
elcnesh
 
Posts: 290
Joined: 16 May 2014, 15:11
Location: Netherlands
Has thanked: 34 times
Been thanked: 92 times

Re: Network Multiplayer (Multi-human players)

Postby drdev » 04 Nov 2014, 00:33

elcnesh wrote:Sounds good! The only other thing I think we should communicate is the Forge version number, to prevent mixed versions causing crashes in network games :P
Yeah, I was planning to prevent playing against someone who's not on the same major version as you. Or maybe just disable network support unless you're on the most recent major version (it'd be a nice way to encourage people to update).
drdev
Programmer
 
Posts: 1958
Joined: 27 Jul 2013, 02:07
Has thanked: 189 times
Been thanked: 565 times

Re: Network Multiplayer (Multi-human players)

Postby Rob Cashwalker » 05 Nov 2014, 05:06

drdev wrote:cardforge.org is the first thing I thought of, but it doesn't seem to have PHP and MySQL support from what I could tell. I tried connecting to it using WebMatrix with my FTP credentials that I use for publish Android builds, but it was returning that cardforge does not support PHP.

If that's not the case, could somebody tell me how to publish PHP to and create a MySQL database on cardforge?
As friarsol postulated, it's a different set of credentials for mysql access. PHP should execute from just about any folder. Send me a PM to discuss what you need.
The Force will be with you, Always.
User avatar
Rob Cashwalker
Programmer
 
Posts: 2167
Joined: 09 Sep 2008, 15:09
Location: New York
Has thanked: 5 times
Been thanked: 40 times

Re: Network Multiplayer (Multi-human players)

Postby drdev » 07 Nov 2014, 20:22

Rob Cashwalker wrote:
drdev wrote:cardforge.org is the first thing I thought of, but it doesn't seem to have PHP and MySQL support from what I could tell. I tried connecting to it using WebMatrix with my FTP credentials that I use for publish Android builds, but it was returning that cardforge does not support PHP.

If that's not the case, could somebody tell me how to publish PHP to and create a MySQL database on cardforge?
As friarsol postulated, it's a different set of credentials for mysql access. PHP should execute from just about any folder. Send me a PM to discuss what you need.
I sent you a PM a few days ago but haven't heard back. Just following up on here in case you never got my PM.
drdev
Programmer
 
Posts: 1958
Joined: 27 Jul 2013, 02:07
Has thanked: 189 times
Been thanked: 565 times

Re: Network Multiplayer (Multi-human players)

Postby MIC132 » 21 Dec 2014, 17:19

What is the current progress on this feature?
MIC132
 
Posts: 47
Joined: 17 Sep 2013, 15:18
Has thanked: 0 time
Been thanked: 2 times

Re: Network Multiplayer (Multi-human players)

Postby Hikarius » 24 Jan 2015, 12:45

Hello, I want to try programming Network Multiplayer for Forge can anybody give me your sources of last developments in this case that I can branch your code and did not start from scratch ? (sorry for my bad english)
Hikarius
 
Posts: 2
Joined: 24 Jan 2015, 12:02
Has thanked: 0 time
Been thanked: 0 time

Re: Network Multiplayer (Multi-human players)

Postby Max mtg » 26 Jan 2015, 12:23

Has anyone written a multiplayer engine yet? :)
Single class for single responsibility.
Max mtg
Programmer
 
Posts: 1997
Joined: 02 Jul 2011, 14:26
Has thanked: 173 times
Been thanked: 334 times

Re: Network Multiplayer (Multi-human players)

Postby elcnesh » 26 Jan 2015, 12:25

Nope. Also I don't have anything to add to the svn right now. Maybe Dan does, but otherwise I'd say: go ahead with experimenting on HEAD :)
elcnesh
 
Posts: 290
Joined: 16 May 2014, 15:11
Location: Netherlands
Has thanked: 34 times
Been thanked: 92 times

Re: Network Multiplayer (Multi-human players)

Postby drdev » 26 Jan 2015, 15:51

I am not actively working on anything beyond the TrackableObject stuff that's already done. So anyone interested in working on this should feel free to do so off of the code currently in trunk.
drdev
Programmer
 
Posts: 1958
Joined: 27 Jul 2013, 02:07
Has thanked: 189 times
Been thanked: 565 times

PreviousNext

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 5 guests


Who is online

In total there are 5 users online :: 0 registered, 0 hidden and 5 guests (based on users active over the past 10 minutes)
Most users ever online was 287 on 31 Mar 2019, 04:11

Users browsing this forum: No registered users and 5 guests

Login Form