[skill_name] field in [clan_skills] table
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
-
- Posts: 21
- Joined: Fri Mar 05, 2010 2:08 pm
[skill_name] field in [clan_skills] table
Hello. Can you help me. Why do we need [skill_name] field in [clan_skills] table?
- Makc406
- Posts: 17
- Joined: Thu Apr 23, 2009 8:51 am
- Location: Russia
- Contact:
Re: [skill_name] field in [clan_skills] table
This field is not required there.
Most likely left from the previous server/dp rev.
Most likely left from the previous server/dp rev.
- jurchiks
- Posts: 6769
- Joined: Sat Sep 19, 2009 4:16 pm
- Location: Eastern Europe
Re: [skill_name] field in [clan_skills] table
what kind of a stupid question is that?
It's so you wouldn't need to search for the name in xml's or client's .dat files
It's so you wouldn't need to search for the name in xml's or client's .dat files
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
-
- Posts: 21
- Joined: Fri Mar 05, 2010 2:08 pm
Re: [skill_name] field in [clan_skills] table
Thank you. Are you sure, that this field is not in use anymore? I am transferring database from PTS to L2J server. It's very strange, that table contains skill name (why someone add it???).Makc406 wrote:This field is not required there.
Most likely left from the previous server/dp rev.
Ok. Why there is no item names in character_items table, skill names in character_skills table etc?) *sarcasm* )what kind of a stupid question is that?
It's so you wouldn't need to search for the name in xml's or client's .dat files
- Makc406
- Posts: 17
- Joined: Thu Apr 23, 2009 8:51 am
- Location: Russia
- Contact:
Re: [skill_name] field in [clan_skills] table
But why developer's delete same filed from character_skills (http://www.l2jdp.com/trac/changeset?new ... sql%405992)?
Becouse this field already is not needed. In core and dp them not used.
Becouse this field already is not needed. In core and dp them not used.
Maybe in PTS is used.reblock wrote: Thank you. Are you sure, that this field is not in use anymore? I am transferring database from PTS to L2J server. It's very strange, that table contains skill name (why someone add it???).
- jurchiks
- Posts: 6769
- Joined: Sat Sep 19, 2009 4:16 pm
- Location: Eastern Europe
Re: [skill_name] field in [clan_skills] table
Because those item/skill names are in weapon,armor,etcitem,skill_trees, whilst clan skills are not in sqls.reblock wrote:Ok. Why there is no item names in character_items table, skill names in character_skills table etc?) *sarcasm* )what kind of a stupid question is that?
It's so you wouldn't need to search for the name in xml's or client's .dat files
he asked about clan_skills though...Makc406 wrote:But why developer's delete same filed from character_skills (http://www.l2jdp.com/trac/changeset?new ... sql%405992)?
Becouse this field already is not needed. In core and dp them not used.
Maybe in PTS is used.reblock wrote: Thank you. Are you sure, that this field is not in use anymore? I am transferring database from PTS to L2J server. It's very strange, that table contains skill name (why someone add it???).
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
- Makc406
- Posts: 17
- Joined: Thu Apr 23, 2009 8:51 am
- Location: Russia
- Contact:
Re: [skill_name] field in [clan_skills] table
Clan skill names is in pledge_skill_trees.jurchiks wrote:Because those item/skill names are in weapon,armor,etcitem,skill_trees, whilst clan skills are not in sqls.reblock wrote:Ok. Why there is no item names in character_items table, skill names in character_skills table etc?) *sarcasm* )what kind of a stupid question is that?
It's so you wouldn't need to search for the name in xml's or client's .dat files
- jurchiks
- Posts: 6769
- Joined: Sat Sep 19, 2009 4:16 pm
- Location: Eastern Europe
Re: [skill_name] field in [clan_skills] table
Ok so they are in database. What now?
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
- Makc406
- Posts: 17
- Joined: Thu Apr 23, 2009 8:51 am
- Location: Russia
- Contact:
Re: [skill_name] field in [clan_skills] table
Nothing. Just I has a little correct you post.jurchiks wrote:Ok so they are in database. What now?
--
Sorry, offtopic:
Jurchiks, why you such aggressive to new users of community?
-
- Posts: 21
- Joined: Fri Mar 05, 2010 2:08 pm
Re: [skill_name] field in [clan_skills] table
Sorry for my opinion, but I think, that it is stupid to dublicate needless strings in service tables.
If someone wants to know skill names, he must search it in different place (JOINED SELECT from another table), but not in table, that used by game server.
P. S. There is another things in database, that I can't understand (I used PTS server before).
1. Unique Ids in all t6ables (chars, clans, items). AUTO_INCREMENT field for each table - simple, nice and fast solution.
2. SkillId and SkillLevel in item_attributes table, when there is a augAttributes field. Server still decrypts this field and looks aug options (stat modificators etc). Why do we need specify skill data in another fields? If I'll put one value in augAttributes and different values in augSkillId and augSkillLevel, this row fill be corrupted (useless).
3. 'Type' field in character_recipebook. Server already knows this info (common of dwarf recipe)!
...
Sorry for this post. This is just my thoughts. I understand, how much work many people made to write this server.
If someone wants to know skill names, he must search it in different place (JOINED SELECT from another table), but not in table, that used by game server.
P. S. There is another things in database, that I can't understand (I used PTS server before).
1. Unique Ids in all t6ables (chars, clans, items). AUTO_INCREMENT field for each table - simple, nice and fast solution.
2. SkillId and SkillLevel in item_attributes table, when there is a augAttributes field. Server still decrypts this field and looks aug options (stat modificators etc). Why do we need specify skill data in another fields? If I'll put one value in augAttributes and different values in augSkillId and augSkillLevel, this row fill be corrupted (useless).
3. 'Type' field in character_recipebook. Server already knows this info (common of dwarf recipe)!
...
Sorry for this post. This is just my thoughts. I understand, how much work many people made to write this server.
- jurchiks
- Posts: 6769
- Joined: Sat Sep 19, 2009 4:16 pm
- Location: Eastern Europe
Re: [skill_name] field in [clan_skills] table
well if some dev will read your post, maybe they will do smth about it, who knows...
although in this community, things usually move really slow
Максу: да потому что слишком часто задают тупые вопросы (в особенности "почему")...
although in this community, things usually move really slow
Максу: да потому что слишком часто задают тупые вопросы (в особенности "почему")...
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
- janiii
- L2j Veteran
- Posts: 4269
- Joined: Wed May 28, 2008 3:15 pm
- Location: Slovakia
Re: [skill_name] field in [clan_skills] table
it is not really such a big issue to have skill names in db. mostly the table is static and doesn't change and has only a few records. the skill names are not loaded by gameserver, so it is only database storage they are using. not a big deal. and if, it has no priority..
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
- JIV
- L2j Veteran
- Posts: 1882
- Joined: Sun Jan 06, 2008 8:17 pm
- Location: Slovakia
- Contact:
Re: [skill_name] field in [clan_skills] table
2reblock: can auto-increment guarantee different ID in more than one table? 

-
- Posts: 21
- Joined: Fri Mar 05, 2010 2:08 pm
Re: [skill_name] field in [clan_skills] table
Why do you need different ids for different entities (that doesn't intersects)? Only if you have wrong architecture.JIV wrote:2reblock: can auto-increment guarantee different ID in more than one table?
Items - unique ids from 1 to ...
Clans - unique ids from 1 to ...
Items - unique ids from 1 to ...
Server, written by NCZ0ft, perfectly works with same type of ids (unique ids for one type of objects).
---
What about augSkillId and augSkillLevel in item_attributes?

- janiii
- L2j Veteran
- Posts: 4269
- Joined: Wed May 28, 2008 3:15 pm
- Location: Slovakia
Re: [skill_name] field in [clan_skills] table
e.g. in items the owner id is taken from characters or from clans, so they cannot be same.
for augmentations - yeah, somehow that is wrong, because we already have a mapping between augId and skill id-level, so there should be no need for that in db. true.
server written by NCZ0ft has different structure, so you cannot just take data from there and migrate it to l2j. different tables, different data structure, different logic.
for augmentations - yeah, somehow that is wrong, because we already have a mapping between augId and skill id-level, so there should be no need for that in db. true.
server written by NCZ0ft has different structure, so you cannot just take data from there and migrate it to l2j. different tables, different data structure, different logic.
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!