Jump to content

calling npc deaths

No Response 1.2.0

MrLiquid

Posted

Calling 'OnPlayerDeath' on 'GlitchedItemRetriever v1.2.0' took 282ms
Zombie[5135588] was killed by bear (Bear) at (675.63, 27.36, -1047.81)
Calling 'OnPlayerDeath' on 'GlitchedItemRetriever v1.2.0' took 287ms
Zombie[7869339] was killed by bear (Bear) at (-245.75, 23.25, 273.58)
Calling 'OnPlayerDeath' on 'GlitchedItemRetriever v1.2.0' took 283ms
Zombie[9080962] was killed by Eldyn[76561198167313806] at (1331.43, 13.43, -819.86)
Setting linear velocity of a kinematic body is not supported.
Setting angular velocity of a kinematic body is not supported.
Calling 'OnPlayerDeath' on 'GlitchedItemRetriever v1.2.0' took 287ms
Zombie[1508189] was killed by Eldyn[76561198167313806] at (1336.72, 13.30, -822.28)
Calling 'OnPlayerDeath' on 'GlitchedItemRetriever v1.2.0' took 285ms
Zombie[741547] was killed by Eldyn[76561198167313806] at (1338.95, 13.30, -823.51)
Calling 'OnPlayerDeath' on 'GlitchedItemRetriever v1.2.0' took 277ms
Zombie[5135483] was killed by Eldyn[76561198167313806] at (1338.35, 13.30, -822.87)
Calling 'OnPlayerDeath' on 'GlitchedItemRetriever v1.2.0' took 291ms

 

 

Causing too much lag with all the unnecessary calls for NPC deaths

21mac21

Posted

Huh, I'll have a look at it. I wonder since I check for human players only.

Yes, the method itself is called for every humanoid Player (NPCs are players as well) but if it's bi NPC, I return from the function instantly.

A simple "if(player.NPC())" check should not take 200-300 ms 

 

I'll search for the problem here and come back to you soon

21mac21

Posted

I found the cause in one of the last rust server updates but i'll need a little to find a workaround for that. I'll upload a new version once I've found a better way. thanks for reporting the problem

  • Love 1
21mac21

Posted

I just uploaded version 1.3.0

could you maybe download this version and check if it eleminates the problem?

thanks a lot.

21mac21

Posted

Changed Status from Pending to No Response

MrLiquid

Posted

"GlitchedItemRetriever" (1.4.0) by 21mac21 (0.07s / 356 KB) - GlitchedItemRetriever.cs

 

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.3k

Files Sold

Total number of files sold.

2m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.