KEY'd Area Format
< Newer Topic
:: Older Topic >
Pages:<< prev 1 next >>
#1 Nov 12, 2013 10:46 pm
Fledgling
GroupMembers
Posts18
JoinedAug 11, 2008
Is there a snippet around to install this? I am finding it difficult to convert the SWR/SWFotE stuff back to using C instead of C++, once I got everything to compile, I am getting a crash after I added the area loading part of the code in. I did the saving part first, hotbooted, saved the areas and everything worked, but now with the area loading stuff in, after a hotboot it crashed and the GDB is telling me this:
I have no idea what the tarea= means. Thanks.
(gdb) bt #0 fread_fuss_mobile (fp=0x2480ff0, tarea=) at db.c:6993 #1 0x00000000004cc30c in fread_fuss_area (tarea=0x24f3e90, fp=0x2480ff0) at db.c:7654 #2 0x00000000004cd12d in load_area_file (tarea=0x0, filename=0x8ec1e0 "limbo.are") at db.c:7703 #3 0x00000000004d0126 in boot_db (fCopyOver=0 '\000') at db.c:901 #4 0x00000000004bc0de in main (argc=1118224272, argv=0x7fff42a6bf88) at comm.c:270
(gdb) list 6988 { 6989 char *actflags = NULL; 6990 6991 actflags = fread_flagstring( fp ); 6992 6993 while( actflags[0] != '\0' ) 6994 { 6995 actflags = one_argument( actflags, flag ); 6996 value = get_actflag( flag ); 6997 if( value < 0 || value > 31 )
I have no idea what the tarea=
#2 Nov 13, 2013 2:36 pm
Geomancer
GroupAdministrators
Posts1,946
JoinedJul 26, 2005
id say above
add in an
maybe toss in a bug message etc... You could check limbo.are for the actflags too. Id suggest looking at db.c 7654 and make sure it is sending the correct info for tarea to fread_fuss_mobile as well.
6993 while( actflags[0] != '\0' )
add in an
if( actflags == NULL ) break;
maybe toss in a bug message etc... You could check limbo.are for the actflags too. Id suggest looking at db.c 7654 and make sure it is sending the correct info for tarea to fread_fuss_mobile as well.
#3 Nov 14, 2013 9:27 am
Fledgling
GroupMembers
Posts18
JoinedAug 11, 2008
I ended up figuring it out. When I tried compiling the code using the stock copy and paste of the C++ version of that code, it gave me errors about the one_argument expecting a const char instead of a char *, so not thinking, I just changed how one_argument worked compared to SWR 1.3 FUSS one_argument code. It was what was causing the error. So I reverted back and removed the const char stuff out of that function and all was well. I think I am going to put together a snippet on how to added KEY'd area formats into an older version of SWR before the C++ changes. Thanks for the response Remcon.
Pages:<< prev 1 next >>