Announcement

Collapse
No announcement yet.

Relevant warning on ShooterGame

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [LEARNING RESOURCES] Relevant warning on ShooterGame

    Hi!

    I found the following warning on a clean vanila ShooterGame:
    Code:
    LogNet:Warning: UIpNetDriver::ProcesRemoteFunction: No owning connection for actor WeapGun_C_1. Function ServerStopFire will not be processed.



    How to replicate it[Listen Server]:
    1.- Open 2 Clients with DC Server setting turned off
    2.- Meet them at any point of the map
    3.- On the player which is the server swap weapon
    4.- The warning will appear
    5.- This warning won't appear if the swap weapon is executed on the client

    How to replicate it [DCServer]:
    1.- Open 2 Clients with DC Server setting turned on
    2.- Meet them at any point of the map
    3.- On one of the clients swap weapon
    4.- The warning will appear

    Known information about the bug:
    - It appeared on 4.16.0 +-
    - It happens when the weapon is "OnUnEquip" (line 133 on ShooterWeapon.cpp)
    - Cheap workaround: Not replicate this function on this situation.
    - This warning will produce very large log files on a normal gaming session
    Last edited by vorixo; 07-10-2017, 12:24 PM.
    https://vorixo.github.io/devtricks/

    #2
    I get this as well. Been going on for several builds now.

    Comment


      #3
      Here is my solution! Willing to see better ones!

      Before:
      Code:
           void AShooterWeapon::StopFire()
           {
               if (Role < ROLE_Authority)
               {
                   ServerStopFire();
               }
      
               if (bWantsToFire)
               {
                   bWantsToFire = false;
                   DetermineWeaponState();
               }
           }

      After:
      Code:
           void AShooterWeapon::StopFire()
           {
               if (Role < ROLE_Authority && MyPawn && MyPawn->IsLocallyControlled())
               {
                   ServerStopFire();
               }
      
               if (bWantsToFire)
               {
                   bWantsToFire = false;
                   DetermineWeaponState();
               }
           }
      Last edited by vorixo; 11-28-2018, 08:20 PM.
      https://vorixo.github.io/devtricks/

      Comment


        #4
        Nice to see you solved it : )
        Hevedy - Instance Tools: https://hevedy.itch.io/hevedyinstances
        Hevedy - Image Tools: https://hevedy.itch.io/imagetools

        Comment


          #5
          This has been fixed on the most current version of ShooterGame
          https://vorixo.github.io/devtricks/

          Comment

          Working...
          X