Can scenarios add graphics?

Place to get help with not working mods / modding interface.
adamius
Long Handed Inserter
Long Handed Inserter
Posts: 73
Joined: Mon Mar 19, 2018 9:18 am
Contact:

Can scenarios add graphics?

Post by adamius »

Hi

I'm wanting to build a campaign like setup to intro some people to Factorio. I'd like to have animation and still graphics to assist.

From the wiki I interpret that scenarios can't do this.
https://wiki.factorio.com/Scenario_syst ... C_and_mods

I appear to need a mod. Am I reading this page correctly?

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

Re: Can scenarios add graphics?

Post by eradicator »

ApiDoc about SpritePath wrote:"file" - path to an image file located inside the current scenario. This file is not preloaded so it will be slower; for frequently used sprites, it is better to define sprite prototype and use it instead.
Which you can use with LuaRendering.draw_sprite. But. This is only static sprites, not animations as far as i can tell. (This is a brand new 0.17.x feature btw).
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.
Post Reply

Return to “Modding help”