[DGD] LP 2.4.5 mudlib for DGD 1.4

bart at wotf.org bart at wotf.org
Wed Mar 24 07:25:24 CET 2010


Hi Greg,

That more or less works, Wim submitted a similar patch to http://dgdhub.org/

More or less because currently, when you turn the driver object into a port
object, it will interfere with the driver's use of send_message. Because of
this, and a somewhat related issue in DGD without network extensions, using
the driver object as port or user object will be forbidden in future versions.

Therefore it would be much better to create a very small port object.

Bart.

On Tue, 23 Mar 2010 22:07:44 -0700, Greg Lewis wrote
> On Sun, Mar 21, 2010 at 06:46:58PM +0100, Felix A. Croes wrote:
> > "Felix A. Croes" <felix at dworkin.nl> wrote:
> > 
> > > http://ftp.dworkin.nl/dgd/lib/2.4.5-for-1.4.tgz
> > 
> > I forgot to mention that I applied the patches from Greg Lewis to get
> > it to work again.  Thanks, Greg.
> 
> Thanks Felix!  Here are some minimal patches to get it working if one
> compiles in the networking extensions.  Included inline since I don't
> recall whether attachments are acceptable for the mailing list.
> 
> --- 2.4.5/dgd/sys/driver.c.orig	2010-03-21 10:39:41.000000000 -0700
> +++ 2.4.5/dgd/sys/driver.c	2010-03-23 21:53:25.000000000 -0700
> @@ -3,6 +3,10 @@
>  # include <status.h>
>  # include "/dgd/lib/privilege.h"
> 
> +#ifdef __NETWORK_EXTENSIONS__
> +#define	TELNET_PORT	2000
> +#endif
> +
>  object *usr;		/* user array just before a swapout */
> 
>  /*
> @@ -50,6 +54,9 @@
>  	}
>      }
>      send_message("Setting up ipc.\n");
> +#ifdef __NETWORK_EXTENSIONS__
> +    open_port("telnet", TELNET_PORT);
> +#endif
>  }
> 
>  /*
> @@ -249,6 +256,16 @@
>      return user;
>  }
> 
> +#ifdef __NETWORK_EXTENSIONS__
> +/*
> + * NAME:	connection()
> + * DESCRIPTION:	return a user object.
> + */
> +object connection(string ipnumber, int port) {
> +    return telnet_connect(port);
> +}
> +#endif
> +
>  /*
>   * NAME:	runtime_error()
>   * DESCRIPTION:	log a runtime error
> --- lpmud.dgd.orig	2010-03-21 10:39:41.000000000 -0700
> +++ lpmud.dgd	2010-03-23 22:04:26.000000000 -0700
> @@ -3,6 +3,7 @@
>  directory	= "/usr/local/mud/2.4.5";/* base directory (MUST be 
> absolute) */ users		= 40;			/* max # of users */ editors		= 41;			/* 
> max # of editor sessions */ +ports		= 16;			/* max number of open 
> ports (for network extensions) */ ed_tmpfile	= "../tmp/ed";		/* 
> proto editor tmpfile */ swap_file	= "../tmp/swap";	/* swap file */ 
> swap_size	= 20960;		/* # sectors in swap file */
> 
> -- 
> Greg Lewis                          Email   : glewis at eyesbeyond.com
> Eyes Beyond                         Web     : http://www.eyesbeyond.com
> Information Technology              FreeBSD : glewis at FreeBSD.org
> ___________________________________________
> https://mail.dworkin.nl/mailman/listinfo/dgd


--
Created with Open WebMail at http://www.bartsplace.net/
Read my weblog at http://soapbox.bartsplace.net/




More information about the DGD mailing list