Code: Select all
Error FloatCast.hpp:123: 2159999906.000000 > 2147483647.000000
I originally encountered this when trying to use the area outside the world map to draw graphs - at the position I randomly selected, it crashed at zoom values as low as 10. The further out you go, the lower the critical zoom value becomes, but you don't have to go outside of the playable area for this to happen (see code below).
I would have expected to be able to zoom in as far as I want to.
Reproduction steps
I have a copy of 1.1.104 with just one mod enabled containing this control.lua file:Code: Select all
script.on_event(defines.events.on_gui_closed, function(event)
local player = game.get_player(1)
if player then
local frame = player.gui.screen.add{type="frame", name="frame"}
frame.auto_center = true
local camera = frame.add{
type="camera",
position={900000, 0},
zoom=75,
}
camera.style.size = {200, 200}
end
end)
You can then reproduce the crash by opening and then closing the inventory interface.