Page 1 of 2

Adjustable.Container bug on RPi4 - Mudlet 4.10-dev

Posted: Sun Nov 08, 2020 5:52 pm
by ecloud
The Mudlet is build from git code 4.10-development.
Adjustable.Container displays nothing.
It is good on 4.9.0 before.

----
Change to branch release-4.10 with git checkout.
The function works.
So the bug is only in development branch.

Re: Adjustable.Container bug on RPi4 - Mudlet 4.10-dev

Posted: Mon Nov 09, 2020 9:58 am
by Vadi
We're not aware of a problem, can you post the function that breaks it?

Re: Adjustable.Container bug on RPi4 - Mudlet 4.10-dev

Posted: Mon Nov 09, 2020 12:26 pm
by ecloud
Vadi wrote:
Mon Nov 09, 2020 9:58 am
We're not aware of a problem, can you post the function that breaks it?
Adjustable.Container shows nothing, the window is empty.
No error.

Code: Select all

UI.skwin = {}
local fsize = config.fsize

local skwindow = Adjustable.Container:new({
  name = "SKWindow",
  titleText = "Skills",
  width = 850, height = 600,
  color = "black",
})
skwindow:hide()

local skconsole = Geyser.MiniConsole:new({
  name="SK",
  width="100%", height="100%",
  x = 0, y = 0,
  fontSize = fsize - 1,
  autoWrap = false,
  scrollBar = true,
  color = "black",
}, skwindow)


function UI.skwin.copy()
  selectCurrentLine()
  copy()
  skconsole:appendBuffer()
  deleteLine()
end

function UI.skwin.hide()
  skwindow:hide()
end

function UI.skwin.show()
  skwindow:show()
end

function UI.skwin.open()
  enableTrigger("skwin")
  skwindow:show()
end

function UI.skwin.close()
  disableTrigger("skwin")
  skwindow:hide()
end

Re: Adjustable.Container bug on RPi4 - Mudlet 4.10-dev

Posted: Mon Nov 09, 2020 12:30 pm
by ecloud
And also some characters are not seen in the main console.
like:
你将手中地★玄武甲放进了宝石袋。
The whole line is empty.
It seems to be a rendering issue.

Re: Adjustable.Container bug on RPi4 - Mudlet 4.10-dev

Posted: Mon Nov 09, 2020 12:39 pm
by Vadi
Are you able to use git bisect to find which commit changes this?

Re: Adjustable.Container bug on RPi4 - Mudlet 4.10-dev

Posted: Mon Nov 09, 2020 3:35 pm
by Smurf
Unfortunately I cannot reproduce this on the current version.
Screenshot from 2020-11-09 16-33-35.png
Maybe if you post a full example? your script lacks the UI table, the "config" table and I don't know what the trigger does either. :?:

Re: Adjustable.Container bug on RPi4 - Mudlet 4.10-dev

Posted: Mon Nov 09, 2020 4:47 pm
by Alyven
A simpler way to reproduce the issue is to create a miniconsole and try to append to the buffer.
For example:

Code: Select all

createMiniConsole("testConsole", 0, 400, 400, 400)
echo("testConsole","Appending\n")

function appendTest()
  selectCurrentLine()
  copy()
  appendBuffer("testConsole")
end

appendTest()
appendTest()
echo("testConsole","Finished appending\n")
Where you can use lua appendTest() to append the current line which doesn't seem to work in the current PTB.

Re: Adjustable.Container bug on RPi4 - Mudlet 4.10-dev

Posted: Mon Nov 09, 2020 5:17 pm
by Smurf
Ah. Thanks. Reproduced, working on a fix.

Re: Adjustable.Container bug on RPi4 - Mudlet 4.10-dev

Posted: Mon Nov 09, 2020 5:33 pm
by Smurf

Re: Adjustable.Container bug on RPi4 - Mudlet 4.10-dev

Posted: Mon Nov 09, 2020 6:04 pm
by Smurf
Any other regressions, pass them this way while I'm at it ;-)