Jumping surfaces with power cable produces lua error

Bugs that are actually features.
judos
Filter Inserter
Filter Inserter
Posts: 267
Joined: Mon Dec 08, 2014 11:17 am
Contact:

Jumping surfaces with power cable produces lua error

Post 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!
Rseding91
Factorio Staff
Factorio Staff
Posts: 14316
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: connecting power poles produces errors

Post 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.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Not a bug”