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: 4
Stats
Files
Topics
Posts
Members
Newest Member
481
3,734
19,366
618
Micheal64X
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » General » General Discussions » Oset
Forum Rules | Mark all | Recent Posts

Oset
< Newer Topic :: Older Topic > Item Affects

Pages:<< prev 1 next >>
Post is unread #1 Dec 21, 2005, 6:59 pm
Go to the top of the page
Go to the bottom of the page

Banner
Magician
GroupMembers
Posts169
JoinedNov 29, 2005

I noticed this awhile ago, but only just remembered. Is there a bug in setting affects using oset? I found that when you use 'oset vnum affect" and then use an affect that doesn't exist, it will crash, which is a very real problem when someoen mispells an affect or attemtps to shorten it.

It seems as if my code isn't doing what it should with this check:
      loc = get_atype( arg2 );
      if( loc < 1 )
      {
         ch_printf( ch, "Unknown field: %s\n\r", arg2 );
         return;
      }

Which is locatedi n build.c under if( !str_cmp( arg2, "affect" ) ) which is in do_oset.
       
Post is unread #2 Dec 21, 2005, 8:48 pm
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,873
JoinedJul 26, 2005

I've tested it out in my code at least and got exactly what was expected which is it saying "Unknown field: testing".
If it's crashing, how about a core file display or something else to go on. As far as what you have displayed so far I would have to say that of those lines it would be get_atype crashing it or returning something wrong.
       
Post is unread #3 Dec 25, 2005, 5:16 pm
Go to the top of the page
Go to the bottom of the page

Banner
Magician
GroupMembers
Posts169
JoinedNov 29, 2005

Is that ifcheck I showed the same as in yours?
       
Post is unread #4 Dec 27, 2005, 6:35 am
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,873
JoinedJul 26, 2005

Yea, mine looked exactly like that. Which is why I fiqure the crashing is from somewhere else.
       
Pages:<< prev 1 next >>