Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Bug False-SkillEvent?

Client Developer
Joined
Oct 12, 2015
Messages
3,781
I've noticed that my UI will sometimes add random skills, which should not happen.

My implementation is something like this:

Code:
//Using list of (untrained) skills
for (Skill skill : skills) {
    if(skill.equals(e.getSkill()) && e.getChange() >= 5){
        //Remove untrained skill
        //Lazy instantiate a new skill pane
        break;
    }
}

Sometimes I will get random ones added with varying data:

6wVpDZT.png

E1MlrHe.png


I can't see how it can be possible (using my implementation) that these can happen, given no actions were taken that gain exp in those skills? Each skill pane has a separate listener and a new controller instance so I can understand why the XPGain shown on the pane would be zero, but I can't understand why it would be added in the first place.

@Cloud @SlashnHax @Arbiter able to shine any light?
 
Client Developer
Joined
Oct 12, 2015
Messages
3,781
Likely caused by logout when it went from your current exp to 0.

I've seen it happen as I change planes. Even so, should the check >= 5 not take that possibility out...? Doesn't explain both scenarios.
 
Mod Automation
Joined
Jul 26, 2013
Messages
3,053
I've seen it happen as I change planes. Even so, should the check >= 5 not take that possibility out...? Doesn't explain both scenarios.
The change is negative, so it doesn't break. @Cloud can we just suppress negative exp changes? It's impossible.
 
@Party you can do an absolute value check.
 
Client Developer
Joined
Oct 12, 2015
Messages
3,781
The change is negative, so it doesn't break. @Cloud can we just suppress negative exp changes? It's impossible.
 
@Party you can do an absolute value check.

Would that not just mean a negative exp gain would return as a positive exp gain and make my logic return true anyway....?

Also I understand how a login could cause an new one to be instantiated because it could just remove 100,000 exp on logout, and re-add it on login to equal zero and still work with my logic, I just can't think of a way around it :'(
 
Mod Automation
Joined
Jul 26, 2013
Messages
3,053
I feel like it's necessary if they logout to switch to a new account.

We don't support multiple accounts, and even if we did the only metric of interest is exp over time. If the author was interested in current exp they could always query for that. We can't count on authors to be smart and filter out negative changes. We have to appeal to the lowest common denominator or we're going to end up with a shit UX of broken skill trackers. A strong vote from me for filtering out negatives for them as well as exp jumps on login.


Sent from my iPhone using Tapatalk
 
Engineer
Joined
Jul 28, 2013
Messages
2,776
We don't support multiple accounts, and even if we did the only metric of interest is exp over time. If the author was interested in current exp they could always query for that. We can't count on authors to be smart and filter out negative changes. We have to appeal to the lowest common denominator or we're going to end up with a shit UX of broken skill trackers. A strong vote from me for filtering out negatives for them as well as exp jumps on login.


Sent from my iPhone using Tapatalk
Negatives are filtered out in the next release.
 
Client Developer
Joined
Oct 12, 2015
Messages
3,781
Negatives are filtered out in the next release.

Would this mean a user with 1mil Attack exp would have a filtered out -1mil on logout, and a +1mil on login, meaning a ridiculous SkillEvent on login?
 
Is this a related issue @Arbiter? (It's a gif, just in case you glanced it and didn't see anything happening)
gqfw9Qv.gif

 
Yeah there is absolutely something wrong here, this is OSRS:
13563455_10204621421414530_788041911_n.jpg

 
Also, blocking the negative skillevents means that when you log out and log back in you get an insane amount of exp added in SkillEvents (no longer removes exp on logout and adds it back on login).
 
Mod Automation
Joined
Jul 26, 2013
Messages
3,053
Would this mean a user with 1mil Attack exp would have a filtered out -1mil on logout, and a +1mil on login, meaning a ridiculous SkillEvent on login?
 
Is this a related issue @Arbiter? (It's a gif, just in case you glanced it and didn't see anything happening)
gqfw9Qv.gif

 
Yeah there is absolutely something wrong here, this is OSRS:
13563455_10204621421414530_788041911_n.jpg

 
Also, blocking the negative skillevents means that when you log out and log back in you get an insane amount of exp added in SkillEvents (no longer removes exp on logout and adds it back on login).
@Cloud we need to remove the incorrect jump during login.
 
Mod Automation
Joined
Jul 26, 2013
Messages
3,053
Could be as easy as checking the previousValue and filtering that out if the logged out value is something identifiable (e.g. -1). Might give it a look after I vote today.

This is actually a perfect one for you to handle.


Sent from my iPhone using Tapatalk
 
Top