The lagre screen and computer screen shows nothing after reloading. However, the computer continues to run normally. After rerunning the code, the content is displayed normally.
To reproduce you need a computer with:
1x CPU
2x GPU's
1x RAM
1x Screen Driver
1x Lagre Screen
how to reproduce the bug:
run the code
the screens should show the incrementing number
save the game while the computer is running
reload the game
the screens shows nothing until rerunning the code
I used this code for testing:
gpus = computer:getGPUs()
computerScreen = computer.getScreens()[1]
largeScreen = component.proxy("...")
gpus[1]:bindScreen(computerScreen)
gpus[2]:bindScreen(largeScreen)
w,h = 56,25
gpus[1]:setSize(w,h)
gpus[2]:setSize(w,h)
x = 0
event.ignoreAll()
event.clear()
while true do
x = x + 1
for _,gpu in pairs(gpus) do
gpu:setBackground(0,0,0,0)
gpu:setForeground(1,1,1,1)
gpu:fill(0,0,w,h," ")
gpu:setText(0,0,x)
gpu:flush()
end
print(x)
event.pull(1)
end
The lagre screen and computer screen shows nothing after reloading. However, the computer continues to run normally. After rerunning the code, the content is displayed normally. To reproduce you need a computer with:
how to reproduce the bug:
I used this code for testing: