[0.12.6] transportbelt-to-ground vs transport-belt-to-ground

This subforum contains all the issues which we already resolved.
erisco
Burner Inserter
Burner Inserter
Posts: 17
Joined: Sun Aug 16, 2015 1:13 am
Contact:

[0.12.6] transportbelt-to-ground vs transport-belt-to-ground

Post by erisco »

I have an entity "ghost" verified as having name "entity-ghost". I can print out the "ghost_type" using "game.player.print(ghost.ghost_type)", and this prints "transport-belt-to-ground". However, if I try to read "ghost.belt_to_ground_type" the game crashes with the error:

Code: Select all

Error while running the event handler: __QuickPrints__/control.lua:64: Callable only on transportbelt-to-ground type entities.
My thought is that there is a typo and "transportbelt-to-ground" is supposed to be "transport-belt-to-ground". This could just be a typo in the error message string, but given that "belt_to_ground_type" is supposed to be an available property on "transport-belt-to-ground" entities I suspect the typo is elsewhere as well.
Oxyd
Former Staff
Former Staff
Posts: 1428
Joined: Thu May 07, 2015 8:42 am
Contact:

Re: [0.12.6] transportbelt-to-ground vs transport-belt-to-ground

Post by Oxyd »

If ghost is an entity-ghost, then it's not a transport-belt-to-ground and you can't use belt_to_ground_type on it. There's no bug here. I'll fix the typo in the error message, though.
kovarex
Factorio Staff
Factorio Staff
Posts: 8207
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: [0.12.6] transportbelt-to-ground vs transport-belt-to-ground

Post by kovarex »

Actually, there is no why it shouldn't be possible, enabled for 0.12.7
Post Reply

Return to “Resolved Problems and Bugs”