24 Jan, 2008, Rojan QDel wrote in the 1st comment:
Votes: 0
Has anyone had or managed to fix the issue that with color 3.0, character creation is monochrome?
24 Jan, 2008, Rojan QDel wrote in the 2nd comment:
Votes: 0
And if you type &&& twice it crashes…
24 Jan, 2008, Guest wrote in the 3rd comment:
Votes: 0
Interesting on the crash. Happen to have a core dump of that?

As far as the monochrome chargen, I have vague memories of having fixed something like that at one point but I'll have to look. The snippet may just need a quick update.
24 Jan, 2008, Rojan QDel wrote in the 4th comment:
Votes: 0
Strange, I can't duplicate the crash…
24 Jan, 2008, Rojan QDel wrote in the 5th comment:
Votes: 0
Here's one error, I was sitting idle when it happened but here's the info:
Its not obviously a color bug but it also wasn't happening before I installed the snippet
This error came in the log file, not gdb:
*** glibc detected *** corrupted double-linked list: 0x0a785f78 ***

BacktracE:
#0 0x4b8ba7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1 0x4b900815 in raise () from /lib/tls/libc.so.6
#2 0x4b902279 in abort () from /lib/tls/libc.so.6
#3 0x4b934cca in __libc_message () from /lib/tls/libc.so.6
#4 0x4b93adb4 in malloc_consolidate () from /lib/tls/libc.so.6
#5 0x4b93bc20 in _int_malloc () from /lib/tls/libc.so.6
#6 0x4b93d796 in calloc () from /lib/tls/libc.so.6
#7 0x0814ed30 in create_mobile (pMobIndex=0x98045d8) at db.c:3027
#8 0x081d3453 in do_mpmload (ch=0xa4e4680, argument=0xbfee94b8 "5386") at mud_comm.c:627
#9 0x081a6911 in interpret (ch=0xa4e4680, argument=0xbfee94b8 "5386", is_order=false) at interp.c:604
#10 0x081e02f8 in mprog_do_command (cmnd=0x83eeea0 "mpmload 5386", mob=0xa4e4680, actor=0xa4fd6f0, obj=0x0, vo=0x0, rndm=0x0, ignore=false,
ignore_ors=false) at mud_prog.c:2335
#11 0x081df5cc in mprog_driver (com_list=0x9802a28 "mpmload 5386\n\rmpforce hg mpoload 2806\n\rmpforce hg drop lens\n\rmppurge hg\n\rmpforce $n look\n\r",
mob=0xa4e4680, actor=0xa4fd6f0, obj=0x0, vo=0x0, single_step=false) at mud_prog.c:1884
#12 0x081e20d9 in mprog_percent_check (mob=0xa4e4680, actor=0xa4fd6f0, obj=0x0, vo=0x0, type=16) at mud_prog.c:2980
#13 0x081e2673 in mprog_death_trigger (killer=0xa4fd6f0, mob=0xa4e4680) at mud_prog.c:3138
#14 0x08172b04 in raw_kill (ch=0xa4fd6f0, victim=0xa4e4680) at fight.c:3618
#15 0x08170934 in damage (ch=0xa4fd6f0, victim=0xa4e4680, dam=20, dt=1000) at fight.c:2834
#16 0x0816e19c in one_hit (ch=0xa4fd6f0, victim=0xa4e4680, dt=1000) at fight.c:2030
#17 0x0816a270 in multi_hit (ch=0xa4fd6f0, victim=0xa4e4680, dt=-1) at fight.c:700
#18 0x0816932f in violence_update () at fight.c:417
#19 0x082bb757 in update_handler () at update.c:3812
#20 0x0812f023 in game_loop () at comm.c:896
#21 0x0812de69 in main (argc=2, argv=0xbfef8bb4) at comm.c:351
24 Jan, 2008, Guest wrote in the 6th comment:
Votes: 0
If you should happen to get that core dump again, could you look deeper into frames 7 and 8? I'm not seeing anything there that jumps out as being color related.
24 Jan, 2008, Rojan QDel wrote in the 7th comment:
Votes: 0
Neither am I, and its possible it isn't. It doesn't look like it, but it also didn't pop up until color was installed. More importantly, any information on the monochrome char creation?
26 Feb, 2008, Konalan wrote in the 8th comment:
Votes: 0
I'm having an issue with this snippet as well. I successfully installed it and it works great except for the color command. When I try to use it , I get the following:

