This is an error which seemed to come out of nowhere, i didn't touch the is_dark function thing and thats were the error started.
I've been doing a lot of work every day now since the last prob (which you guys helped me fix). Currently i've looked over the code in gdb, backtraced and changed it a bit to see if it was maybe a syntax thing.
Cygwin error:
Program received signal SIGSEGV, Segmentation fault.
0x00414fac in do_look (ch=0x102a95c8, argument=0x451113 "") at act_info.c:1387
1387 send_to_char ( ch->in_room->name, ch );
BackTrace:
#0 0x00414fac in do_look (ch=0x102a95c8, argument=0x451113 "")
at act_info.c:1387
#1 0x00452c9c in nanny (d=0x102a7f60, argument=0x102a88dd " ") at comm.c:3364
#2 0x0044d88f in game_loop_unix (control=4, wwwcontrol=5) at comm.c:909
#3 0x0044d118 in main (argc=1, argv=0x100213a8) at comm.c:472
The error occurs after motd is loaded (the welcome screen for mortals). It originally had to do with a dark room check, so i commented out hte entire function to see if it was that. Now it seems to point to ch->in_room variable as the error.
As for the character, on creation its allocated new_char() so it shouldnt be that type of memory error. If you have any ideas, please post.
I've been doing a lot of work every day now since the last prob (which you guys helped me fix). Currently i've looked over the code in gdb, backtraced and changed it a bit to see if it was maybe a syntax thing.
Cygwin error:
Program received signal SIGSEGV, Segmentation fault.
0x00414fac in do_look (ch=0x102a95c8, argument=0x451113 "") at act_info.c:1387
1387 send_to_char ( ch->in_room->name, ch );
BackTrace:
#0 0x00414fac in do_look (ch=0x102a95c8, argument=0x451113 "")
at act_info.c:1387
#1 0x00452c9c in nanny (d=0x102a7f60, argument=0x102a88dd " ") at comm.c:3364
#2 0x0044d88f in game_loop_unix (control=4, wwwcontrol=5) at comm.c:909
#3 0x0044d118 in main (argc=1, argv=0x100213a8) at comm.c:472
The error occurs after motd is loaded (the welcome screen for mortals). It originally had to do with a dark room check, so i commented out hte entire function to see if it was that. Now it seems to point to ch->in_room variable as the error.
As for the character, on creation its allocated new_char() so it shouldnt be that type of memory error. If you have any ideas, please post.