Jump to content
Maintenance Notice: Certain sections of the site will be unavailable off and on but vital services will remain online and no downtime is expected. ×

calling npc deaths

No Response 1.2.0

MrLiquid
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

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

 

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.3m
Total downloads
Customers
10.7k
Customers served
Files Sold
154.9k
Marketplace sales
Payments
3.3m
Processed total
×
×
  • 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.