A problem with remort and color support.

Posted by EmperorForce on Thu 25 May 2006 03:41 AM — 5 posts, 15,742 views.

#0
Hello all, I'm new here and to coding. I've had exposure to C programming and MUDs through a friend a while back and decided to give it a try. I'm trying to run the current version of SmaugFUSS and so far I've had success, but now I've run into a really wierd problem.

I installed the remort snippet correctly and it compiled beautifully, no errors or warnings, but there's a problem. When somebody is remorting and they have any kind of color support, all the colored text except for flags such as (IMMORTAL) and thier prompt, goes black. It stays that way until they remort again, then everything comes back. I'm not really sure what the problem is, I've tried using gdb and nothing comes up. I've tried looking at things, and nothing seems to stand out as wrong. Just wondering if anybody has any idea of what's going on or if anybody has run into this problem before.

Thanks.
USA #1
Sounds like their theme or all colors are being set to black? What exactly does remort change in the pfile? Try typing:
color _reset_
#2
Hey! Awesome man, that fixed it. Just need to add it to the help file I suppose, until I get clever enough to make it do it on it's own.

Thanks man!
USA #3
You could always add in something like:
do_color( CharacterThatJustRemorted, "_reset_" );
You'd put that right after the remorting code, and that would automatically run the color reset command. You might have to change do_color to whatever the code's function for "color" is.
USA #4
Make sure you do fix the problem though, as of people don't want their custom colors reset when they remort. ;)