[DGD] Maximums

Lord Lerkista lordlerkista at gmx.net
Wed Jun 18 22:51:29 CEST 2003


> 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
>

No, it doesn't =/
I have a function that loads 10000 rooms each time
when i was running it the 4th time, the mud crashes
i only get a: Connection closed by foreign host.

Anyone knows how increase the array_size maximum??

_________________________________________________________________
List config page:  http://list.imaginary.com/mailman/listinfo/dgd



More information about the DGD mailing list