Jump to content


Viproz's Content

There have been 27 items by Viproz (Search limited from 10-February 22)


By content type

See this member's


Sort by                Order  

#159138 [mc 1.6.2] [cc 1.56] Applied Energistics Peripheral

Posted by Viproz on 03 January 2014 - 03:21 PM in Peripherals and Turtle Upgrades

Any news about that mod ? It would be awesome if we could retrive item from an AE network with a turtle !



#148435 [Mc 1.5.2][Cc 1.53] Camera Peripheral

Posted by Viproz on 09 October 2013 - 11:07 AM in Peripherals and Turtle Upgrades

That looks very nice, thanks a lot !

We might can use it to detect resign cluster on rubber log :)


Edit : could you please allow in the config to set the noise level to 0 ?



#102086 Sending Tables?

Posted by Viproz on 26 March 2013 - 10:21 AM in Ask a Pro

rednetoutputs.diffselecteddiff = 5 
rednetoutputs[diffselected]
 
Maybe you just Forget rednetoutput. ?



#100775 Turtle dropoff function

Posted by Viproz on 23 March 2013 - 09:47 PM in Ask a Pro

local function numbItemsInInv()
  local items = 0
  for i = 1, 16 do -- Scan every slot of the turtle
    items = items + turtle.getItemCount(i)
  end
  return items
end
local function forward(forw)
  for i = 1,forw do -- it will execute the code forw times
    while not turtle.forward() do -- it will not leave while the turtle don''t move
	  turtle.dig()
	  turtle.attack()
    end
  end
end
local function empty() --Dropoff starts here
  turtle.select(16)
  turtle.placeUp()
  items = numbItemsInInv()
  while items ~= 0 do
    print("Try to empty the turtle's inventory")
    for i = 1,16 do -- Maybe it's to 17, i don't remember
	  turtle.select(i)
	  turtle.dropUp()
    end
    items = numbItemsInInv()
    if items ~= 0 then sleep(5) end
  end
  -- Here the inventory is obligatory empty
  print("Inventory is empty!")
  turtle.select(16)
  turtle.digUp()
end  --Ends here
inv = numbItemsInInv()
print(inv)
empty()

I didn't test it, I commented the code for the changes



#100762 [Turtle Help]Sign Placement

Posted by Viproz on 23 March 2013 - 08:39 PM in Ask a Pro

Hi,

This thing should work :
turtle.place("first line\nSecond line\nThird line\nFourth line")
\n is used to go to the next line



#100432 Trouble running FTB with ComputerCraft.

Posted by Viproz on 23 March 2013 - 01:10 AM in Ask a Pro

If you want to remove cc, remove also miscperipherals



#99251 little help with xpturtles (miscperipherals)

Posted by Viproz on 20 March 2013 - 01:52 AM in Ask a Pro

xpPeripheral = peripheral.wrap("right") -- mabe it's left i don't remember it when there is a sword
xpPeripheral.setAutoCollect(true) -- you don''t need to execute it more than one time (sorry for double cote, it''s not rendering well without in the forum)

while true do -- this loop will always run
	turtle.attack()
	if xpPeripheral.getLevels() >= 30 then
		turtle.select(16) --book or tools in this slot
		xpPeripheral.enchant(30)
	end
	sleep(0.5) -- to don''t run it too fast.
end

this will work !

PS : it's very hard to switch between c++ and lua (i put // instad of -- in my first post ;))



#99247 little help with xpturtles (miscperipherals)

Posted by Viproz on 20 March 2013 - 01:36 AM in Ask a Pro

well, you realy need to learn how to program, you can watch the direwolf20's vidéo or the SethBling's ones, in your code, if the syntax was correct, it would just run the first part, if false then will never run.



#99242 2 part question: changing id's and end program on key press?

Posted by Viproz on 20 March 2013 - 01:18 AM in Ask a Pro

for the second, you must use os.pullEvent(), see the wiki here : http://computercraft...ki/Os.pullEvent

For the fist question, i have no idea



#99239 little help with xpturtles (miscperipherals)

Posted by Viproz on 20 March 2013 - 01:08 AM in Ask a Pro

View Postmonkeybee11, on 20 March 2013 - 12:07 AM, said:

hi tryed wrighting a program for my auto exp farm and wanted to upgrade it to auto enchant
but it keeps coming back with errors :S
(have not unlocked brain in a jar on the server im playing on so for now its just sucking up the xp mobs drop)

if true then do
   turtle.attack()
   turtle.setAutoCollect(autocollect)
   turtle.select(16) --book or tools in this slot
   turtle.enchant("30")
end
if false then do
   turtle.attack()
   turtle.setAutoCollect(autocollect)
end

ofc its a meele xp turtle
plz and thx for the help :)

turtle.enchant("30") //Edit : Wow i didn't realise i was turtle. sorry fot that
You need to give an int, not a string so remove the "".

turtle.setAutoCollect(autocollect) //Edit :Wow i didn't realise i was turtle. sorry fot that
This require a bool (true or false) so i don't know what is your autocollect var.

