Author Topic: Chat's engine should respect the marks of the new lines  (Read 1047 times)

filux

  • MegaGlest Team
  • Draco Rider
  • ********
  • Posts: 310
  • was OpenSuse x64, is Debian testing x64
    • View Profile
I think that it would be nice if the chat's engine in the lobby can respect the marks of the new line received from e.g. MGBot.

e.g.


should looks like this:
Code: [Select]
MGBot 'v3.8-dev|Windows-Rev: 4347|Jun  1 2013 09:58:52|carolinuss game|89.73.213.157|prax0.5.4|cliffway|desert2|1|1|1|61357|??|2|
v3.7.1|Linux-X64-Rev: 3948|Nov 23 2012 00:29:10|wassim cvs game|124.109.2.127|megapack|conflict|desert2|2|2|2|61357|TH|2|'


...and more preferably with an automatic word wrapping of long lines, like this:
Code: [Select]
MGBot 'v3.8-dev|Windows-Rev: 4347|Jun  1 2013 09:58:52|carolinuss game|
89.73.213.157|prax0.5.4|cliffway|desert2|1|1|1|61357|??|2|
v3.7.1|Linux-X64-Rev: 3948|Nov 23 2012 00:29:10|wassim cvs game|
124.109.2.127|megapack|conflict|desert2|2|2|2|61357|TH|2|'


tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: Chat's engine should respect the marks of the new lines
« Reply #1 on: 1 June 2013, 17:06:29 »
Try the !server command with an IRC client, you'll get to see \n there, too. This is not a shortcoming in the game engine but in the output formatting generated by MGBot. But then, this command is hardly useful anyways, since when you're in the game the server list is already displayed on top.

Edit (tomreyn, 2013-06-02): s/comment/command/
« Last Edit: 2 June 2013, 01:59:23 by tomreyn »
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

filux

  • MegaGlest Team
  • Draco Rider
  • ********
  • Posts: 310
  • was OpenSuse x64, is Debian testing x64
    • View Profile
Re: Chat's engine should respect the marks of the new lines
« Reply #2 on: 1 June 2013, 17:37:38 »
If I thought, that is a game shortcoming then this post was would in the bugs forum. :)
It was an example. I believe that support for marks will find more uses in the future.

The command itself is sometimes helpful in the game too, to assess how many players currently playing. ;)