Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.
 Entire forum ➜ SMAUG ➜ SMAUG coding ➜ Changes thing

Changes thing

It is now over 60 days since the last post. This thread is closed.     Refresh page


Pages: 1 2  3  

Posted by Metsuro   USA  (389 posts)  Bio
Date Sun 02 Oct 2005 11:03 PM (UTC)
Message
I've seen in Zeno's mud and a few other that they have a command for changes, i was wondering if that was a snippet or what?

Everything turns around in the end
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #1 on Sun 02 Oct 2005 11:20 PM (UTC)
Message
Yeah, it's a snippet.
Quote:
* Original code by Xkilla
* Cleaned up by Dreimas
* Converted for Smaug by Zarius


That's all I know, I'm not sure where to find it.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Samson   USA  (683 posts)  Bio
Date Reply #2 on Mon 03 Oct 2005 01:11 AM (UTC)
Message
http://www.mudmagic.com/codes/server-snippet/1743
Top

Posted by Metsuro   USA  (389 posts)  Bio
Date Reply #3 on Wed 09 Nov 2005 02:12 AM (UTC)
Message
Ok I can not for the life of me get this to work, following the "instructions" so huh would anyone mind helping me or giving me a easier way to follow heh

Everything turns around in the end
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #4 on Wed 09 Nov 2005 02:15 AM (UTC)
Message
What's wrong? Compile errors?

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Metsuro   USA  (389 posts)  Bio
Date Reply #5 on Wed 09 Nov 2005 02:28 AM (UTC)

Amended on Wed 09 Nov 2005 02:29 AM (UTC) by Metsuro

Message
if you read the instructions to me its missing a few things like it says to add a changes.c but it doesn't do anything with the changes.c so that it will compile and what not. It also says to add a changes.h but you dont have one and some of the bits look like typos to me but i'm not sure heh..

Everything turns around in the end
Top

Posted by Gatewaysysop2   USA  (146 posts)  Bio
Date Reply #6 on Wed 09 Nov 2005 04:35 AM (UTC)
Message
Just an observation here, but if we know that Zarius converted it for Smaug, and we're (presumably, since this is a smaug forum) talking about putting it into a Smaug mud, why not just ask him where to get his Smaug port of the snippet? Doesn't Zarius have a website with quite a few snippets?


"The world of men is dreaming, it has gone mad in its sleep, and a snake is strangling it, but it can't wake up." -D.H. Lawrence
Top

Posted by Metsuro   USA  (389 posts)  Bio
Date Reply #7 on Thu 10 Nov 2005 06:12 PM (UTC)
Message
Or even create one, seeing as alot of smaugs use a help file for their changes, adding this to stock even would prolly be really nice because of how much easier having it would be for imms and players to know whats happening.

Everything turns around in the end
Top

Posted by Greven   Canada  (835 posts)  Bio
Date Reply #8 on Thu 10 Nov 2005 11:10 PM (UTC)
Message
I have a modified version of the snippet here: http://www.darkwarriors.net/downloads/changes.tar.gz. I have it installed on an SWR, but from whats used I think it should pretty much drop right in.

Nobody ever expects the spanish inquisition!

darkwarriors.net:4848
http://darkwarriors.net
Top

Posted by Metsuro   USA  (389 posts)  Bio
Date Reply #9 on Thu 10 Nov 2005 11:43 PM (UTC)

Amended on Fri 11 Nov 2005 12:07 AM (UTC) by Metsuro

Message
Compiling o/changes.o....
changes.c: In function `load_changes':
changes.c:47: warning: too many arguments for format
changes.c: In function `delete_change':
changes.c:114: warning: implicit declaration of function `CALLOC'
changes.c:114: warning: cast does not match function type
changes.c: In function `do_chedit':
changes.c:242: warning: too many arguments for format
changes.c:243: warning: too many arguments for format
changes.c:244: warning: too many arguments for format
make[1]: *** [o/changes.o] Error 1
make: *** [all] Error 2

thats what I get when I added it.

Everything turns around in the end
Top

Posted by Metsuro   USA  (389 posts)  Bio
Date Reply #10 on Fri 11 Nov 2005 12:08 AM (UTC)
Message
ok now i've narrowed it down( I hope...) to just

compiling o/changes.o....
changes.c: In function `delete_change':
changes.c:114: warning: implicit declaration of function `CALLOC'
changes.c:114: warning: cast does not match function type
make[1]: *** [o/changes.o] Error 1
make: *** [all] Error 2

Everything turns around in the end
Top

Posted by Greven   Canada  (835 posts)  Bio
Date Reply #11 on Fri 11 Nov 2005 12:10 AM (UTC)

Amended on Fri 11 Nov 2005 12:11 AM (UTC) by Greven

Message
Odd, I don't get those. To fix, however, you should be able to pull off the ", 0" on like 47, change CALLOC to calloc and make 242, 243, and 244 look like:

        send_to_char("Syntax: chedit load/save\n\r",ch);
        send_to_char("Syntax: chedit delete (change number)\n\r",ch);
        send_to_char("Syntax: chedit immchange (change number)\n\r",ch);


That SHOULD fix it, no gaurantees. You'll have to play with it a bit to get it to work right on what your compiling on.

[EDIT] This is what happens when I take my time in replying...

Nobody ever expects the spanish inquisition!

darkwarriors.net:4848
http://darkwarriors.net
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #12 on Fri 11 Nov 2005 12:12 AM (UTC)
Message
*blink* Immchange? I was planning to put that in for my changes system. Is this something you did?

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Metsuro   USA  (389 posts)  Bio
Date Reply #13 on Fri 11 Nov 2005 12:14 AM (UTC)

Amended on Fri 11 Nov 2005 12:23 AM (UTC) by Metsuro

Message
ok i got it to work CALLOC should be replaced with calloc i think not 100% sure but i did it that way and it works now i think.

[EDIT] woo another problem. One I really have no idea how to fix wooo.

Compiling o/tables.o....
tables.c: In function `skill_function':
tables.c:244: error: `do_addchange' undeclared (first use in this function)
tables.c:244: error: (Each undeclared identifier is reported only once
tables.c:244: error: for each function it appears in.)
tables.c:246: error: `do_addimmchange' undeclared (first use in this function)
tables.c:342: error: `do_changes' undeclared (first use in this function)
tables.c:350: error: `do_chedit' undeclared (first use in this function)
tables.c: In function `skill_name':
tables.c:1413: error: `do_addchange' undeclared (first use in this function)
tables.c:1415: error: `do_addimmchange' undeclared (first use in this function)
tables.c:1507: error: `do_changes' undeclared (first use in this function)
tables.c:1513: error: `do_chedit' undeclared (first use in this function)
make[1]: *** [o/tables.o] Error 1
make: *** [all] Error 2

Everything turns around in the end
Top

Posted by Greven   Canada  (835 posts)  Bio
Date Reply #14 on Fri 11 Nov 2005 12:57 AM (UTC)
Message
Yes, I added the immchanges. There were just some things that I did not want the mortals seeing.

As for that, I missed a step in the snippet instructions. You have to add the declarations into mud.h, same as you would for any other command.

DECLARE_DO_FUN( do_addchange );
DECLARE_DO_FUN( do_addimmchange );
DECLARE_DO_FUN( do_changes );
DECLARE_DO_FUN( do_chedit);


Should be what you need.

Nobody ever expects the spanish inquisition!

darkwarriors.net:4848
http://darkwarriors.net
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


97,022 views.

This is page 1, subject is 3 pages long: 1 2  3  [Next page]

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.