> Alright, it works now, thanks for the help, but I get this below whenever
> I shut down my MUD... The 999 is what I defined for my help edit in
> olc.h Thanks in advance!
>
> Sep 13 14:21:55 :: OLC: Illegal save zone 999!
ok..find this section of code (in comm.c) and change it to look like this:
if (circle_reboot != 2 && olc_save_list) { /* Don't save zones. */
struct olc_save_info *entry, *next_entry;
int rznum;
for (entry = olc_save_list; entry; entry = next_entry) {
next_entry = entry->next;
! if (entry->type < 0 || entry->type > 5) {
sprintf(buf, "OLC: Illegal save type %d!", entry->type);
log(buf);
! } else if (entry->type != OLC_SAVE_HELP &&
! (rznum = real_zone(entry->zone * 100)) == -1) {
sprintf(buf, "OLC: Illegal save zone %d!", entry->zone);
log(buf);
! } else if (entry->type != OLC_SAVE_HELP && (rznum < 0
! || rznum > top_of_zone_table)) {
sprintf(buf, "OLC: Invalid real zone number %d!", rznum);
log(buf);
} else {
sprintf(buf, "OLC: Reboot saving %s for zone %d.",
save_info_msg[(int)entry->type], zone_table[rznum].number);
log(buf);
switch (entry->type) {
+ case OLC_SAVE_HELP: hedit_save_to_disk(); break;
case OLC_SAVE_ROOM: redit_save_to_disk(rznum); break;
case OLC_SAVE_OBJ: oedit_save_to_disk(rznum); break;
case OLC_SAVE_MOB: medit_save_to_disk(rznum); break;
case OLC_SAVE_ZONE: zedit_save_to_disk(rznum); break;
case OLC_SAVE_SHOP: sedit_save_to_disk(rznum); break;
default: log("Unexpected olc_save_list->type"); break;
}
}
}
}
also, make sure that you fixed the free_help bug..remove the line that
says:
free(help);
and make it:
memset(help, 0, sizeof(struct help_index_element))
siv
+------------------------------------------------------------+
| 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