Re: Whenever I try and use trigedit it crashes the mud.

From: Mike Stilson (mike@velgarian.sytes.net)
Date: 09/27/02


On Fri, Sep 27, 2002 at 06:21:16PM -0500, Flawed wrote:
>> On Fri, Sep 27, 2002 at 02:51:04PM -0400, Carlton Colter wrote:
>> >Whenever I save a trigger using trigedit the mud crashes....  Anyone have
>> >any idea what could be wrong?>
>
>If I remember correctly, there is no need to use trigedit save, (unless you
>want to crash the mud). Simply
>exiting trigedit automatically saves the information to disk.

The crash is probably because trigedit is parsing "save" as a vnum
(taking something like "trig_vnum = atoi(arg);") then edit whatever that
returns.

Dunno if it's there, but something like "if(!isdigit(arg[0]))" after all
the usual checks that there IS an argument would fix it... but yeah,
trigedit saves automatically when you exit it.

-me

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/25/03 PDT