Re: OLC Saves

From: Tony Robbins (kupek@orst.edu)
Date: 03/14/02


From: Circle Discussion List [mailto:CIRCLE@post.queensu.ca] On Behalf
Of Bejhan Jetha

[snip]

: Saving all mobiles in zone 0.
:
: On the log I get:
:
: Mar 13 18:18:25 :: GenOLC: 'world/mob/0.mob' saved, 1239
: bytes written. Mar 13 18:18:29 :: OLC: Chaos saves mobile
: info for zone 0. Mar 13 18:18:29 :: SYSERR:
: remove_from_save_list: Saved item not found.
: (0/0)
:
: I think that's the main problem but I don't really know what to do.

The problem is that the new Oasis code doesn't look up the zone properly
if you specify only by zone number.  The workaround is to do the
following:

> medit save 1200

Which will save everything in zone 12.

Of course, fixing the code might be preferable, in which case, you can
edit the following block of code in oasis.c.

  /*
   * Find the zone.
   */
  if ((OLC_ZNUM(d) = real_zone_by_thing(number)) == -1) {
    send_to_char("Sorry, there is no zone for that number!\r\n", ch);
    free(d->olc);
    d->olc = NULL;
    return;
  }

Should become:

  /*
   * Find the zone.
   */
  if (!save)
    OLC_ZNUM(d) = real_zone_by_thing(number);
  else
    OLC_ZNUM(d) = real_zone(number);

  if (OLC_ZNUM(d) == -1) {
    send_to_char("Sorry, there is no zone for that number!\r\n", ch);
    free(d->olc);
    d->olc = NULL;
    return;
  }

---------------

That should cover it.

-k.

--
   +---------------------------------------------------------------+
   | 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