Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead. There is no support for other server builds than the official provided by l2jserver.com
Hello. I'm trying to transfer all data from PTS server to L2J. I have a question. There is a different id system in L2J (BitSet idFactory). I transfered all IDs with offset (FIRST_OID from IdFactory), but all ids in different tables started with same number (1 + 0x10000000). Is that ok, that row in [characters] has the same id with row in [clan_data]? Function getNextId generates unique id for all tables...
in theory clanid and charid do not conflict (charid and itemid do) but when clan is destroyed Id is released so that can makes serious problems, you will have to generate new ids for clanId.
JIV wrote:in theory clanid and charid do not conflict (charid and itemid do) but when clan is destroyed Id is released so that can makes serious problems, you will have to generate new ids for clanId.
Thank you for answer. So item, char and clan can't have same id (char and item too)? It's only one right way - generate unique id for all objects? What about itemsonground and messages?
P. S. Very strange solution. I think, using auto_increment id in each table (characters, clan_data, items) - simple, fast, nice and much better way.