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

need a program to build pipe network

Started by oostwolder, 31 March 2013 - 02:23 AM
oostwolder #1
Posted 31 March 2013 - 04:23 AM
he all


i am looking for a program for my turtle
this turtle must lay pipe all pipes there are such as conductive pipe transport pipe and waterproofpipe

is there some on that can make this program for me i am makeing this program to but i cant get it working


greetings oostwolder AKA remco
JokerRH #2
Posted 31 March 2013 - 06:03 AM
Write your own code, if you have problems, you can ask here.
We can help you debug your program, but we won't write it for you.
oostwolder #3
Posted 31 March 2013 - 06:11 AM
oke well then i quit because i have done every thing to build it and i am sick about it that it is not working
oostwolder #4
Posted 31 March 2013 - 06:15 AM
it is not that hard to make a simple program for me is it
LBPHacker #5
Posted 31 March 2013 - 06:38 AM
That's why you should start writing it. Yeah, it doesn't seem to be hard (even if I still have no idea what do you want to accomplish), but "Ask a Pro" means asking a pro about what's wrong with your code, not asking a pro to write a program for you. We can't help if you have no idea what we're doing.

Anyway, start writing the program, and come back here if you get stuck.
Engineer #6
Posted 31 March 2013 - 06:38 AM
I have made this simple script for you:
http://pastebin.com/kpkApch3
oostwolder #7
Posted 31 March 2013 - 06:49 AM
if it works, I am very satisfied
I just asked for a program and yes I've tried to create a program itself but
it still did not work
oostwolder #8
Posted 31 March 2013 - 06:55 AM
this program i get a error

