[DGD] Maximums
Lord Lerkista
lordlerkista at gmx.net
Wed Jun 18 22:28:29 CEST 2003
On Wednesday, June 18, 2003, at 10:12 AM, Noah Gibbs wrote:
>
> --- Lord Lerkista <lordlerkista at gmx.net> wrote:
>> There's a way to increase the maximums??
>
> Number of objects:
> http://phantasmal.sourceforge.net/DGD/DGD_Config.html#NumObjects
>
Thankx, that works well =)
> Num of entries in mapping/array: change the .dgd
> config file that you're running your MUD with. You'll
> need to do the same thing to change the number of
> objects, as well.
>
The maximum allowed in the config file is 32767 (USHRT_MAX / 2)
The value of USHRT_MAX aren't defined in DGD source, so i think
it takes from my system.
seeing how to change the objects maximum in config.c i found:
# define ARRAY_SIZE 0
{ "array_size", INT_CONST, FALSE, FALSE,
1, USHRT_MAX / 2 },
If i change USHRT_MAX for UINDEX_MAX and change the definition of:
short conf_array_size()
to int conf_array_size()
i can define 1000000 of array_size
But i don't know if this is the right way to do that
_________________________________________________________________
List config page: http://list.imaginary.com/mailman/listinfo/dgd
More information about the DGD
mailing list