Re: [NEWBIE] Trigedit crash olcplus

From: Tony Robbins (tonyr@NWPACLINK.COM)
Date: 04/18/98


At 05:00 PM 4/18/98 -0400, you wrote:
>I have recently got into coding circle mud and am at best a rookie coder.
>I have installed the new olc package with dg scripting.
This isn't a direct release from the OasisOLC team.  I wrote that patch.

>letter. I have 2 main problems.  The first one is that using hedit to edit
>my help files the help files won't save or even show up when I type help
>topic.
Make sure your index file in lib/text/help points to help.hlp, not all the
others.  Also, make sure you put the topic of the help entry at the top.

---
"FLYING MONKEYS"

These were in the wizard of Oz.
---

>It lets me create a help subject, but after I save it   just doesn't add
>the subject
>or the changes.  Ok bigger problem then that.  There is a command called
>trigedit designed to edit the mob room and obj scripts.  but if you type
>trigedit
>and the number it crashes the mud immediately.
Never ever ever seen this error before.

>---GDB---
>Sat Apr 18 16:40:46 :: Robby entering game with no equipment.
>
>Program received signal SIGSEGV, Segmentation fault.
>0xef664668 in strlen ()
>(gdb) back
>#0  0xef664668 in strlen ()
>#1  0xef69a36c in _doprnt ()
>#2  0xef6a3544 in sprintf ()
>#3  0x7c4b4 in trigedit_disp_menu (d=0x30c278) at dg_olc.c:194
>#4  0x7c378 in trigedit_setup_existing (d=0x30c278, rtrg_num=0) at
>dg_olc.c:171
>#5  0x54ecc in do_olc (ch=0x30cf58, argument=0x30c278 "", cmd=276, subcmd=7)
>    at olc.c:329
The argument is lost here, somehow, and then apparently it tries to strlen
this empty string.  I'm not the best with GDB so I may be wrong.  Anyway,
against stock code, olcplus.tgz works perfectly with the exception that I
didn't instruct about the help index file.  you have something changed.


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST