[2.0.76] Could sprite and animation prototypes be added to prototypes?

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Honktown
Smart Inserter
Smart Inserter
Posts: 1072
Joined: Thu Oct 03, 2019 7:10 am
Contact:

[2.0.76] Could sprite and animation prototypes be added to prototypes?

Post by Honktown »

I don't have a good reason but they are missing.

Edit: It does affect on thing: LuaRendering.draw_animation requires the name of an animation prototype, but they're not iterable. draw_sprite is similar.
I have mods! I guess!
Link
User avatar
PennyJim
Fast Inserter
Fast Inserter
Posts: 158
Joined: Wed Jan 18, 2023 3:49 am
Contact:

Re: [2.0.76] Could sprite and animation prototypes be added to prototypes?

Post by PennyJim »

What fields would even be on the LuaPrototypes? Graphics definitions aren't readable an other other prototype.

On the other hand, we need a is_valid_animation_path to match the is_valid_sprite_path because we can't currently validate random strings as valid animations. (Validating data from ModData)
Rseding91
Factorio Staff
Factorio Staff
Posts: 16633
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.0.76] Could sprite and animation prototypes be added to prototypes?

Post by Rseding91 »

PennyJim wrote: Fri Mar 06, 2026 2:20 am What fields would even be on the LuaPrototypes? Graphics definitions aren't readable an other other prototype.

On the other hand, we need a is_valid_animation_path to match the is_valid_sprite_path because we can't currently validate random strings as valid animations. (Validating data from ModData)
I added LuaHelpers::is_valid_animation_path(...) for 2.1.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Modding interface requests”