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. 

Client tell server to update game settings?

So I'm creating a mutiplayer game.

When someone creates a new game, it is saved on their computer and then a session is started (this is the host).

Clients can then connect and join the game. Once they've joined, they must either create a new character for that world or select a previously created character.

In order for the server to keep up with how many characters have been created, there is a "SavedPlayerIndex" variable in the structure being used for the save file. Every time someone creates a new character, that player is assigned the current ID and then it updates the server telling it to increment the "SavedPlayerIndex" value. So when a new character is created, the value of that variable goes up.

Or at least, that is how it is supposed to work. I can't figure out how to do that. How does a client send a "message" to the server telling it to update its save game file and increment the "SavedPlayerIndex" variable?

Thanks!

Product Version: UE 4.12
Tags:
more ▼

asked Sep 23 '16 at 07:48 PM in Blueprint Scripting

avatar image

KenBrace
31 3 9 10

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

1 answer: sort voted first

Hey KenBrace,

I would have it so when the Character connects, the first thing it does is send the information of that Character to the server, using a Reliable Server function.

This might look like:

alt text

When the RecieveCharacter function is called, it could check against a Steam ID, Character ID, or whatever, to see if that Character has joined before and then decide what to do based on that.

Good luck

more ▼

answered Sep 28 '16 at 05:35 PM

avatar image

ImVawx ♦♦ STAFF
6.8k 114 17 127

(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