Added These checks, after digging it was seemingly random
if (!double.IsFinite(exp))
{
Puts($"AwardXP: non-finite XP value ({exp}) for {player.displayName}[{player.UserIDString}] from {source_string ?? source?.ShortPrefabName ?? "unknown source"}");
return;
}
if( exp <= 0 ) return;
if (exp >= 100000) Puts($"AwardXP: unusually large pre-mod XP ({exp}) for {player.displayName}[{player.UserIDString}] from {source_string ?? source?.ShortPrefabName ?? "unknown source"}");
if (exp > 20000 && source_string != "command")
{
Puts($"AwardXP: capped pre-mod XP ({exp}) for {player.displayName}[{player.UserIDString}] from {source_string ?? source?.ShortPrefabName ?? "unknown source"}, returning early");
return;
}
Not sure the full cause but it happened to me while crafting and another user had it happen when destroying a barrel. XP bar ends up saying infinity/lvl100xp.
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.
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.