Highest Record # Possible To Use?

Locke Cole
Posts: 0
Joined: Fri Jun 21, 2002 5:00 am

Re: Highest Record # Possible To Use?

Post by Locke Cole »

Items, Monsters, Messages, and Shops

1 - 2,147,483,647.



Classes, Races, and Spells

1 - 32,767



Rooms

1 - 2,147,483,647 for the map and the room (in fact, this might be a rare situation where you could use up to 4,294,967,295 because an AUTOINC isn't used for the key type).



Textblocks

1 - 2,147,483,647 (but here again as with Rooms, an AUTOINC isn't used so you may be able to use up to 4,294,967,295).



Using unsigned values depends less on Btrieve, in so far as Rooms and Textblocks go, and more on how MMUD is working with them. If it's treating the value as signed it might puke on huge values (which, when casted to a signed type, would be negative numbers, not numbers >= 2,147,483,648).
syntax53
Posts: 0
Joined: Wed Apr 03, 2002 6:00 am

Re: Highest Record # Possible To Use?

Post by syntax53 »

Textblocks: 1 - 2,147,483,647 (but here again as with Rooms, an AUTOINC isn't used so you may be able to use up to 4,294,967,295).

0 - 2,147,483,647 :)
Locke Cole
Posts: 0
Joined: Fri Jun 21, 2002 5:00 am

Re: Highest Record # Possible To Use?

Post by Locke Cole »

I'm not sure if using zero is wise, but yeah, the value would work. I'm going to guess though that there's probably comparions to zero in the code that might hiccup if you tried to use that value. =)
Necrosaro420
Posts: 0
Joined: Mon Jan 22, 2001 6:00 am

Re: Highest Record # Possible To Use?

Post by Necrosaro420 »

Thanks =)
Post Reply

Return to “General Majormud/WG Support”