Jump to content

no XP work

Pending 1.7.7

r0gi
r0gi

Posted

There is no more XP available.

  • Curator
imthenewguy

Posted

I need a lot more information than that to assist.

 

r0gi

Posted

Since yesterday's update, I'm no longer getting XP for any actions.

Not from events, not from chopping down trees, nothing.

I reinstalled the old version... and then it worked.

  • Curator
imthenewguy

Posted (edited)

I think I see the issue. Maybe. Will need to test when I am home.

 

Edited by imthenewguy
  • Curator
imthenewguy

Posted

16 hours ago, r0gi said:

Since yesterday's update, I'm no longer getting XP for any actions.

Not from events, not from chopping down trees, nothing.

I reinstalled the old version... and then it worked.

I can't replicate the issue. I tried with my existing config. I tried deleting everything and generating a new config. The only time I don't get xp is if I don't have the skilltree.xp permission

r0gi

Posted

hmm, i try something

Tage2

Posted

Getting this complaint from my players as well.   They can't get XP.  I'm rolling back to the last version until there's a fix.

  • Curator
imthenewguy

Posted

can you guys send me your configs/data file? Ill give it a test.

 

Tage2

Posted

sent to you through discord.   The weird thing is, the permissions are set properly, and it seems like it's only happening to *some* people, not all.  

  • Curator
imthenewguy

Posted (edited)

4 hours ago, Tage2 said:

sent to you through discord.   The weird thing is, the permissions are set properly, and it seems like it's only happening to *some* people, not all.  

 

4 hours ago, r0gi said:

same

Are you guys able to test unloading other plugins on your server when it's quiet to see if the issue persists?
I have a feeling it's to do with the STCanGainXp changes handled in this release. Had to change it due to hook conflict issues.

I updated Cooking, FishingHotspots and SkillTreeItemsPro to work with the new hook.
You could even start by unloading those 3 plugins.

Also try unloading RaidableBases

 

Edited by imthenewguy
r0gi

Posted

Yes sure, we'll try it tomorrow.

r0gi

Posted

On 3/19/2026 at 11:30 PM, imthenewguy said:

 

Are you guys able to test unloading other plugins on your server when it's quiet to see if the issue persists?
I have a feeling it's to do with the STCanGainXp changes handled in this release. Had to change it due to hook conflict issues.

I updated Cooking, FishingHotspots and SkillTreeItemsPro to work with the new hook.
You could even start by unloading those 3 plugins.

Also try unloading RaidableBases

 

Of the plugins you suggested, I only have RaidableBases.

I just tested it, but strangely enough, everything is working right now... OR it's not affecting all players, and currently only the players for whom it's working are online.

I'll leave it installed and see if any more players report the issue later today.

Tage2

Posted

1.7.7 wouldn't even compile on my live server, so we're at the March 5th version.

r0gi

Posted

So, I have a clue.

I have a custom plugin that was designed to use the old SkillTree hook.

This plugin is active from midnight on Sundays.

So it just turned on.

And as a result, the SkillTree is no longer working, and I'm not getting any XP for any action.

There seems to be a problem with the SkillTree hook. My custom plugin is triggering the error now... but this plugin doesn't have Tage2.

So, some other plugin could also be causing this error.

r0gi

Posted

Hi, i have an Idea @imthenewguy

I’m running a custom plugin called SkillTreeXPScheduler, which applies temporary XP bonuses (e.g. +50% XP events).
Previously, I used the hook:

STCanGainXP(BasePlayer player, BaseEntity source, double value, string sourceString)

to modify XP like this:

private object STCanGainXP(BasePlayer player, BaseEntity source, double value, string sourceString) { if (_activeEvent == null) return null; if (!IsMatchingScope(sourceString, _currentScopeKey)) return null; return value * _currentFactor; // e.g. 1.5 for +50% }

This worked fine before.

After updating to v1.7.7, the behavior changed:

As soon as my event becomes active → no XP is granted at all

When the event is inactive → XP works normally

After debugging, the reason became clear:

var hook = Interface.CallHook("STCanGainXP", player, source, value, source_string); if (hook != null) return;

Since the hook now returns object and any non-null value cancels XP,
my plugin unintentionally blocks XP entirely instead of modifying it.

So effectively:

Old behavior: return double → modify XP

New behavior: return anything → cancel XP

I’ve now switched to using:
OnXpGain(..., List<double> mods)
which works correctly for scaling XP.

However, this is a breaking change that can silently break existing plugins like mine, especially those that were designed to scale XP via STCanGainXP.

I suspect this affects many plugins developed for scaling XP via STCanGainXP.

All of these could be causing the problem.

Perhaps this will help you. I had ChatGPT write it.

  • Curator
imthenewguy

Posted (edited)

Yeah wasnt even sure anyone else was using the hook tbh. I might even rename the STCanGainXP hook as well so old usage isn't an issue anymore.

Next release will change STCanGainXP to CanGainXp. Same parameters.

Edited by imthenewguy
2.3m

Downloads

Total number of downloads.

10.7k

Customers

Total customers served.

154k

Files Sold

Total number of files sold.

3.3m

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.