Login
User Name:

Password:



Register

Forgot your password?
Hi - Clean SmaugFuss map/description issue..
Dec 15, 2024 7:29 pm
By Samson
AFKMud 2.2.4
Dec 10, 2024 4:09 pm
By Samson
I3 and IMC
Dec 8, 2024 6:35 pm
By Remcon
Ubuntu 22.04.5 LTS
Dec 5, 2024 5:10 pm
By Remcon
SmaugFUSS 1.8/1.9
Nov 29, 2024 11:46 am
By Remcon
SWFOTEFUSS 1.5.1
Author: Various
Submitted by: Samson
SWRFUSS 1.4.1
Author: Various
Submitted by: Samson
SmaugFUSS 1.9.5
Author: Various
Submitted by: Samson
AFKMud 2.2.4
Author: AFKMud Team
Submitted by: Samson
LOP 1.5
Author: Remcon
Submitted by: Remcon
Users Online
AhrefsBot, Bing, Google

Members: 0
Guests: 34
Stats
Files
Topics
Posts
Members
Newest Member
494
3,808
19,707
588
Mortrex

Today's Birthdays
There are no member birthdays today.
» SmaugMuds » 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 10:46 pm   
Go to the top of the page
Go to the bottom of the page

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

(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= means. Thanks.

Post is unread #2 Nov 13, 2013 2:36 pm   
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,946
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 9:27 am   
Go to the top of the page
Go to the bottom of the page

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