[DGD] upgrading to 1.2.125 + 1.2.126

Erwin Harte harte at is-here.com
Fri Feb 22 15:21:08 CET 2008


Felix A. Croes wrote:
> Upgrading a persistent mud to 1.2.126 will take some care.
> 
> 1.2.125:
> 
>     First reboot into 1.2.125, then make the following changes in the
>     object manager: the source argument to compile() and compile_lib()
>     will become a (possibly empty) array of strings.  Prepare for that
>     by changing the parameter type to string*, and by adding something
>     like the following code at the beginning of those functions:
> 
> 	/*
> 	 * these minimal changes are only needed if you actually do
> 	 * something with the source code
> 	 */
> 	if (sizeof(source) != 0) {
> 	    source = source[0];
> 	} else {
> 	    source = nil;
> 	}
> 
>     After that, make sure to recompile the driver object, the auto object
>     and the object manager during the same execution round before you
>     upgrade the rest of the mudlib.

One minor note for anyone who has to deal with this:

You want to change the parameter type to 'mixed', not 'string *',
otherwise you'll get a compile time error for the if-else statement there.

Oh, and instant startup time when using statedumps is very cool. :)

Erwin.



More information about the DGD mailing list