It is currently 19 Apr 2024, 10:10
   
Text Size

Multiplayer Server in Progress

Post MTG Forge Related Programming Questions Here

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

Multiplayer Server in Progress

Postby noriaf » 30 Jul 2017, 11:13

Hello there!

First off I wanted to thanks to everyone who is contributing to this project. I have a lot of fun with it and I wanted to do something to show my gratitude.

I use to play the game on android and I was thinking that it would be awesome if I could play with friends. The biggest problem is that the approach of peer to peer is not really suitable for mobiles so instead of whining to the people who already are doing a great job in their free time, to make/fix the multiplayer mode , I decided to give it a try.

There is a lot of stuff to do, the game indeed is with peer to peer in mind, and the multiplayer have a lot of issues ( oh netty! ), but well here we go.

I have attached a video showing the lobby screen with two clients and a lightweight server.


Thanks all of you guys... :)
Attachments
forge-test.flv.zip
Test
(4.15 MiB) Downloaded 532 times
noriaf
 
Posts: 2
Joined: 31 Oct 2016, 00:23
Has thanked: 0 time
Been thanked: 0 time

Re: Multiplayer Server in Progress

Postby Xitax » 30 Jul 2017, 12:59

I really hate to rain on anyone's head, but please don't do this. If Forge is going to support PTP, then it should be without any external server. I feel this is an area where we as a community need to tread carefully to avoid attention and any reproduction of MTGO.

I'm not against PTP totally though. PTP can be supported by individual IP connection on PC - for handheld devices I'm not sure. Although right now we don't have any developers working on it.
Xitax
 
Posts: 918
Joined: 16 May 2010, 17:19
Has thanked: 183 times
Been thanked: 133 times

Re: Multiplayer Server in Progress

Postby noriaf » 30 Jul 2017, 13:35

Sorry, I didn't want to cause any troubles... I will drop the idea then. I though having an external server would have given flexibility for cross platforms games, but you are right, the last think I want is this project to be shutted down.

Thank.
noriaf
 
Posts: 2
Joined: 31 Oct 2016, 00:23
Has thanked: 0 time
Been thanked: 0 time

Re: Multiplayer Server in Progress

Postby churrufli » 30 Jul 2017, 23:33

It's not a trouble if is in PTP mode, without servers, a big part of this community wanna see online working.
churrufli
 
Posts: 53
Joined: 15 Feb 2016, 12:12
Has thanked: 14 times
Been thanked: 15 times

Re: Multiplayer Server in Progress

Postby Max mtg » 09 Aug 2017, 00:20

Xitax wrote:I really hate to rain on anyone's head, but please don't do this. If Forge is going to support PTP, then it should be without any external server. I feel this is an area where we as a community need to tread carefully to avoid attention and any reproduction of MTGO.

I'm not against PTP totally though. PTP can be supported by individual IP connection on PC - for handheld devices I'm not sure. Although right now we don't have any developers working on it.
Why do you negate any external server?
There are games that can run both local server and be played on an external one, such as Quake or Counter-strike (the original one at least).
Forge may follow the same path. In multiplayer menu you may host a game, join one or connect to a server where your game will be publically visible.

As I understand, the harderst problem for now is to transfer game state to a remote client. In a perfect implementation scenario the client receives only a snapshot of the game state with the information it's allowed to know: the public information and that player's private one, plus the action it's expected to perform. AFAIR, the currently engineered client works directly with Game object instance, so you have to develop classes and switch the client(s?) to use those.
Should one take a different path and send the whole game state from one client to another, there emerges heavy traffic, cheating, and probably desync.
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: Multiplayer Server in Progress

Postby timmermac » 09 Aug 2017, 00:31

We want to try and avoid drawing official attention to Forge, and having an external server for multiplayer matches complicates that aim significantly.
"I just woke up, haven't had coffee, let alone a pee in 7 days, and I find out you stole my ass and made a ...mini-me! Carter, I should be irked currently, yes?" - Jack O'Neill
User avatar
timmermac
Tester
 
Posts: 1512
Joined: 17 May 2010, 20:36
Has thanked: 18 times
Been thanked: 95 times

Re: Multiplayer Server in Progress

Postby Max mtg » 09 Aug 2017, 11:43

timmermac wrote:We want to try and avoid drawing official attention to Forge, and having an external server for multiplayer matches complicates that aim significantly.
The officials are already aware. (Since wotc has recently filed a claim regarding their Beleren fonts being published on this forum - viewtopic.php?f=52&t=20378 - they do know of this forum and have definitelly seen which projects are being developed here). They seem not to care as long as a project does not steal users from their paid services.

Looking at XMage example, their having an external server has not yet caused too much attention.
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: Multiplayer Server in Progress

Postby TeoSkrn » 07 Sep 2017, 13:32

There are lots of magic engines around the internet that support multiplayer, some of them are even multiplayer only, and they have no problem about that.
I don't think that forge will be shut down if we keep the multiplayer some kind of limited.
TeoSkrn
 
Posts: 1
Joined: 07 Sep 2017, 13:23
Has thanked: 0 time
Been thanked: 0 time


Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 63 guests


Who is online

In total there are 63 users online :: 0 registered, 0 hidden and 63 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 63 guests

Login Form