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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Communication between Android and PC

Hello everyone. The idea is simple: I want to create a little "companion app" for android. With this app i want to send 2 or 3 variable to my game that runs on PC and read them. Both application will be made with Unreal Engine,of course.

What do you suggest? Blueprint networking?

Thanks.

Product Version: UE 4.10
Tags:
more ▼

asked Feb 12 '16 at 02:48 PM in Blueprint Scripting

avatar image

MustyMCQwark
33 2 6 8

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

3 answers: sort voted first

Simply put, you should just need to replicate your variables. But, if you are new to networking I highly suggest reading over the documentation. I have 6 months experience total or so with Unreal and I still am finding new things out. The biggest thing to keep in mind is that only the authority can change the value of a replicated variable. If you change it on a client, it will not replicate.

https://docs.unrealengine.com/latest/INT/Gameplay/Networking/Overview/index.html

more ▼

answered Feb 12 '16 at 04:35 PM

avatar image

Rarp7
105 11 12 23

avatar image MustyMCQwark Feb 12 '16 at 07:18 PM

Thanks for the answer.

So basically i can change variables only from the Game on the PC? Or can i use the Companion App (on Android) as Authority?

Thanks for the help,i'll give a look at the documentation too!!

avatar image Rarp7 Feb 12 '16 at 09:26 PM

Anyone can be authority as far as I know. It can be a dedicated server, it can be the PC, or it can even be the android. Typically the person to host the game is the authority, or the dedicated server.

avatar image Rarp7 Feb 12 '16 at 09:34 PM

Also when you say companion app, do you mean a completely different application? Not sure how that would work in that case. May have to look into opening a connection yourself.

avatar image MustyMCQwark Feb 12 '16 at 10:36 PM

My idea is to create two different Unreal Engine Project: One is the game itself (Created with the engine,runs on pc) One is the companion app (Created with the engine,runs on android) The game and the companion are created with the same program (Unreal Engine,of course) The only thing i want to know is if it's possible to send via Network a variable from the Android app and read it from the PC Game

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

I have a realtime shooter game where Android can play against PC, so yes. I have it working where either the PC or Android is the server, and that works.

more ▼

answered Mar 04 '18 at 01:32 AM

avatar image

mightyenigma
3.8k 18 20 20

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

Hi Jaller

Did you ever get an answer or figure this out? I have the same question as yours:

My idea is to create two different Unreal Engine Project: One is the game itself (Created with the engine,runs on pc) One is the companion app (Created with the engine,runs on android) The game and the companion are created with the same program (Unreal Engine,of course) The only thing i want to know is if it's possible to send via Network a variable from the Android app and read it from the PC Game

Thanks LB

more ▼

answered Jul 21 '16 at 08:11 PM

avatar image

Little_Bunny
1 1 1

(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