[DGD]Melville under windows driver?

Ludger Merkens balduin at uni-paderborn.de
Tue Sep 12 17:05:47 CEST 2000


On Tue, 12 Sep 2000, Lance Artman wrote:

> 
>    Hey all:)  Sorry if this ends up appearing as a repost, tried to send
> from another address at first.  Trying to get into DGD LPC (thanks all who
> answered my other q's) and thought Melville looked like a prime target for
> picking apart to learn it...set up the config file and all, but when I try
> to run it under the windows driver I get:
> 
> /system/driver.c, 147: bad argument 1 for function clone_object (needs
> object)
> /system/driver.c, 148: bad argument 1 for function clone_object (needs
> object)
> Failed to compile "/system/driver.c"
> Config error: initialization failed
> 
>    Here's the relevant function in driver.c:
> 
> static object telnet_connect() {
>     object user, player;
>     user = clone_object(USER);
>     player = clone_object(PLAYER) ;
>     user->set_player(player);
>     player->set_user(user);
>     return user;
> }
> 
All I can do for you is to read the error messages.
According to this the function clone_object takes an object as argument.
(This is fine with the kfun description) But you pass something that looks
like a #define. I'm not sure, but usually this resolves to a string.

To provide the behaviour expected at this point, you will have to provide
a function

object clone_object(mixed arg)
{
}

This is usually done in the auto-object. This should allow a mixed
as arg and translate string arguments e.g. via call_object or
compile_object. Have a look at other existing libs for details. 

>    DGD version is the precompiled 1.1p8 exe, Melville version is 0.8.  If
> anyone's run into this before or knows what it is, lemme know!  Melville
> looks like JUST what I need to get going 8)
> 
> ------------------------------<  *^.^*  >------------------------------
> Lance Artman, Dragon Extraordinaire
> "I'm about to belch, honey, get the extinguisher!"
> email = dracozombie at yahoo.com
> home = http://www.inhousemall.com/zombie/
> ICQ = 2835770
> AIM = TheZombie0
> NEWnet / DALnet = TheZombie
> ------------------------------<  *^.^*  >------------------------------
> 
> 
> 
> List config page:  http://list.imaginary.com/mailman/listinfo/dgd
> 


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



More information about the DGD mailing list