Adjustable.Container bug on RPi4 - Mudlet 4.10-dev

ecloud
Posts: 15
Joined: Sat May 02, 2020 11:46 am

Adjustable.Container bug on RPi4 - Mudlet 4.10-dev

Post 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.

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

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

Post by Vadi »

We're not aware of a problem, can you post the function that breaks it?

ecloud
Posts: 15
Joined: Sat May 02, 2020 11:46 am

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

Post 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

ecloud
Posts: 15
Joined: Sat May 02, 2020 11:46 am

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

Post 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.

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

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

Post by Vadi »

Are you able to use git bisect to find which commit changes this?

Smurf
Posts: 9
Joined: Sat Jul 18, 2020 1:16 pm

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

Post 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. :?:

Alyven
Posts: 31
Joined: Sat Oct 01, 2011 8:43 pm

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

Post 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.

Smurf
Posts: 9
Joined: Sat Jul 18, 2020 1:16 pm

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

Post by Smurf »

Ah. Thanks. Reproduced, working on a fix.

Smurf
Posts: 9
Joined: Sat Jul 18, 2020 1:16 pm

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

Post by Smurf »


Smurf
Posts: 9
Joined: Sat Jul 18, 2020 1:16 pm

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

Post by Smurf »

Any other regressions, pass them this way while I'm at it ;-)

Post Reply