User Name:


Forgot your password?
Vote for Us!
Nov 28, 2018, 10:10 am
By Keirath
First Immortal
Oct 12, 2018, 12:02 pm
By GatewaySysop
Bug in do_climb( )
Jun 5, 2018, 5:31 pm
By joeyfogas
question on overland code
May 31, 2018, 10:03 am
By joeyfogas
KaVir's Protocol Snip
May 15, 2018, 7:57 pm
By joeyfogas
tintin++ ogg sound player script for linux
Author: Robert Smith
Submitted by: Vladaar
6Dragons ogg Soundpack
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.4
Author: Vladaar
Submitted by: Vladaar
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
Users Online
CommonCrawl, Bing, DotBot

Members: 0
Guests: 22
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 >>