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"

Version number check for games built with UE4?

Hi!

Is there any version check built into the UE4? If you e.g. try to join a server with an old client, will the server be able to reject the connection automatically or do I have to implement this feature? How do I change the version number of my game if it's supported already?

Product Version: Not Selected
Tags:
more ▼

asked Jan 21 '15 at 04:49 PM in Using UE4

avatar image

undercover
838 123 111 138

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

1 answer: sort voted first

There is indeed, using the control channels. Control channels are what you use to establish the first interaction within the Unreal Network Protocol, is features a set of message types and one is to make sure that a client is not able to connect to a server that is not suitable to him.

The channel you are looking for it NMT_Upgrade. The engine uses the ProjectVersion located in your ProjectSettings, your ProjectName and the GEngineNetVersion global and hashes them together. By default the client and server hash needs to match or a NMT_Upgrade message is send to the connecting client resulting in a disconnect.

You can handle the version checks on your own binding the IsNetworkCompatibleOverride delegate of FNetworkVersion to you own handler. You can also bind the GetLocalNetworkVersionOverride delegate of FNetworkVersion to use your own version system, for instance a simple int so that different version can connect together.

Cheers, Moss

more ▼

answered Jan 21 '15 at 05:04 PM

avatar image

Moss
6.4k 127 98 606

avatar image undercover Jan 21 '15 at 05:08 PM

Okay I see. Thanks a lot for the explanation.

avatar image Moss Jan 21 '15 at 05:09 PM

Nice! Remember to accept the answer :D

(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