get_circuit_connector_sprites() from base
Posted: Fri Dec 15, 2017 3:19 am
I have a mod which uses get_circuit_connector_sprites(), which used to be defined all the time, but now is in a file in base. Short of duplicating this file, is there a way to require() a file from base?
Also, when just duplicating the code, the graphics get_circuit_connector_sprites() refers to, __base__/graphics/entity/circuit-connector/circuit-connector-main.png, does not exist according to Factorio. I really don't want to also duplicate graphics...
Any ideas on how I can reuse this handy function, and the associated connector graphics?
Also, when just duplicating the code, the graphics get_circuit_connector_sprites() refers to, __base__/graphics/entity/circuit-connector/circuit-connector-main.png, does not exist according to Factorio. I really don't want to also duplicate graphics...
Any ideas on how I can reuse this handy function, and the associated connector graphics?