Page 1 of 1

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

Posted: Thu Sep 03, 2015 1:07 pm
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.

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

Posted: Thu Sep 03, 2015 1:55 pm
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.

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

Posted: Thu Sep 03, 2015 2:20 pm
by kovarex
Actually, there is no why it shouldn't be possible, enabled for 0.12.7