need a program to build pipe network
#1
Posted 31 March 2013 - 03:23 AM
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
#2
Posted 31 March 2013 - 05:03 AM
We can help you debug your program, but we won't write it for you.
#3
Posted 31 March 2013 - 05:11 AM
#4
Posted 31 March 2013 - 05:15 AM
#5
Posted 31 March 2013 - 05:38 AM
Anyway, start writing the program, and come back here if you get stuck.
#6
Posted 31 March 2013 - 05:38 AM
#7
Posted 31 March 2013 - 05:49 AM
I just asked for a program and yes I've tried to create a program itself but
it still did not work
#8
Posted 31 March 2013 - 05:55 AM
( pipe:12: attempt to preform arihmetic __add on nil and number
programm mayde bij pro coder
#9
Posted 31 March 2013 - 06:08 AM
#10
Posted 31 March 2013 - 06:10 AM
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.
#11
Posted 31 March 2013 - 06:12 AM
realy i thought on a forum we help every one but i thats a dream i think
#12
Posted 31 March 2013 - 07:04 AM
i get 18:expected number
thanks already
#13
Posted 31 March 2013 - 05:44 PM
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?
#14
Posted 31 March 2013 - 05:55 PM
oostwolder, on 31 March 2013 - 06:12 AM, said:
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 ?
#15
Posted 31 March 2013 - 06:44 PM
TheOriginalBIT, on 31 March 2013 - 05:55 PM, said:
oostwolder, on 31 March 2013 - 06:12 AM, said:
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.
#16
Posted 01 April 2013 - 06:55 AM
i am asking for this thread to be locked
#17
Posted 02 April 2013 - 12:49 PM
LuaEclipser, on 01 April 2013 - 06:55 AM, said:
i am asking for this thread to be locked
#18
Posted 07 April 2013 - 10:01 AM
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
#19
Posted 07 April 2013 - 10:14 AM
#20
Posted 07 April 2013 - 11:11 AM
oostwolder, on 07 April 2013 - 10:01 AM, said:
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
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..
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


This topic is locked








