Jump to content
  • Advertisement
Sign in to follow this  
newtechnology

Warnings

This topic is 478 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I don't know what's causing these warnings.
 

LogNet:Warning: UIpNetDriver::ProcesRemoteFunction: No owning connection for actor BaseCharacter_C_1. Function Set Is Sprinting will not be processed.
LogNet:Warning: UIpNetDriver::ProcesRemoteFunction: No owning connection for actor BaseCharacter_C_1. Function Set Is Sprinting will not be processed.
LogNet:Warning: UIpNetDriver::ProcesRemoteFunction: No owning connection for actor BaseCharacter_C_1. Function Set Is Sprinting will not be processed.
LogNet:Warning: UIpNetDriver::ProcesRemoteFunction: No owning connection for actor BaseCharacter_C_1. Function Set Is Sprinting will not be processed.
LogNet:Warning: UIpNetDriver::ProcesRemoteFunction: No owning connection for actor BaseCharacter_C_1. Function Set Is Sprinting will not be processed.
LogNet:Warning: UIpNetDriver::ProcesRemoteFunction: No owning connection for actor BaseCharacter_C_1. Function Set Is Sprinting will not be processed.
LogNet:Warning: UIpNetDriver::ProcesRemoteFunction: No owning connection for actor BaseCharacter_C_1. Function Set Is Sprinting will not be processed.
LogNet:Warning: UIpNetDriver::ProcesRemoteFunction: No owning connection for actor BaseCharacter_C_1. Function Set Is Sprinting will not be processed.
LogNet:Warning: UIpNetDriver::ProcesRemoteFunction: No owning connection for actor BaseCharacter_C_1. Function Set Is Sprinting will not be processed.
LogNet:Warning: UIpNetDriver::ProcesRemoteFunction: No owning connection for actor BaseCharacter_C_1. Function Set Is Sprinting will not be processed.

[attachment=35020:Capture.PNG]

Everything just works fine as expected despite the warnings.

Edited by newtechnology

Share this post


Link to post
Share on other sites
Advertisement

It looks like you're trying to call an RPC on an actor you don't have authority for.

 

You can check if the Role of the actor is Authority and avoid the call if so, but that will still result in the call not happening. If you need the call to happen, you probably need to move it to someplace where have authority over the actor.

Share this post


Link to post
Share on other sites

It looks like you're trying to call an RPC on an actor you don't have authority for.

You can check if the Role of the actor is Authority and avoid the call if so, but that will still result in the call not happening. If you need the call to happen, you probably need to move it to someplace where have authority over the actor.

I'm already using "Switch has Authority". I also found another function "Has Authority" which returns a boolean. Is there a difference between "Switch has Authority" and "Has Authority" ?

Share this post


Link to post
Share on other sites

I remember running into something like this, It had to do with Actor ownership.

Does the actor have an owner?

 

Here is a link to the "Actors and their Owning Connections" doc.

You can also read through this thread here, It mentions that you need to own the actor you are calling the RPC on.

 

I could post what I have done for networking in BP's if you want.

 

HTH

Share this post


Link to post
Share on other sites
I'm not sure what the difference between HasAuthority and SwitchHasAuthority is, I suspect nothing (the latter sounds like a macro using the former).

If you look in the code, this warning is generated due to a lack of an "owning connection." Authority is one reason this might be an issue, but there are other things that could sever or fail to establish and owning connection.

Share this post


Link to post
Share on other sites

I checked it and "Switch has Authority" is indeed a macro which uses "Has Authority". Anyway, I don't know why are those warnings only appearing for that since I've similar functions set that way and I get no warnings for it.

Is it because I'm calling "Set Is Sprinting" to false (and true when sprinting) every frame from EventTick?


For example - I don't get warnings for the following code in the same blueprint

 

[attachment=35049:Capture.PNG]
 

 

I could post what I have done for networking in BP's if you want.

 
Would be appreciated.



 

EDIT : I fixed it by using "Is Locally Controlled" but I've no idea why it worked, lol. 

[attachment=35050:Capture.PNG]


EDIT2 : I think I might know why but I am not able to explain it :/

Edited by newtechnology

Share this post


Link to post
Share on other sites

I just checked, And the BP code that I have is like yours.

But I don't check for authority as I am using custom events that only execute on the server/client.

 

The C++ code I have works the same way as the BP version.

I ran into a similar warning due to an ownership issue (It was from the weapon from the FPS template that I was converting to network friendly)

EDIT : I fixed it by using "Is Locally Controlled" but I've no idea why it worked, lol. 

attachicon.gifCapture.PNG

EDIT2 : I think I might know why but I am not able to explain it :/

Wierd, But atleast it solved the warning.

Share this post


Link to post
Share on other sites

I am able to explain why it worked now.

It was because the functionality of sprint was written in "Event tick" and I didn't do IsLocallyControlled. So When I set SprintButtonDown to true in my local client, it was also replicated to all of my remote clients and then I tried to do this in every remote client because I did not have IsLocallyControlled check

//this code was executed in all remote clients when it should only be executed in local (or owning) client

//Only owning client can Call RPCs

if (SprintButtonDown)

SetAndReplicateToOthers_IsSprinting(true);

 

 

EDIT: My explanation sucks :P

Edited by newtechnology

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!