Reset error

Posted by Orik on Sat 08 Mar 2008 11:47 PM — 5 posts, 18,668 views.

USA #0
I was building an area on my smaugfuss1.8 mud and I everything was going ok.

I went to do a reset list to see my resets and it started crashing on me. I had used reset list about 30 minutes prior to it crashing and I'm not sure what changed within that 30 minutes. I just added a couple more mobs, put them where I wanted and did an instazone. Did reset list and my mud crashed. Reset list works fine on all other areas.

Here's the bt:

(gdb) bt
#0  0xb7d52a3b in strlen () from /lib/libc.so.6
#1  0xb7d27094 in vfprintf () from /lib/libc.so.6
#2  0xb7d458c4 in vsnprintf () from /lib/libc.so.6
#3  0xb7d2c475 in snprintf () from /lib/libc.so.6
#4  0x0820018d in sprint_reset (pReset=0x8871920, num=0xbf967330) at reset.c:101
#5  0x08201176 in do_reset (ch=0x883eff0, argument=0xbf969c4e "") at reset.c:1084
#6  0x0819a2ff in interpret (ch=0x883eff0, argument=0xbf969c4a "list") at interp.c:545
#7  0x08145f05 in game_loop () at comm.c:854
#8  0x08147de2 in main (argc=1, argv=0xbf96a114) at comm.c:531


I looked in my building/file but I couldn't see any problems. When I do a next on the above gdb the mud dies.

What can I do from here?
USA #1
My area loads fine when it comes back up. The resets that were there in my last instazone work just fine and all the mobs load perfectly. Everything I created before it crashed is gone because it wasn't saved. So I'm not sure what's going on.

Just can't do a reset list.

Amended on Sun 09 Mar 2008 12:02 AM by Orik
USA #2
Seems like it was my wear locations... hmm. Not sure what happened with those. I deleted all my wear locations in my building file and it shows resets fine now.

The eq was loading fine on the mobs. Not sure what the problem was. I'll keep testing.
USA #3
It seems my mud is writing the instazone stuff incorrectly.

My reset looked like this in the file:

Reset E 1 1202 1 30



When i looked at newdark.are to see what those resets looked like my reset should have looked liked this:

Reset E 1 1202 23 16


That was for the same type of eq (sword)

When I changed it to the second reset, my reset list worked fine in my building area.
USA #4
I finally got it working correctly.

In reset.c at 101, I changed:

wear_locs[tReset->arg3]


to


item_w_flags[(tReset->arg3 + 1)]


The reason i did this is because I changed the wear locations around a long time ago and it was trying to read past the number of wear_locs that I had. So I am just using the item_w_flags to show what position the eq is in. I had to put the + 1 in there because it was reading one less then what it was supposed to.

It's working fine now so all is well.