ok, so i downloaded a snippet for removing the "do you want color? y/n" prompt from the greeting screen and i was having difficulty with it because it tells me to add some things that are already there, tells me to install some things in functions that don't exist etc. i'm sure this was a snippet written for stock rom 2.4b6 but i'm trying to get it to work with keggermud, a quickmud derivative. if anybody can help me i'd very much appreciate it. i can't really provide any answers as to what errors and problems i ran across because it's been about 3 weeks since i messed with this but have forgotten to ask for help every day till now. if this is something that requires more info than i'm able to provide at the moment, i'll post later tonight all the problems i find when i try to install it again.
[edit to add] for anybody interested in trying to help, you can download keggermud from here and i put the autocolor snippet in the pastebin
I'm not really sure what exactly you want - are you asking for someone to perform the install of the snippet for you? If not, I suggest you post the specific questions/problems you are trying to figure out.
Ok, from your post and looking at the snippet (I have not looked at the code base yet) It looks like the snippet is to ADD color to the log on. As you (from your post) seem to already have that, it makes sense that you have some similar code already in. If you have a 'do you want color y/n' prompt right at the start you want to get rid of, and that is all, I take it that is the greeting, change that (maybe a help file or hard coded - the snippet implies a help file). Also, at the place it sends the greeting, it will probably set the connected state, maybe something like CON_GET_COLOR (I am guessing here to the name). You will want to change that to the next con state used after the color, maybe CON_GET_NAME. Oh, and by changing the greeting, I mean the text to what you want to show at the start, that might be text sent after that first prompt now, or whatever you want, but if it is going to be expecting a name, make sure you have that question at the end of your new greeting.
no the selection for ansi is done before the greeting which yes that is in a helpfile. the snippet is supposed to remove that prompt for yes or no and just make it automatically have color at the greeting screen.
The way it looks is that THIS snippet is meant as an alternate snippet for a code base with no color in log in that does not use the prompt at the start. Probably a mod of a snippet that does have the prompt. The basic instructions I gave should work, though, with a few more notes. If your code does something before sending the real greeting, it should be in the new_descriptor() function after the descriptor is created, that is where you would send the greeting instead of the prompt and set the correct connect state (I am pretty sure CON_GET_NAME). I will not be able to be sure until I can look at your stock code though.
Opps, forgot a step: You will also want to make sure you set whatever the CON_GET_COLOR (or whatever it is) case in nanny does when it has a yes response (probably like setting dnew->ansi to TRUE or the like). I will be able to give more exact instructions after looking at the base code.
turns out sharmair is correct, i installed the snippet though and the problem i have is it still asks if you want color, i removed the line that actually asks the question but when you log on, it just sits there blank till you hit enter then it asks the question. how can i remove the question all together and make ansi on by default?
The connection state is what tells the code where you are in the log on. If you change the output but still have the state at CON_ANSI (I looked the actual name up in your base code) even though the message you get is changed, it still is expecting the yes/no.
But, after looking at the base code, it turns out the code has an option built in to turn off the prompt. If mud_ansiprompt is FALSE, it looks like it will use code pretty much like I told you to change to. There also seems to be an option for if you start with color on or not, if mud_ansicolor is TRUE, you start with color. It looks like a command called gmconfig is used to change the settings online too. Looks like the options are read from the file /area/qmconfig.rc. Doing a quick look I don't see a save though, so you might have to hand edit the file.