Login
User Name:

Password:



Register

Forgot your password?
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
Array out of bounds ?
Jan 16, 2025 4:48 am
By Remcon
SmaugFUSS 1.9.7
Author: Various
Submitted by: Samson
AFKMud 2.5.1
Author: AFKMud Team
Submitted by: Samson
Kayle's Weather Code for AFKMud
Author: Kayle
Submitted by: Samson
AFKMud 2.5.0
Author: AFKMud Team
Submitted by: Samson
SWFotEFUSS 1.5.2
Author: Various
Submitted by: Samson
Users Online
Anthropic, AhrefsBot, Bing, GPTBot

Members: 0
Guests: 10
Stats
Files
Topics
Posts
Members
Newest Member
503
3,811
19,714
589
xhuul

» 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,706
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 >>