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. 

Do I have to make two projects for client/server?

I am making a small scale 2d mmo for android (Maybe 100 players, and if it grows i'll upgrade servers.) I've made a dedicated server and want to house the entire game on the server and have the clients only do input actions that call to the server to prevent people from having access to the game code. How would I go about developing this?

Do I make two separate projects? One for the client and one for the server? Do I use RPC functions to communicate between the two? There doesn't seem to be much documentation explaining this.

Product Version: UE 4.11
more ▼

asked Apr 05 '16 at 08:23 PM in Everything Else

avatar image

25 2 3 5

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

2 answers: sort voted first

Hey there~!

All you need to do is have one project and use RPC to talk from server to client and client to server. If you'd like to know about Unreal engine replication you can view this playlist from Unreal Engine https://www.youtube.com/playlist?list=PLZlv_N0_O1gYwhBTjNLSFPRiBpwe5sTwc

Hope it helped you a bit :)

more ▼

answered Apr 05 '16 at 08:29 PM

avatar image

591 17 22 43

avatar image Jibinhok Apr 05 '16 at 11:06 PM

Ahh I see, But when a player downloads and installs the client, is the server code gonna go into that exe as well? I'm thinking about security here. I mean, if i'm developing it all on the same project file.

Like the login user database for example, does that just automatically get excluded from the client exe if there's a server involved?

avatar image CelestialCel Apr 06 '16 at 10:57 AM


All blueprints or actors or c++ classes have the server code in it too, however that code can only be executed from the server if it's set to Run On Server. Clients won't run any Run On Server code.

Also if you have a login user database, it might be best to host that externally as otherwise you'd have one per dedictated server.

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

U have Gamemode class which only runs for server/hosting client. There u want to implement servergode/gamelogic. Then u have RPC/Replication/networkmodes (owner/proxie) etc which u can use in most classes. Finally u can compile ur project in different modes. aka debug client/shipping server etc. when selecting server it will compiile an exe which wont use any graphic/sound etc stuff and can act as dedicated server(u need to download sourcecode of ue4 for it)

more ▼

answered Jun 17 '18 at 04:56 PM

avatar image

62 4 4 7

(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