Skills that can't have their trained level set.
Basically I found a workaround for a problem I was having with skills not being able to be set to certain level no matter what you change the skill_caps table to. Only problem is it doesn't display at the trainer until that level.
What I'm wondering is, is there a way to set it so the trainer will actually show the level the skill can be trained via the skill_caps table or even a hard coded way server side. As this is a problem with 4 skills I have found so far. The problem isn't that its not taking the correct info from the skill_caps table, its that its still allowing the client to train said skill at level 10 for pick lock for example on bards. When I had it set to 40. The below code prevents that but also doesn't permit it to be seen by the client until 40. Just hoping someone has a workaround that will actually show it and display it correctly. I added this to client_process.cpp in OPGMTraining. Code:
if( sk == PICK_LOCK && GetClass() == BARD && GetLevel() < 40 ){ |
You could put a breakpoint where that array is filled in and find out how the skill is getting added at level 10. That might tell you what data needed to change to make it level 40 instead.
|
Actually after doing some further research on the skill system, I've found and I'm almost ready to call it a bug. I'm going to put something in that logs so I can actually see the data thats being sent, and whats actually being loaded.
The reason it appears to be a bug. Logged in with different clients each producing different results for instance brass instruments and other skills I set in the db in skill_caps are trainable at different levels depending on what client your using. Same with a lot of other skills. It appears as if the server is trusting the client to handle what level all the skills are trained at and never checking to see if the client can actually train them by level. Something is getting lost in translation. I actually believe its the server loading the skills. Bards to my knowledge have never gained pick lock at level 10. Even on live today still don't. Caps are correct unless you have them 0'd out till X level so when skills are loaded they are set to that level to train. Then they are using (5+(level*5)). So far titanium is the least bugged client with only 4 skills out of wack. SoD it gets a lot worse. Odd thing is this line in the code. Code:
//you can only use your own trainer, client enforces this, but why trust it If I had a bit more knowledge I'd try to write a hook client side to set the level down I bet I could train every skill at level 1. Well 5 of them at least. The way skills are loaded looks to need redone. Really though in titanium its not that bad its only 4 skills. meditate, sense traps, pick lock, and disarm traps. But maybe a dev wants to look into it cause it just seems highly exploitable. |
Skills handled by client are what I posted about in your other thread. Within the resource folder for SoD+ clients there is a SkillCaps.txt file which holds literally your entire skill_caps table full of data. If something is changed around in that text file it is seen client side when you load in game. If you remove all of say skill_id 1 from paladins, in game you would no longer see them as being able to train 2 Hand Slashing.
|
Right, I'm not disagreeing with you on that again if you move skill caps in that file and you can push the train button it trains server side. The issue is there are no checks what so ever for the skill against level. There isn't even a function in the code for it. No pointer storing the data for the skills unless I'm not seeing it. The way skills are handled especially when the train button is pressed shouldn't trust the client ever.
I haven't tried it but if it would work that would only further my point. Skills aren't being handled correctly on the server. I know skill ups check against the cap etc. Even though this might only allow someone to grab skills a few levels earlier then they should it still isn't right. |
These aren't 100% related.
In terms of the verification server side see: Code:
if(!CanHaveSkill(skill)) { The other bug you're talking about is a client bug that appears because sony's skillcaps does not play nice with the client. The following script is one that's been tossed around a bit for creating a non-buggy skillcaps file from the current DB. Code:
use DBI; |
Right if they can never learn the skill or its set in OPGMTraining. Thats my work around for the moment I was hoping to get an answer glad your looking at it :).
Code:
if( sk == PICK_LOCK && GetClass() == BARD && GetLevel() < 40 ){ Eager to see what you find. EDIT: Forgot to include this, the fact the workaround works says its sending to the client right maybe skills need a struct somewhere to store values etc? I dunno if I'm even wording that correctly but its just a thought. |
is this still not fixed?
|
All times are GMT -4. The time now is 04:59 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.