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"

[HELP] Why Character UnPosses Networking!?!?

I Last followed the Blueprint Multiplayer | v4.11 | Unreal Engine Tutorial. It did go well , i was able to nearly understand everything and i had copied everything of his code.

But then i discovered a problem and it didn't happen on his project. So i knew i screwed up. I figured out when and where the problem occurs and i search for that part and watched the parts again and again. But i couldn't see something different on my project and i kinda gave up.

The problem is really big i can't go further with my project if i haven't fixed this. I last wanted to try and ask help from u guys

https://www.youtube.com/watch?v=3V-wDpGZUJM&feature=youtu.be

I recorded a video where you can see the problem clearly. Please watch the video, it's short and please let me know if you know what can solve this issue or what my mistake is.

Another way you can help me is by uploading a version of the project if you also followed it. So i can look up and see what i did wrong more easy. Following the series again is just too much.

Already thanks

Product Version: UE 4.15
Tags:
more ▼

asked Jan 02 '18 at 03:16 AM in Blueprint Scripting

avatar image

Faronoz
76 7 12 10

avatar image Faronoz Jan 02 '18 at 03:18 AM

i haven't posted any blueprint because its too much and i think you guys already know this series but if anyone needs screens i can send them easily

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

2 answers: sort voted first

If I recall correctly the issue happens because of the pawn auto possess option. When the second player connect it is told to auto possess the already spawned in character that the first player currently use. When possess is called on an already possessed pawn it gets unpossessed.

Simply turn off auto possess or remove all pawns placed in the level so a new one gets spawned for every new player.

more ▼

answered Jan 05 '18 at 12:02 AM

avatar image

GarnerP57
816 3 4 8

avatar image Faronoz Jan 05 '18 at 07:33 AM

Thank you very much u are a hero man.!!!

So stupid of me that i couldn't think about that, i just turned auto posses off and it worked!

also thanks to everyone who reply'd and tried to help.

avatar image Faronoz Jan 05 '18 at 07:41 AM

(Not important!)

i still don't get it why i call at the start "onPostLogin" > "Initial Setup" what calls "CallUpdate" that calls

"SwapCharacter" where i spawn and posses a character but then at "onPostLogin" i call also

"RespawnPlayer" where i also spawn and posses a character

It has to do something with server and client probably If someone could tell me it would be fine otherwise no problem ;) It's not a big problem it works that's already amazing for me

avatar image GarnerP57 Jan 05 '18 at 04:42 PM

If you want to change the behavior of any of the gamemode functions you should override them in the GameMode BP.

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

Hey there, i had this problem before but i don't remember how i solved it, but afaik the problem only happens in the engine and not on a packaged build. If you right click on the uproject and pick launch game twice to launch 2 windows, see if that happens.

more ▼

answered Jan 02 '18 at 11:57 AM

avatar image

xlar8or
6k 161 129 304

avatar image Faronoz Jan 02 '18 at 03:48 PM

I am not on my pc right know , i will try later

avatar image Faronoz Jan 03 '18 at 09:24 AM

it does the same thing man

avatar image xlar8or Jan 03 '18 at 09:41 AM

i would try using the default game mode and see if that fixes it, if not try usign a simple character, to determine what is the cause of the problem.

avatar image Faronoz Jan 04 '18 at 05:00 AM

i'll try but where should i use the default gamemode?

avatar image Faronoz Jan 04 '18 at 05:29 AM

i am confused where should i change the Character, i only can change it on "RespawnPlayer" and i did but still does the same.

There is one more event where i spawn a character that is "SwapCharacter" and there it take the input of the playerinfo i can't change that because it is also used for swapping characters

and i dont know but i spawn twice a character it seems like "onPostLogin" i call first "InitalSetup" that call the "SwapCharacter" event. and last i also call "RespawnPlayer"

but this is right because in the tutorial you also have it like this

Is there a chance that you could upload the project so i can download it?

avatar image Faronoz Jan 04 '18 at 09:26 PM

i have also seen i can change character by "LoadGame" Function where i set members of the variable "PlayerSettings"

https://gyazo.com/8e9a4f424271ac05ec6a3970e70987ab

But that also doesn't makes a difference so confused right now

(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