This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
DiamondQ's profile picture

[1.41] [SSP] Turtle can't place two Redpower wires on connected blocks

Started by DiamondQ, 23 November 2012 - 02:40 PM
DiamondQ #1
Posted 23 November 2012 - 03:40 PM
I'm trying to have a turtle place two Redpower 2 wires (let's say Blue Alloy Wires), so that they move from a horizontal surface to a vertical surface (in the picture below, the middle wires are the intended behavior).

I can place a wire on the vertical of a block or the horizontal side of a block, but I can't place on both. place(), placeDown() and placeUp() all return false when I attempt to place a second time.

Interestingly, I can place multiple objects on a single block (if I place a Redpower 2 Bundled Cable and then a Redpower 2 Jacketed Cable ontop of each other, it works properly), just not Redpower 2 wires.

Now, these leads me to believe it to be a bug in Redpower 2, but as I can manually place them, I'm wondering if it's that place() is just missing the option to specify the 'side' (as Redpower 2 provides the ability to put items on the 'sides' of a block).

NOTE: I'd try a newer version of ComputerCraft, but as Redpower isn't ported to the newer MineCraft yet, I'm stuck with an older ComputerCraft version.

[attachment=697:Placing.png]
Cranium #2
Posted 24 November 2012 - 06:10 AM
It's not really a bug as far as I know. When ComputerCraft tries to place a block, it will check if there is a block in front of it. If there is, it will not be able to place it. Since the first wire counts as a full block(as far as ComputerCraft is concerned), it will not be able to place a block on a block.
Sebra #3
Posted 24 November 2012 - 07:55 AM
Doubt it.
He mentioned it works in other cases.
I think turtle simulate player usage of item from some position and some vector. Lua has no access to these parameters except up/front/down selection. Additional place control was suggested but seems not wanted by developers.
DiamondQ #4
Posted 24 November 2012 - 06:21 PM
Yes, it does work in the case of Redpower cables and Redpower Jacketed Cables being placed on top of each other.

And, yes, I agree that it's likely the fact that the Lua environment does not have access to the extra "positions".

However, without it, a turtle is not able to 'build' a structure that contains any wiring.

Dan200 seems to like the 3D Printing program by NitrogenFingers, and this is just a logical extension of that. If we want to be able to "print" more complex environments, then we need access to the additional positions in the place() method.

I'm a big fan of using turtles to construct objects, so it's would be awesome if this could be added.
Sebra #5
Posted 24 November 2012 - 06:42 PM
And in order to place effectively all those cables, covers and machines we need precision placing ability. May be we can use default placement position, but definitely vector should be controlled.
ntman4real #6
Posted 25 November 2012 - 09:54 PM
hello all, please forgive me if it appears I am hijacking as it isn't my intentions. You can actually use a turtle to place wire/cable?


I tried to place red allow wire with this simple method below but to no avail. Am I missing something?
while true do
turtle.place(1)
turtle.forward()
end