|
Daesilme Newbie
Joined: 24 Nov 2009 Posts: 1 Location: Greenville, SC, USA
|
Posted: Fri Nov 27, 2009 12:08 am
Issue with #MXP and <DEST> |
ISSUE: When using the #MXP command and the <DEST> tag with X/Y attributes, the MXP text will start scrolling up. This occurs even on an unconnected session window.
So, if you keep trying to write a string at the same X/Y coord, instead of:
----------- Top of Window ------
This would be the MXP Line
---------- Bottom of Window ----------
You get:
----------- Top of Window ------
This would be the MXP Line
This would be the MXP Line
This would be the MXP Line
This would be the MXP Line
---------- Bottom of Window ----------
VERSION: 3.12 BETA
HOW TO REPRODUCE:
1) Start CMUD
2) Close Sessions Dialog using ESC or "X" or "File -> Close" (Method does not seem to have an effect)
3) Paste Script and Run (Changing $start, $stop, and/or $delay as needed) (Method does not seem to have an effect)
OTHER DETAILS:
1) Seems to happen consistently at the same point, but that point varies based upon machine and screen.
1.1) On Laptop Main Screen (1920x1200), it always starts happening at $count = 77
1.2) On Laptop External Screen via Docking Station (1680x1050), it always starts happening at $count = 68
1.3) On Laptop External Screen via Docking Station (1280x1024), it always starts happening at $count = 66
1.4) On Laptop External Screen via Docking Station (1152x864), it always starts happening at $count = 54
1.5) Ratio wise, these are pretty close to being roughly the same "line" to "Y resolution" between resolutions, so maybe some sort of rounding issue in the buffer code (complete guess).
2) Once it starts scrolling, it doesn't seem to quit unless you #CLR the window.
2.1) To see this issue, first #CLR, then run the script with $start = 1, two or more times.
3) Changing the X/Y attributes of the <DEST> tag do not seem to change/prevent the issue.
Code: |
// ----- SCRIPT START -----
$start = 0
$stop = 100
$delay = 100
#LOOP $start,$stop {
$count = %i
#IF ($count = 0) { #CLR }
#MXP { <dest X=1 Y=25>This is a line %format("&10n", $count)</dest> }
#WAIT $delay
}
// ----- SCRIPT END -----
|
|
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Fri Dec 04, 2009 4:52 pm |
I have reproduced this problem and have added it to the bug list. The DEST tag isn't used by most MUDs, so it hasn't gotten much testing. If you just need to do this within the client, you might be able to use ANSI cursor control codes instead. Like this:
Code: |
$start = 0
$stop = 100
$delay = 100
#LOOP $start,$stop {
$count = %i
#IF ($count = 0) { #CLR }
#SAY {%e[25;1HThis is a line %format("&10n", $count)%e[K}
#WAIT $delay
} |
The %e is the ESC character. The ESC[25;1H positions the cursor at line 25 and column 1. The ESC[K clears to the end of the line. |
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|