<25000hp 25000m 25000mv> <#1200> cedit color create do_color
Log: Konalan: cedit color create do_color
Command added.

<25000hp 25000m 25000mv> <#1200> color
Connection closed by foreign host.
Segmentation fault (core dumped)


Any ideas on how to fix this?

EDIT: Just to note, I'm using SMAUG 1.4a since it's easier to add snippets to than newer versions of SMAUGFUSS.
26 Feb, 2008, David Haley wrote in the 9th comment:
Votes: 0
You would need to provide the gdb output so we can see what is going wrong where. For help on running gdb, I suggest:

- the article on MudBytes
or
- Nick Gammon's tutorial
26 Feb, 2008, Konalan wrote in the 10th comment:
Votes: 0
Grr. Having trouble finding my core file. While I search around, here's some more info that might help.

When I use the color command without arguements, I get the segmentation fault. With arguements I get:
<25000hp 25000m 25000mv> <#21000> color red default
Display red set back to default.

<25000hp 25000m 25000mv> <#21000> color color
Choices are:
black dred dgreen orange dblue
purple cyan grey dgrey red
green yellow blue pink lblue
white default
Invalid color for type color.

<25000hp 25000m 25000mv> <#21000> color default default
default is an invalid color type.
Type color with no arguments to see available options.

