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"

how to make a button that first checks if there is a server available then if there connect's to it if not creates a server

hay there iam creating a multiplayer game like fortnight or pubg but i got stuck at creating my main menu i wanted to create a button that finds a server or creates a server when clicked

Product Version: UE 4.19
Tags:
more ▼

asked Mar 16 '19 at 12:16 PM in C++ Programming

avatar image

Wethebestcontent
5 2 7

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

1 answer: sort voted first

Thats something that may be hard depending on how do you want it to work. You can't realy easily check if there is server running (What are you doing that for). Just make button (with name for eg: HOST) then Open level with ?Listen parameter. There can't be 2 listen servers on one game client. If somebody launcher separate dedicated then there is not problem right? If somebody launched dedicated this person know what's doing.

If you realy need to check if there is server running have fun with

https://answers.unrealengine.com/questions/115922/how-to-get-host-by-name.html

It's working perfecly for me (Code above translates domain into IP, you will need to find way how to check if there is server running)

maybe check

https://answers.unrealengine.com/questions/763065/test-if-server-is-running.html

Hope that helps.

more ▼

answered Mar 16 '19 at 09:40 PM

avatar image

Przemek2222
296 4 10 14

(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