( pipe:12: attempt to preform arihmetic __add on nil and number


programm mayde bij pro coder
spyman68 #9
Posted 31 March 2013 - 07:08 AM
Ok first of all, "Pro Coder" isn't his name, that's his status, second of all, what's up with your horrible grammar? And finally, if you get an error, try to solve it your self. Don't be a lazy bum and have other people do it for you.
Engineer #10
Posted 31 March 2013 - 07:10 AM
Fixed, same pastebin code.

Edit: if it doesnt do what you want it to do, than you really should get into programming. And LUA isnt that hard to learn, take a look in the tutorial section or read this.
oostwolder #11
Posted 31 March 2013 - 07:12 AM
oke thats it i dont ask you nothing any more i just askt it normal spoiled kids that know something about lua and dont want to make a simple programm and maybe a tip for you if you dont want to make somthing or you only talk shit stop posting on a forum


realy i thought on a forum we help every one but i thats a dream i think
oostwolder #12
Posted 31 March 2013 - 08:04 AM
again a error engineer


i get 18:expected number




thanks already
Spongy141 #13
Posted 31 March 2013 - 06:44 PM
Look, "Ask a Pro" is to ask for help about a program you have made already. If you do not have code you need help with, please do not ask for us to make you a program, most people on this forums will not, your lucky engineer is nice enough to help you out and even make you a program, so either show us the code that has a error, or take this to a PM with engineer.
EDIT: Also not to be rude, but your English is horrible, how do you expect us to read what you need help with if you spell most of what your trying to say wrong?
theoriginalbit #14
Posted 31 March 2013 - 06:55 PM
i thought on a forum we help every one but i thats a dream i think
We are here to help………….. you fix problems with the program you have attempted to make. we are not here to do the code for you, "we are not code monkeys" and quite honestly if you want someone to make a program for you in the real world they WILL charge you for it…

You have hit a lucky day, as Engineer must have been bored, he has the same sentiment as all of us… Better problem descriptions are always helpful for us to point you in the right direction on how to make the program yourself and then we are always here to help during the process…

Now as for the error on line 18 I am unsure why you are getting this as line 18 should not be causing that. Does your line 18 perfectly match line 18 here http://pastebin.com/kpkApch3 ?
Dlcruz129 #15
Posted 31 March 2013 - 07:44 PM
i thought on a forum we help every one but i thats a dream i think
We are here to help………….. you fix problems with the program you have attempted to make. we are not here to do the code for you, "we are not code monkeys" and quite honestly if you want someone to make a program for you in the real world they WILL charge you for it…

You have hit a lucky day, as Engineer must have been bored, he has the same sentiment as all of us… Better problem descriptions are always helpful for us to point you in the right direction on how to make the program yourself and then we are always here to help during the process…

Now as for the error on line 18 I am unsure why you are getting this as line 18 should not be causing that. Does your line 18 perfectly match line 18 here http://pastebin.com/kpkApch3 ?

I couldn't agree more. OP, you're damn lucky you got someone to write code for you, as that hardly ever happens here. Lua is really easy to learn, and everyone is here to help you, so you have no excuse to not learn it.
LuaEclipser #16
Posted 01 April 2013 - 07:55 AM
people who know LUA and will not server you like kings are not sppoiled. your spoiled. they took the time to learn LUA. you, on the other hand, are cumming to a forum where you LEARN programming and are asking for people to do it for you. if i were engineer, i would be extremely insulted that he coded a program for you and all you can do is complain.

i am asking for this thread to be locked
Spongy141 #17
Posted 02 April 2013 - 01:49 PM
people who know LUA and will not server you like kings are not sppoiled. your spoiled. they took the time to learn LUA. you, on the other hand, are cumming to a forum where you LEARN programming and are asking for people to do it for you. if i were engineer, i would be extremely insulted that he coded a program for you and all you can do is complain.

i am asking for this thread to be locked
Not to be rude, but its Lua* not LUA, lol I used to make that mistake also.
oostwolder #18
Posted 07 April 2013 - 11:01 AM
flamerss


i askt normal and if you dont want to help then maybe shut up and help someone els that need help if you would like to help them


and sorry but i have tryt to make it but i dont get it to work



o and spongy141

i am from the netherlands not from usa or england
so there is your answer that i dont spell like you

but you kids dont understand that there are foreigners from other countrys

o and spoiled dont get me laugh i think your just a nerd in lua/LUA (what is the difference) and that you think that you get money for it on a forum i dont think so
dstars5 #19
Posted 07 April 2013 - 11:14 AM
Obvious troll is obvious.
Engineer #20
Posted 07 April 2013 - 12:11 PM
flamerss


i askt normal and if you dont want to help then maybe shut up and help someone els that need help if you would like to help them


and sorry but i have tryt to make it but i dont get it to work



o and spongy141

i am from the netherlands not from usa or england
so there is your answer that i dont spell like you

but you kids dont understand that there are foreigners from other countrys

o and spoiled dont get me laugh i think your just a nerd in lua/LUA (what is the difference) and that you think that you get money for it on a forum i dont think so
Your the kind of person who doesnt want to learn English. Im also dutch.

But to get back on topic before a moderator locks this thread;

Pastebin link got deleted so I will post it here:

local tArgs = {...}

if not tonumber(tArgs[1]) then
   error("Number expected, got "..type(tArgs[1])
end

if turtle.getFuelLevel() < tonumber(tArgs[1]) then
   print("Refuel me!")
   error()
end

local total = 0
for i = 1, 16 do
   local count = turtle.getItemCount(i)
   total = total + count
end

if total < tonumber(tArgs[1]) then error("Too few items") end

for i = 1, tonumber(tArgs[1]) do
	for i = 1, 16 do
	   if turtle.getItemCount(i) > 0 then
		  turtle.select(i)
		  turtle.placeDown()
		  turtle.forward()
	   end
	end
end
Last time that I helped you, since you kinda make the people of my country a shame..
Lyqyd #21
Posted 07 April 2013 - 02:11 PM
Locked. This is not what Ask a Pro is for. Repeats of this entitled, childish behavior will result in moderator preview.