On Thu, 20 Dec 2001, Jamie Nay wrote:
>Basically, equipment is not being saved when a person is renting. That is,
>if I went to the hotel and rented, it would drop my equipment on the ground
>and thus I'd re-enter the game with nothing on me. However, the thing that
>baffles me is the syslog. If I were to rent and come back on right away,
>here's what the log would look like:
>
>Dec 20 15:28:22 :: Rift has rented (4100/day, 600000 tot.)
>Dec 20 15:28:27 :: Rift entering game with no equipment.
Try this (untested), then see what the error is:
--- objsave.c Thu Jun 28 11:03:53 2001
+++ /tmp/objsave.c Thu Dec 20 20:01:24 2001
@@ -754,8 +754,10 @@ void Crash_crashsave(struct char_data *c
if (!get_filename(GET_NAME(ch), buf, CRASH_FILE))
return;
- if (!(fp = fopen(buf, "wb")))
+ if (!(fp = fopen(buf, "wb"))) {
+ perror(buf);
return;
+ }
rent.rentcode = RENT_CRASH;
rent.time = time(0);
@@ -797,8 +799,10 @@ void Crash_idlesave(struct char_data *ch
if (!get_filename(GET_NAME(ch), buf, CRASH_FILE))
return;
- if (!(fp = fopen(buf, "wb")))
+ if (!(fp = fopen(buf, "wb"))) {
+ perror(buf);
return;
+ }
Crash_extract_norent_eq(ch);
Crash_extract_norents(ch->carrying);
@@ -876,8 +880,10 @@ void Crash_rentsave(struct char_data *ch
if (!get_filename(GET_NAME(ch), buf, CRASH_FILE))
return;
- if (!(fp = fopen(buf, "wb")))
+ if (!(fp = fopen(buf, "wb"))) {
+ perror(buf);
return;
+ }
Crash_extract_norent_eq(ch);
Crash_extract_norents(ch->carrying);
@@ -922,8 +928,10 @@ void Crash_cryosave(struct char_data *ch
if (!get_filename(GET_NAME(ch), buf, CRASH_FILE))
return;
- if (!(fp = fopen(buf, "wb")))
+ if (!(fp = fopen(buf, "wb"))) {
+ perror(buf);
return;
+ }
Crash_extract_norent_eq(ch);
Crash_extract_norents(ch->carrying);
--
+---------------------------------------------------------------+
| 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/24/03 PDT