BPS is spamming in console, it spams it so much that the server goes from 200fps to 50fps

Had to disable the plugin for now

Had to disable the plugin for now

(21:59:47) | [Oxide] 22:59 [Warning] [Blueprint Share] OnItemAction Executed
(21:59:48) | [Oxide] 22:59 [Warning] [Blueprint Share] OnItemAction Executed
(21:59:49) | [Oxide] 22:59 [Warning] [Blueprint Share] OnItemAction Executed
(21:59:49) | [Oxide] 22:59 [Warning] [Blueprint Share] OnItemAction Executed
(21:59:49) | [Oxide] 22:59 [Warning] [Blueprint Share] OnItemAction Executed
(21:59:50) | [Oxide] 22:59 [Warning] [Blueprint Share] OnItemAction Executed
(21:59:50) | [Oxide] 22:59 [Warning] [Blueprint Share] OnItemAction Executed
(21:59:51) | [Oxide] 22:59 [Warning] [Blueprint Share] OnItemAction Executed
(21:59:51) | [Oxide] 22:59 [Warning] [Blueprint Share] OnItemAction Executed
(21:59:51) | [Oxide] 22:59 [Warning] [Blueprint Share] OnItemAction Executed
(21:59:51) | [Oxide] 22:59 [Warning] [Blueprint Share] OnItemAction Executed
(21:59:52) | [Oxide] 22:59 [Warning] [Blueprint Share] OnItemAction Executed
(21:59:52) | [Oxide] 22:59 [Warning] [Blueprint Share] OnItemAction Executed
(21:59:54) | [Oxide] 22:59 [Warning] [Blueprint Share] OnItemAction Executed
(21:59:57) | [Oxide] 22:59 [Warning] [Blueprint Share] OnItemAction Executed
(21:59:59) | [Oxide] 22:59 [Warning] [Blueprint Share] OnItemAction Executed
(22:00:01) | [Oxide] 23:00 [Warning] [Blueprint Share] OnItemAction Executed
(22:00:03) | [Oxide] 23:00 [Warning] [Blueprint Share] OnItemAction Executed
(22:00:13) | [Oxide] 23:00 [Warning] [Blueprint Share] OnItemAction Executed
(22:00:15) | [Oxide] 23:00 [Warning] [Blueprint Share] OnItemAction Execute Wulf
Lines 57 and 60 need to be removed or commented out with //; just looks like leftover debug code.
Should the comment out just be on 57 and 60 or should it be the lines that go with that warning?
private void OnItemAction(Item item, string action, BasePlayer player)
{
//PrintWarning("OnItemAction Executed");
if (player != null && action == "study" && (InClan(player.userID) || HasFriends(player.userID) || InTeam(player.userID)) && item.IsBlueprint() && sharingEnabled)
{
// PrintWarning("OnItemAction IF");
string itemShortName = item.blueprintTargetDef.shortname;
if (string.IsNullOrEmpty(itemShortName)) return;
item.Remove();
UnlockBP(player, itemShortName);
}
} Irishsun530Should the comment out just be on 57 and 60 or should it be the lines that go with that warning?
private void OnItemAction(Item item, string action, BasePlayer player) { //PrintWarning("OnItemAction Executed"); if (player != null && action == "study" && (InClan(player.userID) || HasFriends(player.userID) || InTeam(player.userID)) && item.IsBlueprint() && sharingEnabled) { // PrintWarning("OnItemAction IF"); string itemShortName = item.blueprintTargetDef.shortname; if (string.IsNullOrEmpty(itemShortName)) return; item.Remove(); UnlockBP(player, itemShortName); } }
Both lines would trigger log/console output unnecessarily.
Wulf
Both lines would trigger log/console output unnecessarily.
thanks for the quick fix Wulf!