Mudlet 3.0.0-gamma (preview #3)

User avatar
Vadi
Posts: 4940
Joined: Sat Mar 14, 2009 3:13 pm

Re: Mudlet 3.0.0-gamma (preview #3)

Post by Vadi »

Kmuddy also doesn't use a custom display.

Nemutaur
Posts: 22
Joined: Mon Mar 19, 2012 10:58 pm

Re: Mudlet 3.0.0-gamma (preview #3)

Post by Nemutaur »

Hi,

not sure if this is a bug on my end or 3.0 but I tested this with 2 different USB mice and my macbook trackpad. When the mouse cursor gets anywhere near this button that is supposed to hide a geyser popup it just happens without clicking.

Code is here:
wundersysDownloadLaterButton = Geyser.Label:new({
name = "wundersysDownloadLaterButton",
x = 10, y = 45,
height = 20, width = "90%",
fgColor = "white",
color = "red",
message = [[<center>Later!</center>]]
}, wundersysDownloadContainer)

wundersysDownloadLaterButton:setClickCallback("wundersysDownloadLater")

function wundersysDownloadLater()
wundersysDownloadContainer:hide()
end
And video of it can be found here: https://dl.dropboxusercontent.com/u/698 ... rclick.mov (You see me clicking a few times just to test if the click recording it working)

User avatar
Vadi
Posts: 4940
Joined: Sat Mar 14, 2009 3:13 pm

Re: Mudlet 3.0.0-gamma (preview #3)

Post by Vadi »

Jor'Mox wrote:The second issue is actually an issue that occurs due to a script I have running that creates a combat summary, and outputs the results using a combination of a few Mudlet functions (insertText, cinsertText, wrapLine, moveCursor, selectCurrentLine, and replace) to overcome the strange behavior that occurred when a new line was created. The function I created to insert a new line follows:
Code: [show] | [select all] lua
local function insertNewLine()
	local curNum = getLineNumber()
	insertText("\n")
	wrapLine(curNum)
	moveCursor(0,curNum+1)
	selectCurrentLine()
	replace("")
end
This function would be called, and then followed by a cinsertText function call to put in the new line of text I wanted to display.

Here is what the results look like in 2.1 vs 3.0 gamma, I put them in Lua blocks so you could see the leading spaces:
2.1
Code: [show] | [select all] lua
Your pierce *** DEMOLISHES *** a young vagabond boy (58.5) 
Your pierce *** DEVASTATES *** a young vagabond boy (68) 
Your pierce *** DEMOLISHES *** a young vagabond boy (58.5) 

A young vagabond boy's slash misses You (0) 
Your pierce does GHASTLY things to A young vagabond boy (185) H
A young vagabond boy has some big nasty wounds and scratches. [30-49%]


(Sanctuary)(Flying)(Pass Door)(Haste)
<1576/1557hp 890/988m 406/406mv> (NS)

Your pierce *** DEMOLISHES *** a young vagabond boy (58.5) 

A young vagabond boy misses You (0) 
Your pierce *** DEMOLISHES *** A young vagabond boy (58.5) H
A young vagabond boy has some big nasty wounds and scratches. [30-49%]


(Sanctuary)(Flying)(Pass Door)(Haste)
<1581/1557hp 890/988m 406/406mv> (NS)
3.0
Code: [show] | [select all] lua
Your pierce *** DEMOLISHES *** a young vagabond boy (58.5) 
Your pierce *** DEVASTATES *** a young vagabond boy (68) 

                                            Your pierce >>> ANNIHILATES <<< A young vagabond boy


Your pierce MANGLES a young vagabond boy (54.5) 
Your pierce MASSACRES a young vagabond boy (50.5) 

                                            Your pierce === OBLITERATES === A young vagabond boy
As you can see, it not only completely messes up the summary information, it also swallows my prompt which works normally (it is also generated via script, using selectString, replace, and cecho).
I can't tell what are you trying to do here because I don't know what are you echoing in the examples, and the before & after looks to be on different sets of data so I can't draw any comparison.

Using the function and cinsertText on the exits line in 2.1 yields this:

Code: Select all

hello
You see exits leading northeast, southeast, and west.
(ex) 6413h|100%, 6600m|100%, 100e%, 10p, 100w%, 100e%, 8.96m ()-

hello
You see exits leading northeast, southeast, and west.
(ex) 6413h|100%, 6600m|100%, 100e%, 10p, 100w%, 100e%, 8.96m ()-

hello
You see exits leading northeast, southeast, and west.
Using the function and cinsertText on the exits line in 3.0 yields this:

Code: Select all

hello
(ex) 6413h|100%, 6600m|100%, 100e%, 10p, 100w%, 100e%, 8.96m ()-

hello
(ex) 6413h|100%, 6600m|100%, 100e%, 10p, 100w%, 100e%, 8.96m ()-
The line content does go away, but that is probably what selectCurrentLine() replace("") is exactly doing. What are you hoping to achieve here - insert text before the current line?

User avatar
Vadi
Posts: 4940
Joined: Sat Mar 14, 2009 3:13 pm

Re: Mudlet 3.0.0-gamma (preview #3)

Post by Vadi »

Splork wrote:Our players mostly backed up to 2.1 due to the scripts disappearing bug. It was said to have been fixed in the gamma but the recent comments at Bug Report looks like it has not.

It looks like there is a 3.0.1-dev release?

Any updates regarding the issue?

Thanks,
The issue is now fixed in the latest preview.

User avatar
Vadi
Posts: 4940
Joined: Sat Mar 14, 2009 3:13 pm

Re: Mudlet 3.0.0-gamma (preview #3)

Post by Vadi »

Jor'Mox wrote:The second issue is actually an issue that occurs due to a script I have running that creates a combat summary, and outputs the results using a combination of a few Mudlet functions (insertText, cinsertText, wrapLine, moveCursor, selectCurrentLine, and replace) to overcome the strange behavior that occurred when a new line was created. The function I created to insert a new line follows:
Code: [show] | [select all] lua
local function insertNewLine()
	local curNum = getLineNumber()
	insertText("\n")
	wrapLine(curNum)
	moveCursor(0,curNum+1)
	selectCurrentLine()
	replace("")
end
This function would be called, and then followed by a cinsertText function call to put in the new line of text I wanted to display.

Here is what the results look like in 2.1 vs 3.0 gamma, I put them in Lua blocks so you could see the leading spaces:
2.1
Code: [show] | [select all] lua
Your pierce *** DEMOLISHES *** a young vagabond boy (58.5) 
Your pierce *** DEVASTATES *** a young vagabond boy (68) 
Your pierce *** DEMOLISHES *** a young vagabond boy (58.5) 

A young vagabond boy's slash misses You (0) 
Your pierce does GHASTLY things to A young vagabond boy (185) H
A young vagabond boy has some big nasty wounds and scratches. [30-49%]


(Sanctuary)(Flying)(Pass Door)(Haste)
<1576/1557hp 890/988m 406/406mv> (NS)

Your pierce *** DEMOLISHES *** a young vagabond boy (58.5) 

A young vagabond boy misses You (0) 
Your pierce *** DEMOLISHES *** A young vagabond boy (58.5) H
A young vagabond boy has some big nasty wounds and scratches. [30-49%]


(Sanctuary)(Flying)(Pass Door)(Haste)
<1581/1557hp 890/988m 406/406mv> (NS)
3.0
Code: [show] | [select all] lua
Your pierce *** DEMOLISHES *** a young vagabond boy (58.5) 
Your pierce *** DEVASTATES *** a young vagabond boy (68) 

                                            Your pierce >>> ANNIHILATES <<< A young vagabond boy


Your pierce MANGLES a young vagabond boy (54.5) 
Your pierce MASSACRES a young vagabond boy (50.5) 

                                            Your pierce === OBLITERATES === A young vagabond boy
As you can see, it not only completely messes up the summary information, it also swallows my prompt which works normally (it is also generated via script, using selectString, replace, and cecho).
Is this still happening?

Jor'Mox
Posts: 1101
Joined: Wed Apr 03, 2013 2:19 am

Re: Mudlet 3.0.0-gamma (preview #3)

Post by Jor'Mox »

This issue appears to be fixed at least in the kappa version you had me test earlier.

User avatar
Vadi
Posts: 4940
Joined: Sat Mar 14, 2009 3:13 pm

Re: Mudlet 3.0.0-gamma (preview #3)

Post by Vadi »

Fantastic, thanks for checking.

Post Reply