Login
User Name:

Password:



Register

Forgot your password?
void nanny_get_new_race -- comm.c
Mar 13, 2025 7:08 am
By Elwood
IPv6
Jan 25, 2025 10:45 pm
By Samson
mudstrlcpy and mudstrlcat
Jan 18, 2025 5:23 pm
By Samson
I3 and IMC
Jan 17, 2025 9:35 pm
By Samson
AFKMud 2.5.1
Jan 17, 2025 2:22 pm
By Samson
SWFotEFUSS 1.5.3
Author: Various
Submitted by: Samson
SWRFUSS 1.4.3
Author: Various
Submitted by: Samson
SmaugFUSS 1.9.8
Author: Various
Submitted by: Samson
AFKMud 2.5.2
Author: AFKMud Team
Submitted by: Samson
SmaugFUSS 1.9.7
Author: Various
Submitted by: Samson
Users Online
Anthropic, Bing, Sogou, Majestic-12, Google

Members: 0
Guests: 9
Stats
Files
Topics
Posts
Members
Newest Member
507
3,812
19,723
594
Bardecome

» SmaugMuds » Codebases » SmaugFUSS » mapout crashes
Forum Rules | Mark all | Recent Posts

mapout crashes
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Jan 4, 2025 12:39 pm   
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,992
JoinedJul 26, 2005

 
Program received signal SIGSEGV, Segmentation fault.
num_rooms_avail (ch=0x5180000d8080) at mapout.c:412
412        for( i = ch->pcdata->area->low_r_vnum; i <= ch->pcdata->area->hi_r_vnum; i++ )
(gdb) print ch
$1 = (CHAR_DATA *) 0x5180000d8080
(gdb) print ch->pcdata
$2 = (PC_DATA *) 0x51b00000ee80
(gdb) print ch->pcdata->area
$3 = (AREA_DATA *) 0x0

Naturally not a big deal comes from not having an area assigned and using mapout write and then mapout stat.

Post is unread #2 Jan 4, 2025 12:43 pm   
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,992
JoinedJul 26, 2005

 
<49hp 145m 110mv> <#200> mapout create
Couldn't give you a map object.  Need Great Eastern Desert

Might want to toss in a map object for it too.

Post is unread #3 Jan 4, 2025 1:43 pm   
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,992
JoinedJul 26, 2005

 
in mapout.c around line 499 find
      switch ( c )
      {
         case '\n':
            break;
         case '\r':
            col = 0;
            row++;
            break;
      }

change it to
      switch ( c )
      {
         case '\n':
            row++;
            col = 0;
            break;

         case '\r':
            col = 0;
            row++;
            break;
      }


This will allow it to create and link the rooms correctly.
Mapout code supports sectors that map_exits doesn't like and gives bug messages about.

Post is unread #4 Jan 4, 2025 3:02 pm   
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,707
JoinedJan 1, 2002

 
The code is also missing support for SECT_ICE, which was added at some point during development.

In mapout.c, find:

         else if( code == 'L' )
            location->sector_type = SECT_LAVA;
         else if( code == 'W' )
            location->sector_type = SECT_SWAMP;


Below that, add:

         else if( code == 'i' )
            location->sector_type = SECT_ICE;


Lowercase "i" should work well enough here since uppercase "I" is already taken.

Pages:<< prev 1 next >>