Remort Problems

Posted by Jynxdarkspell on Tue 06 Mar 2007 07:38 AM — 9 posts, 26,297 views.

USA #0
Damn, and I'd thought it would be at least a week.....

Anyways, I'm back again, and I've had alot of success installing various other snippets to my mud in progress. I'm running across a problem with the remort snippet by Xerves, and it appears to be in only one line.....

load_char_obj(d, capitalize( oldch->name ), TRUE );

in remort.c

when I try to compile, it gives me an error that says:

remort.c:184: error: too few arguments to 'load_char_obj'

of course the line above was line 184, but I'm trying to figure out the missing argument.......

any answers on that one folks?
USA #1
Find the load_char_obj function and look at the function header. Compare the arguments to the function call.
Australia Forum Administrator #2
With situations like this you need to inspect the function prototype. Looking in mud.h will usually help, or grep for it like I did:


$ grep load_char_obj *.h

mud.h:bool load_char_obj args( ( DESCRIPTOR_DATA * d, char *name, bool preload, bool copyover ) );

USA #3
Lol, thanks Zeno.

All it needed as an extra TRUE to the line and it compiled perfectly, tested it and it works like it's supposed to :)
USA #4
Are you sure you needed a TRUE and not a FALSE?
USA #5
And thank you to, nick :) That's exactly what i did to find what I was missing :)
USA #6
Well, it looked like it worked fine to me. It sent the message correctly, the char remorted to the desired class, the desired level, all seemes okay to me
USA #7
I believe (if you have the same prototype as Nick posted) that making it TRUE indicates a copyover is in progress.
USA #8
Thanks Zeno.

Now that I read the args there, that seems to be exactly what it seems. I'll change that to false and retest it.