Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
auth_update crash
Dec 23, 2017, 10:15 pm
By Remcon
check_tumble
Dec 18, 2017, 7:21 pm
By Remcon
parse description bug
Dec 15, 2017, 10:08 pm
By Remcon
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Users Online
CommonCrawl, Yahoo!, Bing

Members: 0
Guests: 9
Stats
Files
Topics
Posts
Members
Newest Member
478
3,708
19,242
612
Jacki72H
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » General » Smaug Snippets » [SNIPPET] AFKChangelog Snippe...
Forum Rules | Mark all | Recent Posts

[SNIPPET] AFKChangelog Snippet updated
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
* #1 Jan 10, 2006, 3:10 pm
Go to the top of the page
Go to the bottom of the page

Zarius
Apprentice
GroupMembers
Posts69
JoinedApr 23, 2002

I updated my changelog snippet for 1.76a and it has some new features including paging and removed a bunch of redundant code and removed the ugly array structure and made it more afk'ish.

Until I get it up here, you can download at mudmagic.com or mindcloud.com
       
Post is unread #2 Jan 29, 2006, 12:36 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

File posted. I've opened a new section for AFKMud specific snippets. If you have anything else you'd like to put up there let me know. This goes for anyone else reading this too.
       
Post is unread #3 Jun 29, 2006, 12:57 am   Last edited Jun 29, 2006, 1:18 am by ToadVile
Go to the top of the page
Go to the bottom of the page

ToadVile

GroupMembers
Posts47
JoinedApr 1, 2006

The Changes snippet is pretty cool :)
When you add a change in, it goes in. But if you make a typo, or a mess up within the change, you have to reboot to delete the change, recorrect it.. Kinda a pain to deal with at times when you have mistypes at random..


Laterz.

       
Post is unread #4 Jun 29, 2006, 8:29 am
Go to the top of the page
Go to the bottom of the page

Zarius
Apprentice
GroupMembers
Posts69
JoinedApr 23, 2002

Good point, might be useful to have a change change command :) Also I have the mysql changelog snippet almost done.
       
Post is unread #5 Jul 12, 2006, 1:26 am   Last edited Jul 12, 2006, 1:40 am by ToadVile
Go to the top of the page
Go to the bottom of the page

ToadVile

GroupMembers
Posts47
JoinedApr 1, 2006

Alright. I've discovered something that may not be good, probably is causing the trouble i was mentioning about before.
Where, you could add a new change in, then when you delete that new change mud would crash.

Here is the free_change function:
void free_change( CHANGE_DATA * chg )
{
   UNLINK( chg, first_change, last_change, next, prev );

   DISPOSE( chg->change );
   DISPOSE( chg->coder );
   DISPOSE( chg->date );
   DISPOSE( chg->type );
   DISPOSE( chg );

   return;
}


Well, if you look at this..

    chg->change = STRALLOC( argument );
    chg->coder = STRALLOC( ch->name );
    chg->date = STRALLOC( current_date(  ) );
    chg->type = STRALLOC( capitalize( arg1 ) );


If you change that to:
    chg->change = str_dup( argument );
    chg->coder = str_dup( ch->name );
    chg->date = str_dup( current_date(  ) );
    chg->type = str_dup capitalize( arg1 ) );

As well as:
                	chg->change = STRALLOC( "Error - Tell Zarius" );

To:
                	chg->change = str_dup( "Error - Tell Zarius" );


Your problem is solved, no more problems after that :)

Just figured I'd share that with you..

Since, i am sure others have had this problem as well.
       
Post is unread #6 Jul 12, 2006, 4:48 am
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

Ah, the dreaded mix 'n match memory allocation problem. That would definitely account for all kinds of headaches.
       
Pages:<< prev 1 next >>