Anf wtf is your if true then do ???

You need to learn a little bit lua to use it.



#98540 Ultimate Wood Chopper [0.9.5 Prerelease B][Session Persistent]

Posted by Viproz on 18 March 2013 - 06:03 AM in Turtle Programs

if the server (and the turtle) reboot, what is it gonna do ?



#98516 [Cc 1.56] [Mc 1.6.x] Someluigi's Peripheral(S) 2 - Welcome Back, Http Server

Posted by Viproz on 18 March 2013 - 04:45 AM in Peripherals and Turtle Upgrades

View PostAndroid, on 14 March 2013 - 01:33 AM, said:

You were asking for ideas... well, how about a Webcam-Block, which you could connect to your HTTP Server and which would provide still pictures?

Do you imagine the traffic it will use to upload a constant video ?



#98370 help! turtle gui not opening and crafting kicks the player

Posted by Viproz on 17 March 2013 - 09:03 PM in Ask a Pro

If you don't have errors, tell us with witch version on computercraft you are running and list your addons



#90048 [WIP] Modular CC Robotics [Dev Stage 1: 50%] [HELP WANTED]

Posted by Viproz on 22 February 2013 - 07:10 AM in Peripheral Help and Discussion

Good idea :)



#90042 CC Syntax Highlighting/Code Completions v1.2 - Sublime Text 2

Posted by Viproz on 22 February 2013 - 06:29 AM in APIs and Utilities

Waw i always wanted a real IDE for lua, with that it will be a lot easyer, thanks a lot !



#86944 turtle mob grinder

Posted by Viproz on 14 February 2013 - 07:03 AM in Ask a Pro

View Posttribalthomas, on 14 February 2013 - 05:43 AM, said:

i changed the code alittle
while true do
  while turtle.detectDown() = true do
	turtle.attack()
  end
end

now it says

[string "startup"]:2: 'do' expected

any ideas on how to fix it

to compare two objects, you need to put "==" and not "=" so :
while true do
  while turtle.detectDown() == true do
	turtle.attack()
  end
end

But you don't need to put this, just do :
while true do
  while turtle.detectDown() do
	turtle.attack()
  end
end

Edit : the turtle.detectDown() func only return true when there is a block down



#83485 [CC 1.5 | MC 1.4.7] Inventory Manager

Posted by Viproz on 03 February 2013 - 10:09 PM in Peripherals and Turtle Upgrades

If that's not gona corrupt my world, it's not a problem so i install it :)

I think you should add a security for players to don't steal theirs stuff, like you need a right click on the plate to authorize it to manage your stuff !



#83293 Resupply a turtle

Posted by Viproz on 03 February 2013 - 10:04 AM in Ask a Pro

You can do turtle.suck() when there is a chest in front (or turtle.suckUp/down())



#83165 [API][MiscPeripherals] Interactive Sorter ID/Meta Reader API

Posted by Viproz on 03 February 2013 - 03:19 AM in APIs and Utilities

I think this not work anymore in the last version of miscperipheral...



#82871 [CC 1.5 | MC 1.4.7] Inventory Manager

Posted by Viproz on 02 February 2013 - 08:52 AM in Peripherals and Turtle Upgrades

Oh this is fantastic, is it stable or can it crash my server ?

I can't wait adding this !



#73972 [CC1.53][MC1.5.2] MiscPeripherals 3.3

Posted by Viproz on 13 January 2013 - 09:47 PM in Peripherals and Turtle Upgrades

Please add XPTurtle to miscperipheral, the author give the permission to everybody :

View Postfaubiguy, on 08 January 2013 - 04:03 AM, said:

You're free to do whatever you want with it as long as I get partial credit.

It would be very nice !



#69730 Side parameter on redstone Event

Posted by Viproz on 06 January 2013 - 03:56 AM in Suggestions

Hi,

I think for the programs using redstone, it would be better if the event redstone return the side where the computer is powered.

just like that :

while true do
  event, side = os.pullEventRaw()
  if event == "redstone" then
	if side == "right" then
	  -- do something
	elseif side == "top" then
	  -- another thing
	end
  end
end

I hope you will add this small thing !



#69379 Problem with a function

Posted by Viproz on 05 January 2013 - 11:00 AM in Ask a Pro

this is just a function so where is the line 20 of your code ?



#69370 Forge will not load it

Posted by Viproz on 05 January 2013 - 10:54 AM in Ask a Pro

2013-01-04 21:50:33 [INFO] [STDERR] java.lang.IllegalArgumentException: Slot 4094 is already occupied by [email protected] when adding [email protected]

ID conflict between TF2 and CC but post your code into code balises !


Edit : Sorry with all of this long message and don't saw the others replies



#69244 Turtle Program only goes to the second slot when out of blocks, doesn't s...

Posted by Viproz on 05 January 2013 - 07:51 AM in Ask a Pro

every time you run the woodSlut function you reset the value to 1, define a = 1 in the "--[[ VARIABLES ]]--" !