Working animations: correct prototyping - how?
Posted: Sat Jul 01, 2017 7:24 pm
I'm not very familiar with graphic redactors, but want to create updated graphics for some assembling machine entities with different effects on different recipes. I.e: there is vanilla Chemical plant with different colored boiling patch, depended what product being produced.
Since it is undocumented in nor the factorio wiki nor factorio lua-api docs - i have a big question: how can i create this effects?
By thinking on entity code i understand next:
- different recipe effects depends on "working_visualisations" array, which items has "apply_recipe_tint" property with string tint name. This is in entity prototype.
- effect coloring depends on "crafting_machine_tint" recipe property array formed as: "tint_name": {color specification}
- graphic patches used in tint must be grayscaled
Is this correct?
Then, i was viewed Centrifuge entity protype. It hasn't any tint since have the same effect on all recipes. But have "uranium-glow" effect with adjuctable color, intensity, size and center. Can it be controlled by "apply_recipe_tint" ?
And then Centrifuge have some other graphics properties:
- "idle_animation" with "always_draw_idle_animation" flag. This animation works all the time entity rendered
- "animation" - doing green highlight on centrifuge when it is working
- "working_visualisation" - adding green glow effect (as written above) at night
- "working_visualisation_disabled" - what does this property do since it mostly matches with "animation"?
What properties can be controlled by recipe tint and how can i prepare graphics for this?
Since it is undocumented in nor the factorio wiki nor factorio lua-api docs - i have a big question: how can i create this effects?
By thinking on entity code i understand next:
- different recipe effects depends on "working_visualisations" array, which items has "apply_recipe_tint" property with string tint name. This is in entity prototype.
- effect coloring depends on "crafting_machine_tint" recipe property array formed as: "tint_name": {color specification}
- graphic patches used in tint must be grayscaled
Is this correct?
Then, i was viewed Centrifuge entity protype. It hasn't any tint since have the same effect on all recipes. But have "uranium-glow" effect with adjuctable color, intensity, size and center. Can it be controlled by "apply_recipe_tint" ?
And then Centrifuge have some other graphics properties:
- "idle_animation" with "always_draw_idle_animation" flag. This animation works all the time entity rendered
- "animation" - doing green highlight on centrifuge when it is working
- "working_visualisation" - adding green glow effect (as written above) at night
- "working_visualisation_disabled" - what does this property do since it mostly matches with "animation"?
What properties can be controlled by recipe tint and how can i prepare graphics for this?