<25000hp 25000m 25000mv> <#21000>
26 Feb, 2008, David Haley wrote in the 11th comment:
Votes: 0
You don't need to use a core file; you can also run the code in gdb directly. For instance,
gdb ../src/smaug
(gdb stuff here)
prompt> run
(game starts)
26 Feb, 2008, Konalan wrote in the 12th comment:
Votes: 0
Ok got gdb working and here's what I got:
Tue Feb 26 17:39:36 2008 :: Booting Database
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Tue Feb 26 17:39:36 2008 :: [*****] BOOT: ———————[ Boot Log ]——————–
Tue Feb 26 17:39:36 2008 :: Loading commands
Tue Feb 26 17:39:36 2008 :: Loading sysdata configuration…
Tue Feb 26 17:39:36 2008 :: Loading socials
Tue Feb 26 17:39:36 2008 :: Loading skill table
Tue Feb 26 17:39:36 2008 :: Sorting skill table…
Tue Feb 26 17:39:36 2008 :: Remapping slots to sns
Tue Feb 26 17:39:36 2008 :: Loading classes
Tue Feb 26 17:39:36 2008 :: Loading races
Tue Feb 26 17:39:36 2008 :: Loading herb table
Tue Feb 26 17:39:36 2008 :: Loading tongues
Tue Feb 26 17:39:36 2008 :: Making wizlist
Tue Feb 26 17:39:36 2008 :: Initializing request pipe
Tue Feb 26 17:39:36 2008 :: Initializing random number generator
Tue Feb 26 17:39:36 2008 :: Setting time and weather
Tue Feb 26 17:39:36 2008 :: Assigning gsn's
Tue Feb 26 17:39:36 2008 :: Reading in area files…
(help.are)
(imc-help.are)
(ice-help.are)
gods.are : Rooms: 1200 - 1201 Objs: 1200 - 1200 Mobs: 1200 - 1200
limbo.are : Rooms: 1 - 43 Objs: 2 - 99 Mobs: 1 - 99
newacad.are : Rooms: 10300 - 10499 Objs: 10300 - 10499 Mobs: 10300 - 10499
newgate.are : Rooms: 100 - 199 Objs: 100 - 199 Mobs: 100 - 199
newdark.are : Rooms: 21000 - 21499 Objs: 21000 - 21435 Mobs: 21000 - 21499
haon.are : Rooms: 6000 - 6156 Objs: 6000 - 6155 Mobs: 6000 - 6117
midennir.are : Rooms: 3500 - 3590 Objs: 3500 - 3550 Mobs: 3500 - 3550
sewer.are : Rooms: 7001 - 7445 Objs: 7190 - 7310 Mobs: 7000 - 7206
redferne.are : Rooms: 7900 - 7918 Objs: 7909 - 7911 Mobs: 7900 - 7900
grove.are : Rooms: 8901 - 8999 Objs: 8900 - 8919 Mobs: 8900 - 8911
dwarven.are : Rooms: 6500 - 6554 Objs: 6502 - 6519 Mobs: 6500 - 6517
daycare.are : Rooms: 6601 - 6651 Objs: 6600 - 6647 Mobs: 6600 - 6610
grave.are : Rooms: 3600 - 3651 Objs: 3600 - 3613 Mobs: 3600 - 3605
chapel.are : Rooms: 3405 - 3475 Objs: 3400 - 3430 Mobs: 3400 - 3416
astral.are : Rooms: 800 - 899 Objs: 800 - 899 Mobs: 800 - 899
Build.are : Rooms: 9500 - 9589 Objs: 0 - 0 Mobs: 0 - 0
pixie.are : Rooms: 2070 - 2099 Objs: 2070 - 2076 Mobs: 2070 - 2073
export.are : Rooms: 9810 - 9899 Objs: 9810 - 9899 Mobs: 9800 - 9899
srefuge.are : Rooms: 1500 - 1599 Objs: 1500 - 1599 Mobs: 1500 - 1599
manor.are : Rooms: 2400 - 2499 Objs: 2400 - 2499 Mobs: 2405 - 2484
unholy.are : Rooms: 2101 - 2172 Objs: 2101 - 2150 Mobs: 2101 - 2120
gallery.are : Rooms: 24800 - 24899 Objs: 24800 - 24899 Mobs: 24800 - 24899
Tue Feb 26 17:39:36 2008 :: Fixing exits
Tue Feb 26 17:39:36 2008 :: Initializing economy
Tue Feb 26 17:39:36 2008 :: Resetting areas
Resetting: gods.are
Resetting: limbo.are
Resetting: newacad.are
Resetting: newgate.are
Resetting: newdark.are
Resetting: haon.are
Resetting: midennir.are
Resetting: sewer.are
Resetting: redferne.are
Resetting: grove.are
Resetting: dwarven.are
Resetting: daycare.are
Resetting: grave.are
Resetting: chapel.are
Resetting: astral.are
Resetting: Build.are
Resetting: pixie.are
Resetting: export.are
Resetting: srefuge.are
Resetting: manor.are
Resetting: unholy.are
Resetting: gallery.are
Tue Feb 26 17:39:36 2008 :: Loading buildlist
Tue Feb 26 17:39:36 2008 :: ../gods/Konalan
Tue Feb 26 17:39:36 2008 :: Loading boards
Tue Feb 26 17:39:36 2008 :: ../boards/immortal.brd
Tue Feb 26 17:39:36 2008 :: ../boards/highgod.brd
Tue Feb 26 17:39:36 2008 :: Loading clans
Tue Feb 26 17:39:36 2008 :: Loading clans…
Tue Feb 26 17:39:36 2008 :: vampire.gui
Tue Feb 26 17:39:36 2008 :: Cannot open clan vault
Tue Feb 26 17:39:36 2008 :: druid.gui
Tue Feb 26 17:39:36 2008 :: Cannot open clan vault
Tue Feb 26 17:39:36 2008 :: warrior.gui
Tue Feb 26 17:39:36 2008 :: Cannot open clan vault
Tue Feb 26 17:39:36 2008 :: augurer.gui
Tue Feb 26 17:39:36 2008 :: Cannot open clan vault
Tue Feb 26 17:39:36 2008 :: thief.gui
Tue Feb 26 17:39:36 2008 :: Cannot open clan vault
Tue Feb 26 17:39:36 2008 :: cleric.gui
Tue Feb 26 17:39:36 2008 :: Cannot open clan vault
Tue Feb 26 17:39:36 2008 :: mage.gui
Tue Feb 26 17:39:36 2008 :: Cannot open clan vault
Tue Feb 26 17:39:36 2008 :: ranger.gui
Tue Feb 26 17:39:36 2008 :: Cannot open clan vault
Tue Feb 26 17:39:36 2008 :: $
Tue Feb 26 17:39:36 2008 :: Done clans
Tue Feb 26 17:39:36 2008 :: Loading councils
Tue Feb 26 17:39:36 2008 :: Loading deities…
Tue Feb 26 17:39:36 2008 :: test.dty
Tue Feb 26 17:39:36 2008 :: $
Tue Feb 26 17:39:36 2008 :: Done deities
Tue Feb 26 17:39:36 2008 :: Loading deities
Tue Feb 26 17:39:36 2008 :: Loading councils…
Tue Feb 26 17:39:36 2008 :: $
Tue Feb 26 17:39:36 2008 :: Done councils
Tue Feb 26 17:39:36 2008 :: Loading watches
Tue Feb 26 17:39:36 2008 :: Loading bans
Tue Feb 26 17:39:36 2008 :: Done.
Tue Feb 26 17:39:36 2008 :: Loading reserved names
Tue Feb 26 17:39:36 2008 :: Loading corpses
Tue Feb 26 17:39:36 2008 :: Loading Immortal Hosts
Tue Feb 26 17:39:36 2008 :: Done.
Tue Feb 26 17:39:36 2008 :: Loading Projects
Tue Feb 26 17:39:36 2008 :: Loading Morphs
Tue Feb 26 17:39:36 2008 :: Optimizing Morphs.
Tue Feb 26 17:39:36 2008 :: Done.
Tue Feb 26 17:39:36 2008 :: Initializing socket
Tue Feb 26 17:39:36 2008 :: Sundered Realms
Highplayers 2
Highplayertime Mon Feb 25 22:24:28 2008 ready at address sean-laptop on port 4000.
Resetting: newacad.are
Resetting: pixie.are
Tue Feb 26 17:42:12 2008 :: Sock.sinaddr: 127.0.0.1, port -7200.
Tue Feb 26 17:42:18 2008 :: Preloading player data for: Konalan (0K)
Tue Feb 26 17:42:20 2008 :: Loading player data for: Konalan (0K)
Tue Feb 26 17:42:20 2008 :: Konalan@127.0.0.1((pipe breaking)) has connected.
Resetting: newacad.are
Resetting: daycare.are

