Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
tintin++ ogg sound player script for linux
Author: Robert Smith
Submitted by: Vladaar
6Dragons ogg Soundpack
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.4
Author: Vladaar
Submitted by: Vladaar
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
Users Online
CommonCrawl, Yandex, Google

Members: 0
Guests: 6
Stats
Files
Topics
Posts
Members
Newest Member
481
3,734
19,366
618
Micheal64X
Today's Birthdays
Vintar (28)
Related Links
» SmaugMuds.org » Codebases » AFKMud Support & Development » Switch crash
Forum Rules | Mark all | Recent Posts

Switch crash
< Newer Topic :: Older Topic > When an imm switches to a mob and l

Pages:<< prev 1 next >>
Post is unread #1 Jan 5, 2003, 4:58 pm
Go to the top of the page
Go to the bottom of the page

jadon

GroupMembers
Posts2
JoinedJan 1, 2003

Hey,
Has anyone had a problem with the switch command crashing the mud? When we switch into the takeover mob for instance it reboot the mud on look.
       
Post is unread #2 Jan 21, 2003, 10:01 pm
Go to the top of the page
Go to the bottom of the page

Zarthesis

GroupMembers
Posts1
JoinedJan 21, 2003

I have the same problem. The mud crashes when I switch into the takeover mob, (or any mob in general) and attempt to type anything. (i.e. - look, score, etc., etc.)
       
Post is unread #3 Jan 22, 2003, 2:01 am   Last edited Nov 24, 2007, 1:25 am by Samson
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,643
JoinedJan 1, 2002

After a bit of investigating, the switch crash has been found. To fix it, go into game_loop and locate:

			   case CON_PLAYING:
				   d->character->pcdata->cmd_recurse = 0;
				interpret( d->character, cmdline );
				break;


And replace that with:

			   case CON_PLAYING:
				if( d->original )
                           d->original->pcdata->cmd_recurse = 0;
				else
				   d->character->pcdata->cmd_recurse = 0;
				interpret( d->character, cmdline );
				break;


That'll fix things right up. This is only necessary on AFKMud 1.4 and 1.3 ( though 1.3 wasn't a public release ).
       
Post is unread #4 Feb 26, 2003, 9:27 pm
Go to the top of the page
Go to the bottom of the page

Exodus
Fledgling
GroupMembers
Posts12
JoinedOct 9, 2006

I had the same problem awhile back after installing the room flags/sector/filename snippet. It was an error on my part, but the problem was in the do_look function. It just needed a check for IS_NPC(ch) with explicit braces for that section because mobs don't have pcdatas. The fix for comm.c works too though.

Exo
       
Pages:<< prev 1 next >>