Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 04.09.2006, 16:43   #1
xerogen
Архивный участник
 
Join Date: Nov 2005
Posts: 107
Default [HELP]Subclass Skill Problem

There seems to be a problem with subclass skills, like if you subclass a necromancer. You level to say 52, learn all ur skills etc. Then if u switch back to ur main class then back to your necromancer. Alot of the skills are reset and u have to relearn them.

This seems to happen all the time, i even set_skill_all on myself at level 80, switched back. Alot of skills had to relearn.

Btw this isnt just for one class its a problem for all off them. Necromancer was just an example

Wondering if anyone else has same problem, or found a fix for it. I hadnt noticed this till a player mentioned it.

Thanks...
xerogen is offline  
Old 04.09.2006, 20:00   #2
HF
Архивный участник
 
Join Date: Aug 2005
Posts: 1,531
Default

Quote:
Originally Posted by xerogen View Post
There seems to be a problem with subclass skills, like if you subclass a necromancer. You level to say 52, learn all ur skills etc. Then if u switch back to ur main class then back to your necromancer. Alot of the skills are reset and u have to relearn them.

This seems to happen all the time, i even set_skill_all on myself at level 80, switched back. Alot of skills had to relearn.

Btw this isnt just for one class its a problem for all off them. Necromancer was just an example

Wondering if anyone else has same problem, or found a fix for it. I hadnt noticed this till a player mentioned it.

Thanks...
https://postpacific.loc-online.com/f...ead.php?t=5616

Same skills in both class - removed.
HF is offline  
Old 05.09.2006, 07:52   #3
xerogen
Архивный участник
 
Join Date: Nov 2005
Posts: 107
Default

No you have a complety different problem to me, next time read your own post and read mine. Your players keep skills from the class they changed MINE dont. Read again....

Its nothing to do with say a Abyss walker having necro skills, its about the subclass having to relearn there skills everytime.

Read Please.

Also this is from RETAIL servers, urs look like a modded server...
xerogen is offline  
Old 06.09.2006, 10:41   #4
Stazis
Архивный участник
 
Join Date: Feb 2005
Posts: 200
Default

pay attention to what your CacheD says at the time when you relearn skill - it says that cannot insert duplicate identity field in user_skill table couse it is already present, same happends with shortcuts and macro.

think trouble is in primary keys settings of db tables
Stazis is offline  
Old 06.09.2006, 11:27   #5
Stazis
Архивный участник
 
Join Date: Feb 2005
Posts: 200
Default

ok - haven't tested yet but think solving the problem is

open user_skill for modify

remove old primary key settings
mark fields char_id,skill_id, subjob_id
and make them PRIMARY KEY - save the table

do the same with shortcut_info table.
Stazis is offline  
Old 07.09.2006, 05:56   #6
xerogen
Архивный участник
 
Join Date: Nov 2005
Posts: 107
Default

have you tested it yet, you know if it works? Ill get onto it later. Test it myself its been a real pain in the ass, espically with no saving macro's/shortbars.

Also was it a permanent fix or u have to do it everytime?
xerogen is offline  
Old 07.09.2006, 12:41   #7
Drag
Архивный участник
 
Join Date: Mar 2006
Posts: 241
Default

xerogen u migrated from c1 mod to c4?
Drag is offline  
Old 07.09.2006, 16:30   #8
Belazor
Архивный участник
 
Join Date: Mar 2006
Posts: 26
Default

Quote:
Originally Posted by Stazis View Post
ok - haven't tested yet but think solving the problem is

open user_skill for modify

remove old primary key settings
mark fields char_id,skill_id, subjob_id
and make them PRIMARY KEY - save the table

do the same with shortcut_info table.
Cheers, that worked.
FYI, in MS-SQL 2005 you do not have to remove previous Primary Key settings, you simply have to Crtl+click the three rows, right click and hit Primary Key.
Also, the shortcut_info only needed subjob_id added as a primary key - do not remove any of the previous Primary Key values.

Quote:
Originally Posted by xerogen View Post
Also was it a permanent fix or u have to do it everytime?
For the record, I don't know this guy XD
Belazor is offline  
Old 07.09.2006, 16:46   #9
Stazis
Архивный участник
 
Join Date: Feb 2005
Posts: 200
Default

some piece of theory
primary key mark means that combination of selected fields can have only unique value in whole table
e.g.
char_id = 82736
skill_id = 765
subjob_id = 1
there can be only one row in table in with such values
now imagine what happened if you have no subjob_id column as primary key
it means that main class learns skill 765 creates row
82736 765 0
then he switch to subjob 1 and try to learn this skill
but DB can not insert row with 82736 765 combined couse there already is such row - result - skill is not saved - CacheD have that info but DB does not

conclusion - this fix is permanent =)
Stazis is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 20:03.