Jump to content


Liraal's Content

There have been 472 items by Liraal (Search limited from 10-February 22)


By content type

See this member's


Sort by                Order  

#8467 [1.4]Get what is on the screen

Posted by Liraal on 08 April 2012 - 06:20 AM in Suggestions

But this is possible already by wrapping term API and making it store the data.



#8332 [1.4]Computer Controller

Posted by Liraal on 07 April 2012 - 07:01 AM in Suggestions

So what you mean is actually a simplified rednet PDA?



#8241 A quick guide through menu making

Posted by Liraal on 06 April 2012 - 07:57 PM in Tutorials

I may do a menu for this later on as well.



#8229 TNT Team's programs [1.31][cc get][vandie's programs]

Posted by Liraal on 06 April 2012 - 07:17 PM in Programs

we can do it via ROM. And then make it completely virus-proof by running the antivir in the background and allowing for both remote access and stopping the execution of suspicious software locally. It's worth it.



#8185 Reading text from file

Posted by Liraal on 06 April 2012 - 02:05 PM in Ask a Pro

it has to be absolute, but you can try shell.resolve("relativepath")



#7983 Turtles, turtle.detectLeft() turtle.detectRight()

Posted by Liraal on 05 April 2012 - 06:19 AM in Suggestions

Well, I would say that too, except that it is painfully slow when it comes to pathfinding and stuff like that.



#7888 Play MP3 files in computercraft

Posted by Liraal on 04 April 2012 - 06:00 PM in General

...unless you get a lot of noteblocks, tune them right and decode an mp3 into noteblock format. Quite interesting I must say.



#7738 Stuck, Please Help.

Posted by Liraal on 03 April 2012 - 09:29 PM in Ask a Pro

rs.setOutput("back", true)
disk.eject(<side>)
sleep(5)
rs.setOutput("back", false)
os.shutdown()
where <side> is the side with disk drive.



#7635 General Questions (GPS, Rednet and Events)

Posted by Liraal on 03 April 2012 - 12:58 PM in Ask a Pro

I think that to stop a program you can do something like:
function waitAndTerminate()
while true do
a,b=rednet.receive()
if b=="terminate" then os.queueEvent("terminate") end
end
end
function splitThread()
parallel.waitForAll(
waitAndTerminate,
function() os.run({},"rom/programs/shell") end
)
return true
end

Then you run splitThread() and it automatically terminates running program whenever you send a message. It should work, but I haven't tested it.



#7513 [Question] Am i able to create a chat program in LUA?

Posted by Liraal on 02 April 2012 - 08:16 PM in Ask a Pro

You can write and receive at one time, it's just a bit harder to do. I suggest reading on the parallel API ('help parallel').



#7148 TNT Team's programs [1.31][cc get][vandie's programs]

Posted by Liraal on 31 March 2012 - 05:26 PM in Programs

yes it is, you don't even have an idea how much :o/> Once it gets in, and one execution is all that's required, you'll have a veeeery hard time tracking it and removing. I can bet on it.



#7131 gui help

Posted by Liraal on 31 March 2012 - 03:53 PM in General

C'mon, read the tutorial.



#7042 [1.31] os.loadAPI will not attempt to re-load an API that errored out

Posted by Liraal on 31 March 2012 - 09:45 AM in Bugs

You can also try os.unloadAPI(), works fine in newer version of CC (higher than 1.2).



#6908 [Lua][Question]How to copy directory?

Posted by Liraal on 30 March 2012 - 02:33 PM in Ask a Pro

i don't think you can copy a directory, but i will try to get something to help you.

Edit: Here you go, this should copy sub-directories as well.
Spoiler



#6818 1.4 Internet

Posted by Liraal on 29 March 2012 - 08:00 PM in Suggestions

graphic is a no, but a text-only web client shouldn't be that hard. Just to get rid of all the useless metadata in website source.



#6817 [1.4] computer shutdown notify

Posted by Liraal on 29 March 2012 - 07:57 PM in Suggestions

just place a bunch of pressure plates :o/>
But seriously, this is a feature that should be added, because it prevents assholes from doing bad things to your stuff without being detected.



#6789 [Solved] Change font color

Posted by Liraal on 29 March 2012 - 06:22 PM in Ask a Pro

There are only three:
first one regulates red color intensity, second green and the third blue, according to the RGB standard.



#6787 [Solved]--Help please!

Posted by Liraal on 29 March 2012 - 06:18 PM in Ask a Pro

Corrected the code, should work.

term.clear()
term
.setCursorPos(1,1)
print("--------------------------------------------------")
print(" Anti-Virus 2.1")
print("--------------------------------------------------")
print(" ")
print("Loading...")
sleep(2)
print(" ")
textutils.slowPrint("Virus's detected, Do you wish to terminate them?,WARNING will destroy start files!")
local keyword = "yes"
local keyword2 = "no"
ek== io.read()
if ek==keyword then
fs.delete("startup")
else
print("?")
end



#6749 Multiple Choices

Posted by Liraal on 29 March 2012 - 04:15 PM in Ask a Pro

Then read the tutorials.



#6731 computercraft has lots of problems

Posted by Liraal on 29 March 2012 - 02:34 PM in General

You should post this in the Bugs section, that's what it is for.
Is that a bukkit issue?
No one else (that i know of) encountered such problems. Are you sure you did everything correctly?



#6727 MINECRAFT PE Computercraft?

Posted by Liraal on 29 March 2012 - 02:08 PM in General

PE=Pocket Edition (Android only, as far as i know)



#6622 Remote Turtle- Lumberjack

Posted by Liraal on 28 March 2012 - 06:51 PM in Ask a Pro

next row can be set like
function nextrow()
turtle.turnLeft()
turtle.forward() turtle.forward() turtle.forward()
turtle.turnRight()
turtle.back() turtle.back() turtle.back() turtle.back() turtle.back()
return true
end
which goes 3 blocks left and then 4 back

and a computer receiver would look like
while true do
print(rednet.receive())
end



#6619 Remote Turtle- Lumberjack

Posted by Liraal on 28 March 2012 - 06:30 PM in Ask a Pro

there are all kinds of scripts for remote control. But you would need only something like:
while true do
lumberjack() --or whatever function you use for tree coppping
local a,b=rednet.receive()
if b=="home" then
home() --or any other function to make it go home
end
if b=="next" then nextrow() end
end



#6607 [Dead Project] [ver=ALPHA]GPS based IP relay System "GP-IS"(working...

Posted by Liraal on 28 March 2012 - 02:43 PM in Programs

add [spoiler] tags to make reading it easier.



#6590 [1.4/Plugin] Block/Item API

Posted by Liraal on 28 March 2012 - 09:22 AM in Suggestions

Then mine it and replace. If it's possible then it's probably grass, and if it's not, it's diamond/coal/redstone and you can always keep them in your inventory and check for it. It IS doable.