Page 1 of 1

Jumping surfaces with power cable produces lua error

Posted: Sun Aug 07, 2016 11:35 pm
by judos
When connecting two power poles among different surfaces with each other factorio returns the error:
Error while running event on_tick (ID 0)

Code: Select all

LuaEntity belongs to surface surfacesmod_cavern_1 (index 1) but a LuaEntity belonging to surface nauvis (index 0) was expected.
Strangely enough it works perfectly fine for red and green signal cables.
Is think it should be perfectly fine to connect poles among surface when this is done by script. Several mods use it such as the Surfaces mod.

Thanks for your help!

Re: connecting power poles produces errors

Posted: Mon Aug 08, 2016 3:06 am
by Rseding91
The electric network is not setup to work with different entities connected to electric networks on different surfaces. The circuit network doesn't have that limitation so it's allowed to connect between surfaces.

There where several bug reports about corrupt maps because entities on different surfaces where connected together in ways not designed.

The error is correct.