[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  SMAUG coding
. . -> [Subject]  Changes thing
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Changes thing

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page


Pages: 1 2  3  

Posted by Metsuro   USA  (389 posts)  [Biography] bio
Date Sun 02 Oct 2005 11:03 PM (UTC)  quote  ]
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
[Go to top] top

Posted by Zeno   USA  (2,871 posts)  [Biography] bio   Moderator
Date Reply #1 on Sun 02 Oct 2005 11:20 PM (UTC)  quote  ]
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
[Go to top] top

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

SmaugMuds.org: http://www.smaugmuds.org - The Smaug MUDs Community Center

"The past was erased, the erasure was forgotten, the lie became truth." -- George Orwell, 1984
[Go to top] top

Posted by Metsuro   USA  (389 posts)  [Biography] bio
Date Reply #3 on Wed 09 Nov 2005 02:12 AM (UTC)  quote  ]
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
[Go to top] top

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

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[Go to top] top

Posted by Metsuro   USA  (389 posts)  [Biography] bio
Date Reply #5 on Wed 09 Nov 2005 02:28 AM (UTC)  quote  ]

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
[Go to top] top

Posted by Gatewaysysop2   USA  (142 posts)  [Biography] bio
Date Reply #6 on Wed 09 Nov 2005 04:35 AM (UTC)  quote  ]
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
[Go to top] top

Posted by Metsuro   USA  (389 posts)  [Biography] bio
Date Reply #7 on Thu 10 Nov 2005 06:12 PM (UTC)  quote  ]
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
[Go to top] top

Posted by Greven   Canada  (835 posts)  [Biography] bio
Date Reply #8 on Thu 10 Nov 2005 11:10 PM (UTC)  quote  ]
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
[Go to top] top

Posted by Metsuro   USA  (389 posts)  [Biography] bio
Date Reply #9 on Thu 10 Nov 2005 11:43 PM (UTC)  quote  ]

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
[Go to top] top

Posted by Metsuro   USA  (389 posts)  [Biography] bio
Date Reply #10 on Fri 11 Nov 2005 12:08 AM (UTC)  quote  ]
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
[Go to top] top

Posted by Greven   Canada  (835 posts)  [Biography] bio
Date Reply #11 on Fri 11 Nov 2005 12:10 AM (UTC)  quote  ]

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
[Go to top] top

Posted by Zeno   USA  (2,871 posts)  [Biography] bio   Moderator
Date Reply #12 on Fri 11 Nov 2005 12:12 AM (UTC)  quote  ]
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
[Go to top] top

Posted by Metsuro   USA  (389 posts)  [Biography] bio
Date Reply #13 on Fri 11 Nov 2005 12:14 AM (UTC)  quote  ]

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
[Go to top] top

Posted by Greven   Canada  (835 posts)  [Biography] bio
Date Reply #14 on Fri 11 Nov 2005 12:57 AM (UTC)  quote  ]
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
[Go to top] 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.


11,738 views.

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

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Web site powered by FutureQuest.Net]