Allow "animation" for item-request-proxy icon

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Post Reply
User avatar
Arcitos
Inserter
Inserter
Posts: 38
Joined: Sat Dec 03, 2016 1:50 pm
Contact:

Allow "animation" for item-request-proxy icon

Post by Arcitos »

Currently any "item-request-proxy" entity requires a type "picture" sprite for the icon of the proxy.

My question/suggestion: Allow the use of type "animation" for this, too.

This would make nice things possible, imagine for example an item request proxy with an icon like this:
repair-in-progress.gif
repair-in-progress.gif (6.13 KiB) Viewed 2341 times

What do you think?

Regards,
Arcitos

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3700
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: Allow "animation" for item-request-proxy icon

Post by DaveMcW »

<marquee><blink>No thank you</blink></marquee>

User avatar
Arcitos
Inserter
Inserter
Posts: 38
Joined: Sat Dec 03, 2016 1:50 pm
Contact:

Re: Allow "animation" for item-request-proxy icon

Post by Arcitos »

DaveMcW wrote:
Wed Aug 14, 2019 9:13 pm
<marquee><blink>No thank you</blink></marquee>
If my intention would be to annoy the player with unneccessarily distracting symbols, I'd just abuse the possibilities provided by the new rendering api :D

In fact, this proposal is to avoid needing to render a separate animation whenever this item request proxy is active.

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: Allow "animation" for item-request-proxy icon

Post by eradicator »

+0.5 might come in handy later.

I didn't even think about the possibility of having more than one item-request-proxy prototype. I guess you want to spawn this manually and the engine keeps using the default one for stuff like blueprint modules? But has you probably have to track the proxy status anyway (to trigger some additional lua actions on fullfillment) is this really that much more useful than a rendering animation?
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.

User avatar
Arcitos
Inserter
Inserter
Posts: 38
Joined: Sat Dec 03, 2016 1:50 pm
Contact:

Re: Allow "animation" for item-request-proxy icon

Post by Arcitos »

eradicator wrote:
Fri Aug 16, 2019 11:47 am
+0.5 might come in handy later.

I didn't even think about the possibility of having more than one item-request-proxy prototype. I guess you want to spawn this manually and the engine keeps using the default one for stuff like blueprint modules? But has you probably have to track the proxy status anyway (to trigger some additional lua actions on fullfillment) is this really that much more useful than a rendering animation?
Partially, yes. These request proxies are used to represent requests for repair or maintenance items. The lua logic is not the problem, even with some tick handling beeing necessary (btw, if someone is about to add an "on_request_proxy_fulfilled" event: Yes please!).

Currently I use rendered animations to mark machines that are in state of repair. Above this animated sign a transparent request proxy is placed - not very intuitive for the player and also not very good for FPS, because rendering take a good bit of FPS as soon as hundreds of icons need to be drawn each tick. If i could use this animation as the icon of the request proxy, I wouldn't need to use rendering to draw entities.

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: Allow "animation" for item-request-proxy icon

Post by eradicator »

Possibly slightly nicer hack:
Use an invisible simple entity ghost placeable_by={{'repair-kit',1},...}. It'll fire on_robot_built (though might conflict with mods force-reviving ghosts). And if you attach the render to the ghost the render might (haven't tested) be automatically destroyed when the ghost is revived.
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.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13204
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Allow "animation" for item-request-proxy icon

Post by Rseding91 »

But why?
If you want to get ahold of me I'm almost always on Discord.

User avatar
Arcitos
Inserter
Inserter
Posts: 38
Joined: Sat Dec 03, 2016 1:50 pm
Contact:

Re: Allow "animation" for item-request-proxy icon

Post by Arcitos »

Rseding91 wrote:
Sun Aug 18, 2019 4:41 am
But why?
Hi, I'm sorry, I wasn't able to reply earlier.
My reason for this proposal is that this would allow the use of animated icons for item-request-proxies that mimic the flashing entity status signs. It would also allow to create some kind of non-static icon like the rotating wrench symbol shown above, which will come in handy for some mod uses, where the item-request-proxies are also bearing information about the machine they're above.

Post Reply

Return to “Modding interface requests”