[Genhis][2.0.13] LuaPlayer::create_local_flying_text speed seems very slow

This subforum contains all the issues which we already resolved.
stagdancer
Burner Inserter
Burner Inserter
Posts: 11
Joined: Sun Jan 31, 2021 3:07 pm
Contact:

[Genhis][2.0.13] LuaPlayer::create_local_flying_text speed seems very slow

Post by stagdancer »

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)

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 } }
Link to docs: https://lua-api.factorio.com/latest/cla ... lying_text
Genhis
Factorio Staff
Factorio Staff
Posts: 742
Joined: Wed Dec 24, 2014 8:19 am
Contact:

Re: [Genhis][2.0.13] LuaPlayer::create_local_flying_text speed seems very slow

Post by Genhis »

Thanks for the report, this is fixed for 2.0.33.
Post Reply

Return to “Resolved Problems and Bugs”