User Name:


Forgot your password?
Vote for Us!
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
Bug in will_fall( )
Oct 23, 2017, 1:35 am
By GatewaySysop
Bug in do_zap( ), do_brandish( )
Oct 18, 2017, 1:52 pm
By GatewaySysop
Bug in get_exp_worth( )
Oct 10, 2017, 1:26 am
By GatewaySysop
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Author: Johan Lindh
Submitted by: Vladaar
Users Online
CommonCrawl, Yahoo!, Yandex, Google, Bing, Sogou

Members: 0
Guests: 10
Newest Member
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » SWR FUSS » KEY'd Area Format
Forum Rules | Mark all | Recent Posts

KEY'd Area Format
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Nov 12, 2013, 8:46 pm
Go to the top of the page
Go to the bottom of the page

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:

(gdb) bt
#0  fread_fuss_mobile (fp=0x2480ff0, tarea=<value optimized out>;) 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;
6991                   actflags = fread_flagstring( fp );
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=<value optimized out> means. Thanks.
Post is unread #2 Nov 13, 2013, 12:36 pm
Go to the top of the page
Go to the bottom of the page

JoinedJul 26, 2005

id say above
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.
Post is unread #3 Nov 14, 2013, 7:27 am
Go to the top of the page
Go to the bottom of the page

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 >>