circuit_connector_definitions and led_light_offset

Place to get help with not working mods / modding interface.
Post Reply
robertpaulson
Long Handed Inserter
Long Handed Inserter
Posts: 92
Joined: Sun Jun 18, 2017 2:21 pm
Contact:

circuit_connector_definitions and led_light_offset

Post by robertpaulson »

hi. i am having hard time finding where this entry got moved... it doesn't look like it is still within the sprites table, its part of the return of make_circuit_connector_sprites, but i am not sure where exactly that gets assigned to....

i tried;

local sprite = table.deepcopy(circuit_connector_definitions["inserter"].sprites)

sprite.blue_led_light_offset[1] = sprite.blue_led_light_offset[1] + dx

but that entry doesn't exists. any help would be appreciated, since i am lost withing the demo-circuit-connector-sprites.lua

edit; i think i narrowed my problem whch is correctly implementing

require ("circuit-connector-sprites")

from my entities.lua

edit 2;
local sprite = table.deepcopy(data.raw["inserter"]["fast-inserter"].circuit_connector_sprites)
doesn't work neither

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

Re: circuit_connector_definitions and led_light_offset

Post by DaveMcW »

https://gist.githubusercontent.com/Bilk ... 5200.16.51

Search that for "circuit_connector_sprites".

robertpaulson
Long Handed Inserter
Long Handed Inserter
Posts: 92
Joined: Sun Jun 18, 2017 2:21 pm
Contact:

Re: circuit_connector_definitions and led_light_offset

Post by robertpaulson »

thanks a ton, this is going to be very useful

this is the problem;

["fast-inserter"] = {
circuit_connector_sprites = nil,

-cheers ;)

Bilka
Factorio Staff
Factorio Staff
Posts: 3127
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: circuit_connector_definitions and led_light_offset

Post by Bilka »

circuit_connector_sprites are an array of https://wiki.factorio.com/Types/CircuitConnectorSprites.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

Post Reply

Return to “Modding help”