lop 1.40
< Newer Topic
:: Older Topic >
Pages:<< prev 1 next >>
#1 Jun 5, 2011 5:37 pm
GroupMembers
Posts11
JoinedMay 26, 2011
Hello!
I discovered a bug:
the mud crash when I force to npc to slay a character.
On the other hand, how I can make to display the characters as ñ?
I discovered a bug:
the mud crash when I force to npc to slay a character.
On the other hand, how I can make to display the characters as ñ?
#2 Jun 5, 2011 8:31 pm
GroupAdministrators
Posts1,946
JoinedJul 26, 2005
Thanks for finding the issue.
Not sure right off sorry.
Not sure right off sorry.
#3 Jun 6, 2011 6:16 pm
GroupMembers
Posts153
JoinedMar 25, 2008
Hey Remcon, what's the code that does that? I'd like to get a fix on it if I could while maintaining my laziness.
#4 Jun 7, 2011 2:20 am
GroupMembers
Posts189
JoinedSep 5, 2010
The problem should be whatever command was used to attempt the slay on the character via the npc. So, it's probably that the slay command isn't getting the char name from the force command, so it's defaulting to null causing the crash--at a guess.
#5 Jun 7, 2011 4:55 am
GroupAdministrators
Posts1,946
JoinedJul 26, 2005
Nice guess and it was where I started, but this one seems to be a bit different
Channels.c function can_use_channel.
find
change it to
Just having an issue with checking flags on pcdata when no pcdata there.
Channels.c function can_use_channel.
find
if( channel->adult && !xIS_SET( ch->pcdata->flags, PCFLAG_ADULT ) ) return false;
change it to
if( channel->adult && ( !ch->pcdata || !xIS_SET( ch->pcdata->flags, PCFLAG_ADULT ) ) ) return false;
Just having an issue with checking flags on pcdata when no pcdata there.
#6 Jun 7, 2011 4:43 pm
GroupMembers
Posts189
JoinedSep 5, 2010
ahhh...yeah, okay. Since I'm not as good as you, I woulda started throwing up a multitude of ch_printf's for each value that's used to see where the problem might be. *LOL* Probably a more roundabout way to do things, but it seems a solid practice for finding a crash that can be reproduced.
#7 Jun 7, 2011 6:32 pm
GroupAdministrators
Posts1,946
JoinedJul 26, 2005
No worries Aurin I use to do that and still will if I'm just not getting good info from a crash .
Pages:<< prev 1 next >>