x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Android online multiplayer

How can I make a android game have online multiplayer support? I've seen some info about making a online multiplayer game to steam, but couldn't find any good material on how to make online multiplayer to Google Play

Product Version: UE 4.22
Tags:
more ▼

asked Jun 11 '19 at 03:56 AM in Using UE4

avatar image

Wiesilus
1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Google Play has nothing to do the multiplayer part, it's just a platform which hosts your .apk file and gives the users access to download your game. For [online] mobile multiplayer you have to have a dedicated server to which the players can connect, apart from the Play Store. Even if your game has a bigger file size than 100mb(?) you have to store the content on a server of yours and handle the content download inside your game.

Anyway, to create a multiplayer game inside unreal for mobile is the exact same process as for any other platform -not steam but unreals built in methods- (thats the nice thing about a multi platform capable engine like unreal) and to set up a dedicated server for mobile is also the same as for pc or anything else.

Obviously your gamelogic has to be built for multiplayer (replications, server has authority, validation checks and so on).

You can either host a dedicated server by yourself (e.g. your pc for testing) or use a service like amazons EC2 (+gamelift) and upload your server executable onto the servers of these services. And have your clients connect to the ip address of those servers. For example amazon has build in matchmaking and server scaling etc. Amazon has a server plugin for unreal you can read about gamelift here: What is Amazon GameLift

To build a dedicated server executable you need a source build from github.

It's also possible to use listen servers (a player act as the game host) but it's only recommended for local multiplayer, so the latency isn't high and only with just a few players.

But as mentioned it's the same as for pc, you can use for example use these tuts:

Dedicated Server related:

Dedicated Server Setup

Unreals GameFramework related:

Networking Overview

Networking Compendium by Cedric Neukirchen

more ▼

answered Jun 11 '19 at 01:01 PM

avatar image

pDunkl
218 4 4 4

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question