[Genhis][2.0.13] LuaPlayer::create_local_flying_text speed seems very slow
Posted: Thu Oct 31, 2024 5:44 pm
My mod (Inventory Trim) uses flying text to show which items are being moved to trash. In 1.1, the speed parameter was set to 1, which gave me about 1 tile/s as per docs.
I've just been updating it to 2.0, and I need to set the speed to about 40 to get roughly the same effect. Is this a regression bug, or maybe the docs are out of date if this is intentional? At max zoom, with speed=1 the text clicks upwards at about 3 pixels/s - very slow. I've cranked it up to 40 instead, to get a reasonable speed (matching the speed of the normal "pick up a chest" white text).
It's on a plain 2.0.13 system, no other mods. (Edit: issue exists in 2.0.7 too)
Link to docs: https://lua-api.factorio.com/latest/cla ... lying_text
I've just been updating it to 2.0, and I need to set the speed to about 40 to get roughly the same effect. Is this a regression bug, or maybe the docs are out of date if this is intentional? At max zoom, with speed=1 the text clicks upwards at about 3 pixels/s - very slow. I've cranked it up to 40 instead, to get a reasonable speed (matching the speed of the normal "pick up a chest" white text).
It's on a plain 2.0.13 system, no other mods. (Edit: issue exists in 2.0.7 too)
Code: Select all
p.create_local_flying_text { text = { "itrim.notification-flying-text", -summary.removed_item_count, summary.item.localised_name, main_inv.get_item_count(summary.item_name) },
position = { p.position.x, p.position.y - count },
time_to_live = 180,
speed = 40, -- check, this used to be 1, but in 2.0 that's really slow.
color = { 128, 128, 192 } }