"Entity is not splitter" on splitter ghost

This subforum contains all the issues which we already resolved.
Post Reply
Jelmergu
Long Handed Inserter
Long Handed Inserter
Posts: 77
Joined: Mon Apr 04, 2016 8:49 am
Contact:

"Entity is not splitter" on splitter ghost

Post by Jelmergu »

A splitter's ghost does not allow the reading of splitter_filter, splitter_output_priority and splitter_input_priority. The error given is "Entity is not splitter". While this is true(entity is a ghost after all) the ghost should have those properties, as evident by the fact that the advanced view does show the properties on the ghost.

What did I do:
Create a new game
Cheat in a splitter with /c game.player.insert({name="splitter", count=1})
Place the splitter
Set any filter
Make a blueprint of the splitter with filter
Place the blueprint
Attempt to get the output_priority with /c game.print(game.player.selected.splitter_output_priority)

What did I expect
A console message saying "left"

What did I get
0tmp.png
0tmp.png (969.43 KiB) Viewed 837 times

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

Re: "Entity is not splitter" on splitter ghost

Post by Bilka »

This is technically not a bug because the entity is an entity-ghost (of a splitter), and the entity ghost does not have those properties. However, the lua api has been changed in 0.17 to target the inner entity of the ghost instead of the ghost in most cases, meaning that this is fixed.
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 “Resolved Problems and Bugs”