Please Log in or Create an account to join the conversation.
zusuk wrote: Hello folks, a note of reference, I'm running tba codebase 3.63 (before any of the revisions currently in the SVN) so this is probably an issue already addressed by revisions, but I'm not sure where to look for those changes.
Here's the deal: I added a toggle as requested by a builder to add the room name they are currently standing in to the prompt. The issue I'm having is if there is color codes in the room title, the prompt is not displaying the color correctly. Ex:
Instead of displaying "A Floating Bog" in dark gray, it is showing this:
DA Floating Bog [13100]
Here is my code in make_prompt in comm.c
Code:if (PRF_FLAGGED(d->character, PRF_DISPROOM) && len < sizeof(prompt)) { count = snprintf(prompt + len, sizeof(prompt) - len, "%s%s ", world[IN_ROOM(ch)].name, CCNRM(d->character,C_NRM)); if (count >= 0) len += count; if (!IS_NPC(ch) && PRF_FLAGGED(ch, PRF_SHOWVNUMS)) { count = snprintf(prompt + len, sizeof(prompt) - len, "[%5d]%s ", GET_ROOM_VNUM(IN_ROOM(ch)), CCNRM(ch, C_NRM)); if (count >= 0) len += count; } }
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
zusuk wrote: Hmmm, OK... do you know which files I should diff (upgrade)?
-Zusuk
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
zusuk wrote: Hey Liko, are you running the most recent revision of 3.63 via the SVN or are you running from that stock code link you gave me?
I'm running 3.63, but without any of the 300+ revisions they've made to it
-Zusuk
Please Log in or Create an account to join the conversation.
tbaMUD © 2024