Recent command

  • JTP
  • Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
More
3 months 2 weeks ago #8343 by JTP
Recent command was created by JTP
Often the part with the site name is cut off so i cant see it all in the recent command.

Where could i chance the code to allow recent to show more ?
Attachments:

Please Log in or Create an account to join the conversation.

  • JTP
  • Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
More
3 months 2 weeks ago #8344 by JTP
Replied by JTP on topic Recent command
As the screen shot shows..one site ends with .c another .n

The Line is not long enough or something

Please Log in or Create an account to join the conversation.

  • JTP
  • Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
More
3 months 5 days ago #8348 by JTP
Replied by JTP on topic Recent command
Anyone ?

Please Log in or Create an account to join the conversation.

More
3 months 5 days ago #8349 by thomas
Replied by thomas on topic Recent command
In github.com/tbamud/tbamud/blob/master/src/act.wizard.c#L5033 :
        if (this->new_player == TRUE) {
          send_to_char(ch, "%3d | %-24.24s | %s%-32s%s | %s %s(New Player)%s\r\n", this->vnum, timestr, loc ? QRED : "", this->host, QNRM, this->name, QYEL, QNRM);
        } else if (this->copyover_player == TRUE) {
          send_to_char(ch, "%3d | %-24.24s | %s%-32s%s | %s %s(Copyover)%s\r\n", this->vnum, timestr, loc ? QRED : "", this->host, QNRM, this->name, QCYN, QNRM);
        } else {
          send_to_char(ch, "%3d | %-24.24s | %s%-32s%s | %s\r\n", this->vnum, timestr, loc ? QRED : "", this->host, QNRM, this->name);
        }
      }
      else
      {
        if (this->new_player == TRUE) {
          send_to_char(ch, "%3d | %-24.24s | %s %s(New Player)%s\r\n", this->vnum, timestr, this->name, QYEL, QNRM);
        } else if (this->copyover_player == TRUE) {
          send_to_char(ch, "%3d | %-24.24s | %s %s(Copyover)%s\r\n", this->vnum, timestr, this->name, QCYN, QNRM);
        } else {
          send_to_char(ch, "%3d | %-24.24s | %s\r\n", this->vnum, timestr, this->name);
        }
      }
change all the 32's to 34. :)
The following user(s) said Thank You: JTP

Please Log in or Create an account to join the conversation.

  • JTP
  • Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
More
3 months 5 days ago #8351 by JTP
Replied by JTP on topic Recent command
Hmm mine Said this

send_to_char(ch, "%3d | %-19.19s | %s%-37s%s | %s %s(New Player)%s\r\
else if (this->copyover_player == TRUE) {
send_to_char(ch, "%3d | %-19.19s | %s%-37s%s | %s %s(Copyover)%s\r\n"
else {
send_to_char(ch, "%3d | %-19.19s | %s%-37s%s | %s\r\n", this->vnum, t

Please Log in or Create an account to join the conversation.

More
3 months 5 days ago #8352 by thomas
Replied by thomas on topic Recent command
Ok, try tweaking the numbers until you have something that fits you :)

Please Log in or Create an account to join the conversation.

  • JTP
  • Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
More
3 months 5 days ago #8353 by JTP
Replied by JTP on topic Recent command
Aparently my version was born with these values.

What is the difference between your version -24.24 and the value my version has -19.19 ?

Please Log in or Create an account to join the conversation.

More
3 months 5 days ago #8354 by thomas
Replied by thomas on topic Recent command
those numbers tell how wide a field is supposed to be shown.
en.wikipedia.org/wiki/Printf_format_string

Basically, just play with them to find out what they do.

Please Log in or Create an account to join the conversation.

Time to create page: 1.316 seconds