IdFactory

This is not a Support area! Discuss about the Server here. Non-Server related discussion goes in Off-Topic Discussion.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
User avatar
Pere
Posts: 400
Joined: Sat Jan 05, 2008 11:09 am
Location: Catalunya, Berguedà

IdFactory

Post by Pere »

What's the difference between all the available IdFactories? Why Bitset and not another as default?
Thx ^^
Bones tardes amics meus tots!
User avatar
Aikimaniac
L2j Inner Circle
L2j Inner Circle
Posts: 3048
Joined: Sun Aug 07, 2005 11:42 pm
Location: Slovakia

Re: IdFactory

Post by Aikimaniac »

Migi wrote:What's the difference between all the available IdFactories? Why Bitset and not another as default?
Thx ^^
Others should be removed, best performance is Bitset...the rest is crap...
Image
User avatar
Pere
Posts: 400
Joined: Sat Jan 05, 2008 11:09 am
Location: Catalunya, Berguedà

Re: IdFactory

Post by Pere »

Ok, thank you!

By the way, my idfactory began to be crazy... It says negative free ids on start :S
And when I check the DB there are negative ids, which don't create any warning. Why? Because of overflow.
I cannot understand how the *** my idfactory overflowed, it didn't reach more than 5kk objects on db... and integer max value is at 2.1kkk :S

Well, as I said, thank you ^^
Bones tardes amics meus tots!
User avatar
JIV
L2j Veteran
L2j Veteran
Posts: 1882
Joined: Sun Jan 06, 2008 8:17 pm
Location: Slovakia
Contact:

Re: IdFactory

Post by JIV »

Code: Select all

	public static final int FIRST_OID = 0x10000000;	public static final int LAST_OID = 0x7FFFFFFF;	public static final int FREE_OBJECT_ID_SIZE = LAST_OID - FIRST_OID;
you have more that 1879048191 objects?
User avatar
Pere
Posts: 400
Joined: Sat Jan 05, 2008 11:09 am
Location: Catalunya, Berguedà

Re: IdFactory

Post by Pere »

of course not, but my idfactory skipped thousands and millions of ids (I don't know why) :P
Bones tardes amics meus tots!
Post Reply