Program received signal SIGSEGV, Segmentation fault.
0x00002ad5ce7c5070 in readdir64 () from /lib/libc.so.6
(gdb)
26 Feb, 2008, David Haley wrote in the 13th comment:
Votes: 0
OK. For starters I'm a little worried about this line:
Tue Feb 26 17:42:20 2008 :: [email]Konalan@127.0.0.1[/email]((pipe breaking)) has connected.

I'm not sure what that "pipe breaking" is supposed to mean, but typically broken pipes are bad.

As for the crash, you'd need to also give a backtrace so we can see where that is happening; it would also help if you stepped up the stack to the point where it reaches your MUD's code, and show us what's going on there (e.g. print out the name of the file it's trying to read).
27 Feb, 2008, Guest wrote in the 14th comment:
Votes: 0
The broken pipe is nothing to be worried about. It's useless identd protocol code in the older Smaug bases that hasn't been ripped out. It's one of the very first things FUSS did before there was even a FUSS site separate from mudplanet :P

As for the crash, a backtrace would help.
27 Feb, 2008, Konalan wrote in the 15th comment:
Votes: 0
After backtracing:
Program received signal SIGSEGV, Segmentation fault.
0x00002b72d8db7070 in readdir64 () from /lib/libc.so.6
(gdb) bt
#0 0x00002b72d8db7070 in readdir64 () from /lib/libc.so.6
#1 0x00000000004fbb65 in show_colorthemes (ch=0xc0ce30) at color.c:414
#2 0x00000000004fbe7f in show_colors (ch=0xc0ce30) at color.c:481
#3 0x00000000004fbeef in do_color (ch=0x0,
argument=0x1 <Address 0x1 out of bounds>) at color.c:502
#4 0x000000000048caed in interpret (ch=0xc0ce30,
argument=<value optimized out>) at interp.c:738
#5 0x000000000045e328 in game_loop () at comm.c:661
#6 0x000000000045ebde in main (argc=1, argv=0x7fffd21d7898) at comm.c:307
(gdb)
27 Feb, 2008, David Haley wrote in the 16th comment:
Votes: 0
So, something is going wrong in show_colors and show_colorthemes. You should go to those frames ("up" goes up one frame, e.g. from 0 to 1) and show us what the lines of code in question are (type "list"). You should also tell us the values of relevant variables (to print the value of "i", type "print i").
28 Feb, 2008, Rojan QDel wrote in the 17th comment:
Votes: 0
Unrelated to Konalan's issue, I'm still unable to see colors on character creation. The strangest part is, it shows it for one message and then for the rest it's completely black yet both are using send_to_desc_color.
28 Feb, 2008, Guest wrote in the 18th comment:
Votes: 0
Konalan said:
After backtracing:
Program received signal SIGSEGV, Segmentation fault.
0x00002b72d8db7070 in readdir64 () from /lib/libc.so.6
(gdb) bt
#0 0x00002b72d8db7070 in readdir64 () from /lib/libc.so.6
#1 0x00000000004fbb65 in show_colorthemes (ch=0xc0ce30) at color.c:414
#2 0x00000000004fbe7f in show_colors (ch=0xc0ce30) at color.c:481
#3 0x00000000004fbeef in do_color (ch=0x0,
argument=0x1 <Address 0x1 out of bounds>) at color.c:502
#4 0x000000000048caed in interpret (ch=0xc0ce30,
argument=<value optimized out>) at interp.c:738
#5 0x000000000045e328 in game_loop () at comm.c:661
#6 0x000000000045ebde in main (argc=1, argv=0x7fffd21d7898) at comm.c:307
(gdb)


That looks like you may be missing the color directory where the theme files are stored. Even if you don't use the themes the files need to be in that directory, or that command will fail.
28 Feb, 2008, Konalan wrote in the 19th comment:
Votes: 0
I just had one of those "duh" moments. I created a color folder in my dist directory and everything works great. Excuse me while I bang my head against the wall.
28 Feb, 2008, Kayle wrote in the 20th comment:
Votes: 0
Rojan QDel said:
Unrelated to Konalan's issue, I'm still unable to see colors on character creation. The strangest part is, it shows it for one message and then for the rest it's completely black yet both are using send_to_desc_color.


You need to have call reset_color at some point, probably just before the colors go all black, An example from my own code:

d->connected = CON_GET_NAME;
d->character->desc = NULL;
free_char( d->character ); /* Big Memory Leak before –Shaddai */
d->character = NULL;
return;
}
xSET_BIT( ch->act, PLR_ANSI );
reset_colors( ch );
sprintf( buf, "&GThe


I use color in my own character creation, I tried to keep the obnoxiousness of it all to a minimum though.
0.0/24