Jump to content




Place stairs in particular direction


10 replies to this topic

#1 unknown1138

  • New Members
  • 11 posts

Posted 24 October 2012 - 06:59 PM

Hey all,

I've been messing around with wireless turtles a bit and came up with the idea to make house-building programs and ran into some trouble.

The problem is that when I use
turtle.placeDown(turtle.select(2)) --slot 2 = stairs

that the turtle only places the stairs in one particular direction (north I guess).

now I want to know (if it is possible) how to place the stairs in different directions.
I tried it with turning the turtle in a different direction but this makes no difference.

Kind Regards,
unknown1138

#2 OmegaVest

  • Members
  • 436 posts

Posted 24 October 2012 - 07:04 PM

I'm not sure, but I think down does not work quite right with rotation. Try (if you can) having it face the way you want them to face, and then place it in front of the turtle. I don't know this works, cause I've only really dealt with shells and things, but it might.

#3 unknown1138

  • New Members
  • 11 posts

Posted 24 October 2012 - 07:16 PM

Well I have tried that, but it didn't work sadly. thanks though ^_^/>
Maybe someone else knows how to do this?

View PostOmegaVest, on 24 October 2012 - 07:04 PM, said:

I'm not sure, but I think down does not work quite right with rotation. Try (if you can) having it face the way you want them to face, and then place it in front of the turtle. I don't know this works, cause I've only really dealt with shells and things, but it might.

P.S. just a quick side-question, is it possible to "store" a variable so that multiple scripts can see the variable?
I.E. a stand-alone file that contains certains variables that other scripts can read (something like functions)

#4 Ditto8353

  • New Members
  • 138 posts

Posted 24 October 2012 - 07:28 PM

View Postunknown1138, on 24 October 2012 - 07:16 PM, said:

P.S. just a quick side-question, is it possible to "store" a variable so that multiple scripts can see the variable?
I.E. a stand-alone file that contains certains variables that other scripts can read (something like functions)

Sure is! You can either use rednet to have the different computers/terminals pull the value from a host or use file reading/writing.
However, both will require you to deal with the problem of:
turtle a pulls value
turtle b pulls value
turtle a puts new value back
turtle b is now running off the wrong value...

For future reference, you would want to use e.g. instead of i.e.
i.e. is a clarification or more detail
e.g. is an example

#5 unknown1138

  • New Members
  • 11 posts

Posted 24 October 2012 - 07:39 PM

@Ditto

turtle a pulls value
turtle b pulls value
turtle a puts new value back
turtle b is now running off the wrong value...

Couldn't this be solved by making the host send a signal through rednet to both turtles (when a value is modified) which checks wether the value is the same as in the host and if there is a difference to force the other turtle to "reboot" with the new value?

For future reference, you would want to use e.g. instead of i.e.
i.e. is a clarification or more detail
e.g. is an example

Didn't know about that, thanks.

#6 Ditto8353

  • New Members
  • 138 posts

Posted 24 October 2012 - 07:42 PM

View Postunknown1138, on 24 October 2012 - 07:39 PM, said:

Couldn't this be solved by making the host send a signal through rednet to both turtles (when a value is modified) which checks wether the value is the same as in the host and if there is a difference to force the other turtle to "reboot" with the new value?
This is a possible solution. I am sure there are others, but I don't know what would work best for you. It seems like you have a grasp on it though.

View Postunknown1138, on 24 October 2012 - 07:39 PM, said:

Didn't know about that, thanks.
Neither did I, I looked it up yesterday.

#7 unknown1138

  • New Members
  • 11 posts

Posted 24 October 2012 - 07:53 PM

@Ditto

Quote

This is a possible solution. I am sure there are others, but I don't know what would work best for you. It seems like you have a grasp on it though.


Well I'm not really focusing on anything related to this, for now, but knowing this allows me to make some cool stuff ^_^/>

#8 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,459 posts

Posted 24 October 2012 - 09:45 PM

What version of ComputerCraft are you using?

#9 unknown1138

  • New Members
  • 11 posts

Posted 24 October 2012 - 11:54 PM

View PostLyqyd, on 24 October 2012 - 09:45 PM, said:

What version of ComputerCraft are you using?

Version 1.3

#10 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,459 posts

Posted 25 October 2012 - 03:02 AM

You need to update; this will fix improper stair placement.

#11 remiX

  • Members
  • 2,076 posts
  • LocationSouth Africa

Posted 25 October 2012 - 06:08 AM

When is Tekkit going to be updated, sigh >.< Still stuck with cc 1.3





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users