[15.35] auto-cropping of beam sprites makes them misalign
[15.35] auto-cropping of beam sprites makes them misalign
As discussed in this thread, the automatic cropping of beam sprites causes head, body and tail to misalign, due to changing the rotation center.
Re: [15.35] auto-cropping of beam sprites makes them misalign
Thanks for the report.
Use
in the sprite/animation definition. See for example "defender-capsule"
Use
Code: Select all
flags = { "no-crop" }
Re: [15.35] auto-cropping of beam sprites makes them misalign
Ah thanks, the distractor-robots lightning beam uses the same workaround though.
- eradicator
- Smart Inserter
- Posts: 5207
- Joined: Tue Jul 12, 2016 9:03 am
- Contact:
Re: [15.35] auto-cropping of beam sprites makes them misalign
It would be pretty awesome is this kind of barely-known flag and some off the other oddities of prototype definitions were as well documented as the rest of the http://lua-api.factorio.com/ . Google finds only one thread (another bug report) that even mentiones "no-crop" at all.
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Re: [15.35] auto-cropping of beam sprites makes them misalign
That documentation is about the control stage, not the data stage, sadly. For a barebones documentation of the data stage (prototypes etc) see the wiki: https://wiki.factorio.com/Prototype_definitions . That's also where I'll add the flag. The prototpyes currently cannot be automatically documented from the game code, which is why there is no good documentation. I already annoyed Rseding by asking for it over and overeradicator wrote:It would be pretty awesome is this kind of barely-known flag and some off the other oddities of prototype definitions were as well documented as the rest of the http://lua-api.factorio.com/ . Google finds only one thread (another bug report) that even mentiones "no-crop" at all.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.