I should probably write to the author of this only, but I thought since its on the snippets site I should paste it here too? Well I do everything the instructions say on the Damaged Objects snippet, when starting the MUD I am almost connected then the MUD crashes. I check gdb: Program terminated with signal 11, Segmentation fault. Cannot access memory at address 0x80b0080. #0 0x4514f in perform_violence () at fight.c:1185 1185 if (ch->equipment[j]) { (gdb) list 1180 extern struct index_data *mob_index; 1181 int apr, prob, percent; 1182 int condition, j; 1183 1184 for (j = 0; j < NUM_WEARS; j++) { 1185 if (ch->equipment[j]) { 1186 1187 condition = GET_OBJ_TSLOTS(ch->equipment[j]) * 5; 1188 1189 if (number(0, condition) == 1) { #0 0x4514f in perform_violence () at fight.c:1185 #1 0x2bf3 in heartbeat (pulse=20) at comm.c:898 #2 0x2b15 in game_loop (mother_desc=3) at comm.c:855 #3 0x1c58 in init_game (port=5000) at comm.c:320 #4 0x1ab2 in main (argc=2, argv=0xefbfdcd0) at comm.c:291 I am sure I've followed the instructions precicely, and made all adequate changes. +------------------------------------------------------------+ | 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