`window:94:arguments must be the same length` 的含义是什么?

我试图找出我的错误,但这是唯一的错误信息。你能给我一些提示我可以看看什么吗?

当选择Deutsch时出现错误,选Englisch时正常工作。

--尺寸为51,18
--时间为75

w, h = term.getSize()

--OS.Start
function Haupt(Inhalt)
    paintutils.drawFilledBox(1, 1, w, h, colors.blue)
    paintutils.drawLine(1, 1, 6, 1, colors.white)
    term.setTextColor(colors.gray)
    term.setCursorPos(1,1)
    term.write("MineOS")
    paintutils.drawLine(1, 3, string.len(Inhalt), 3, colors.white)
    term.setTextColor(colors.black)
    term.setCursorPos(1, 3)
    term.write(Inhalt)
    term.setCursorPos(1, 1) --ACHTUNG POS ÄNDERN

end

while true do
    local event, key = os.pullEvent( "key" )
    if key == keys.b then
        Deutsch = 0
        Englisch = 1
        break
    elseif key == keys.c then
        Deutsch = 1
        Englisch = 0
        break
    end
end

if Englisch == 1 then
    Haupt("你选择了英语。系统会在教程后启动。")
elseif Deutsch == 1 then
    Haupt("你选择了德语。系统会在教程后启动。")

end

ComputerCraft 告诉我 window:94:arguments must be the same length

点赞
用户7509065
用户7509065

ComputerCraft for Minecraft 1.7.10 存在一个 bug,它无法正确处理非 ASCII Unicode 字符的长度,所以会在 gewÃhlt 中的 ä 上卡住。这个问题在 ComputerCraft for Minecraft 1.12.2 中已经修复。我曾试图通过使用 blit 而不是 write 来找到解决方案,但是没有成功。

2020-06-23 23:32:10