Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- put the pastebin.com programs as "hash name" in variable table called
- -- pastebin_progs, remember to enclose each in quotes and seperate from one
- -- another with commas as I have done below.
- -- by default I have chosen my dig, do, flip, masscopy, suck and b programs, plus
- -- MIZE's f,l,r,d,u and quarry_setup programs
- -- Also I have chosen Megabuild's bore program
- -- da404lewzer's TACO program editor
- -- and AustinKK's quarry program
- -- and last but not least TurtleScripts.com very own TurtleMarket program
- -- this program will preload into your turtle all of the programs listed in
- -- both arrays.
- -- if you use this with a floppy drive attachment, the masscopy program
- -- can be used to copy everything in one path to another, ie
- -- masscopy / /disk/
- -- will load everything from the turtle's top directory to the floppy in
- -- the floppy drive.
- -- reverse that to load up another turtle.
- function explode(div,str)
- if(div=='') then return false end
- local pos,arr = 0,{}
- for st,sp in function() return string.find(str,div,pos,true) end do
- table.insert(arr,string.sub(str,pos,st-1))
- pos=sp+1
- end
- table.insert(arr,string.sub(str,pos))
- return arr
- end
- function preDelete(txt)
- return explode(" ",txt)[2]
- end
- pastebin_progs={"h9Ct7VGM apartments","hxeZ5Wui bHouse","unPPhDpQ buildMobFarm","sVnkHJ4n quarry","RAHj4r2K shape_builder","tQutzmaX osXtndr","pa8LvVWe swarm","yQzAq3Ed chat","CEuzpJii back","cMfB876K dig","pGCqPnfW do","AyPGRaKz dump","aTH46EFv fencebuilder","f48cHZ16 flip","nkrrGPCL goto","wXWHAUXA masscopy","g1ET6kDD place","wsVknbkn platform","81J0zk95 stairs","Cdc9zjs6 suck","NJBXZQ6c NearEDGE-Functions","P0yThxen bore","JbFMHaNg verticleMine"}
- -- we start with the pastebin programs as that where 'market' is and we need
- -- that for the turtleMarket programs.
- for i=1,#pastebin_progs do
- shell.run("rm "..preDelete(pastebin_progs[i]))
- shell.run("pastebin get "..pastebin_progs[i].." y")
- end
- print("All Done with PRELOAD!")
Add Comment
Please, Sign In to add comment