Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.
 Entire forum ➜ MUSHclient ➜ Bug reports ➜ Random newlines in output

Random newlines in output

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Zim   (22 posts)  Bio
Date Tue 10 Feb 2015 11:32 PM (UTC)

Amended on Tue 10 Feb 2015 11:41 PM (UTC) by Zim

Message
My client is inserting random newlines into the output text (among other quirky behaviors that I have mentioned already in the proceeding link). Some of these are invisible (I can tell by copying the output into a text-file) others are not. This is the second time this has happened. The first time I posted here:
http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=12736
I couldn't find any way to fix it. I restarted my computer, the client, removed all my plugins, reinstalled them, disabled my triggers. Nothing did anything to change it. Somehow, a day later I opened up mushclient and everything was back to working normally. Anyways, the issue started again today.I had left the client up and running since last night when it was working just fine. I believe that it might have something to do with mxp variables, but I really don't know.

-------------- MUSHclient summary --------------

MUSHclient version: 4.94
Compiled: Jul 28 2014.
Time now: Tuesday, February 10, 2015, 6:30 PM
Client running for: 0d 00h 00m 48s
World opened for: 0d 00h 00m 36s
World connected for: 0d 00h 00m 35s
Operating system: Unknown (Platform 2, Major 6, Minor 2)
Libraries: Lua 5.1.4, PCRE 8.35, PNG 1.5.14, SQLite3 3.8.4.3, Zlib 1.2.8
World name: 'DISCWORLD', ID: 4a8d6d6f86f1dcb5229c9002
-- Scripting --
Script language: Lua, enabled: yes
Scripting active: yes
Script file: C:\Program Files (x86)\MUSHclient\scripts\exampscript.lua
Lua sandbox is 127 characters, DLL loading allowed: yes
Scripting prefix: '\\'. External editor in use: NO.
Scripting for: 0.025343 seconds.
-- Triggers, aliases, timers, variables --
** Triggers: 78 in world file, triggers enabled: NO. [Triggers]
73 enabled, 78 regexp, 0 attempts, 0 matched, 0.000000 seconds.
** Aliases: 1 in world file, aliases enabled: yes. [Aliases]
1 enabled, 0 regexp, 0 attempts, 0 matched, 0.000000 seconds.
** Timers: 0 in world file, timers enabled: yes.
0 enabled, 0 fired.
Timers checked every 0.1 seconds.
** Variables: 0.
-- MCCP --
MCCP active, took 0.000129 seconds to decompress
MCCP received 1200 compressed bytes, decompressed to 3028 bytes.
MCCP compression ratio was: 39.6% (lower is better)
-- Plugins (Processing order) --
ID: f99134f19ea994a0cc0888d1, 'accelerators', (Lua, 0.004 s) Enabled [Al Va Cb]
ID: bff25308e015986fb1a56e9e, 'Sidebar', (Lua, 0.020 s) Enabled [Tr Al Ti Va Cb]
ID: f62ce1ede713ba2facae8f30, 'Zimbar', (Lua, 0.001 s) Enabled [Tr Cb]
** Plugins: 3 loaded, 3 enabled.
-- Comms --
Connect phase: 8 (Open). NAWS wanted: NO
Received: 2015 bytes (1 Kb)
Sent: 1060 bytes (1 Kb)
Received 7 packets, sent 10 packets.
Total lines received: 81
This connection: Sent 0 lines, received 69 lines.
Telnet (IAC) received: DO: 4, DONT: 0, WILL: 4, WONT: 0, SB: 3 [Telnet]
-- MXP --
MXP active: yes, Pueblo mode: NO, Activated: On command
MXP tags received: 6
MXP entities received: 0
MXP errors: 2
-- Commands --
Commands in command history: 0
Speed walking enabled: NO. Speed walking prefix: #
Command stacking enabled: yes. Command stack character: '`'
Accelerators defined: 62 [Accelerators]
-- Miniwindows --
Window: 'bff25308e015986fb1a56e9e1', at (0,0,0,0), shown: NO
width: 1, height: 1, position: 1, hotspots: 0, fonts: 2, images: 0
Window: 'bff25308e015986fb1a56e9e2', at (0,0,0,0), shown: NO
width: 1, height: 1, position: 1, hotspots: 0, fonts: 2, images: 0
Window: 'bff25308e015986fb1a56e9e3', at (0,483,180,549), shown: yes
width: 180, height: 66, position: 10, hotspots: 12, fonts: 1, images: 0
Window: 'bff25308e015986fb1a56e9e:info', at (0,0,0,0), shown: NO
width: 1, height: 1, position: 1, hotspots: 0, fonts: 2, images: 0
** Miniwindows: 4 loaded, 1 shown.
-- Output window --
Output pixels: width 828, height: 549, font width: 8, font height: 15
can show 103 characters, wrapping at column 80, height 36 lines.
Output buffer: 107 of 5000 lines.
-- Miscellaneous --
Logging: NO, tracing: NO
** SQLite3 databases: 0
Sound buffers in use: 0

---------------------- End summary ----------------------

Any ideas on how to fix this would be fantastic!
I also found I can't enable my triggers. I check the enable box, click save, confirm, exit trigger window. Still disabled. Not sure what is going on.
Top

Posted by Nick Gammon   Australia  (23,121 posts)  Bio   Forum Administrator
Date Reply #1 on Wed 11 Feb 2015 02:03 AM (UTC)
Message
What is an invisible newline? The client always takes newline to, well, start a new line. You can't have them imbedded in the output window. Can you show an example?

About the only way I can imagine a newline could sneak into the output window is if was in an MXP entity for some strange reason.

I suggest you disable all your plugins, and then see what happens. In particular triggers should stay enabled unless something is disabling them.

You could also try disabling MXP (set MXP to No).

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Zim   (22 posts)  Bio
Date Reply #2 on Thu 12 Feb 2015 12:36 AM (UTC)
Message
I did try disabling plugins, it did not help. Just like before, the problem somehow resolved itself after leaving the computer for a couple hours. Unfortunately I did not save an example of the 'invisible' newlines. However, I can confirm that they were only placed where MXP data would be. If it happens again I will try disabling MXP and do a better job recording. Thank you.
Top

Posted by Nick Gammon   Australia  (23,121 posts)  Bio   Forum Administrator
Date Reply #3 on Thu 12 Feb 2015 04:57 AM (UTC)
Message
If you can repeat this (and I'll understand if you can't) please turn on packet debugging (Edit menu -> Debug packets) and capture whatever it is that is causing this.

Remember to turn debugging off afterwards.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Nick Gammon   Australia  (23,121 posts)  Bio   Forum Administrator
Date Reply #4 on Thu 12 Feb 2015 08:27 PM (UTC)
Message
I've been doing some experimenting, and it seems that if you insert a newline using an MXP entity, then it is not processed as a newline. For example:


Hello world



I have changed that in version 4.97 to allow for carriage-return, tab or newline to be inside an entity, and have them processed as if they were not in an entity.

https://github.com/nickgammon/mushclient/commit/5ad24b1


http://www.gammon.com.au/scripts/showrelnote.php?version=4.97&productid=0

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


15,673 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.