Jump to content


Matrixmage's Content

There have been 116 items by Matrixmage (Search limited from 10-February 22)


By content type

See this member's


Sort by                Order  

#47001 How can I use the data from fs.open?

Posted by Matrixmage on 04 November 2012 - 08:08 AM in Ask a Pro

By server and client I am talking about my minecraft client and the tekkit server that I use. And the data I would use would be a name and some kind of code for the person that the disk is for. The kind of data would a simple file (disk/ID perhaps?).



#46994 How can I use the data from fs.open?

Posted by Matrixmage on 04 November 2012 - 07:39 AM in Ask a Pro

Hi, I've never really used the fs API and I am trying to make a disk verification system for my friend, and I need to store the data on a file on the disk, how would I use the data I get from fs.open? (sorry for the redundancy, I'm doing this quickly)

P.S. I'm using tekkit so I have 1.3 of CC

also if I want to use the http API do I have to have it on on the server or just the client, or both?

Thanks in advance!



#42284 [SMP] [MC 1.2.5 | CC 1.33 / 1.41] Touch Pen v 1.11 - Touch your Monitors

Posted by Matrixmage on 20 October 2012 - 01:26 AM in Peripherals and Turtle Upgrades

View Postthesbros, on 11 October 2012 - 01:09 AM, said:

View Postsaul, on 10 October 2012 - 11:48 PM, said:

the toche moneter is cool but it lookes hared to do so but in thes codenets functionAwesomeness()
reader = you
while true do
if reader = you then
reader = Matrixmage
else
Awesomeness()
end
end love the ide (/undo up 12down 123)
First of all, use better Grammar, second, that could doesn't even work and isn't related to this mod at all.

He's been sending me crazy messages with next to no grammar, if you notice, that code he posted is my signature, it's like some weird stalking thing...



#42282 Tower of Power

Posted by Matrixmage on 20 October 2012 - 01:21 AM in Turtle Programs

A easy way of thinking of functions are that they are singular re-callable pieces of code.


Example:

function hi()
    print("Functions are awesome!")
end

hi()

This would print "Functions are awesome!", easy enough?

I made a GPS tower building program and made a "move" function for moving the turtle rather then having to write "turtle.forward()" over and over. All of the "turtle" api code are functions. Don't know if this helps but hope it does!

If you need some more help check here:

http://www.computerc...ials-resources/

This has lots of tutorials for some extra help.



#42278 Tower of Power

Posted by Matrixmage on 20 October 2012 - 01:03 AM in Turtle Programs

You are right that you can shorten the program, and I got a little tip to help with that. If I'm correct the program repeats the same code over, the way you can shorten it is by creating a function of the code that needs to be repeated, and then use a "for" loop for as many times as you need it. Hope this suggestion helps!

EDIT: After watching the video I see its not the same thing repeating, but you can still have separate functions for each step then "for" loops. Once again, hope this helps!



#38797 [LUA][Help]clearPrint fuction

Posted by Matrixmage on 10 October 2012 - 07:55 PM in Ask a Pro

ya, didn't fully look at the code :P/>



#38791 [LUA][Help]clearPrint fuction

Posted by Matrixmage on 10 October 2012 - 07:46 PM in Ask a Pro

put quotes around the the "w", the "o", and the "p", so it knows its a string, if I understand what you mean...



#34420 [1.42][SSP][Possible]Turtle can't turn on computers

Posted by Matrixmage on 26 September 2012 - 12:25 AM in Bugs

Wait what? You have to do that? Hrmmm... no one told me that.... AND when I put it in ask a pro, no one brought that up, and I'm pretty sure I mentioned that they were separate... Well that's a mystery solved, hope I didn't bug you guys TOO much :P/>

P.S. I'm sending this from my phone, so I can't test it yet, but I'm pretty sure that this will fix it, if it doesn't, I'll tell you. Again, Thanks!



#34404 [1.42][SSP][Possible]Turtle can't turn on computers

Posted by Matrixmage on 25 September 2012 - 11:42 PM in Bugs

I have to go, wont be able to give anymore input for the next 40 min or so... I'll check when I get back.



#34401 [1.42][SSP][Possible]Turtle can't turn on computers

Posted by Matrixmage on 25 September 2012 - 11:39 PM in Bugs

It is, it's at the top of the code, check my first post :P/>



#34399 [1.42][SSP][Possible]Turtle can't turn on computers

Posted by Matrixmage on 25 September 2012 - 11:34 PM in Bugs

Here's the function, also I'm 100% sure that the turtle is in front of the comp.

Spoiler



#34395 [1.42][SSP][Possible]Turtle can't turn on computers

Posted by Matrixmage on 25 September 2012 - 11:27 PM in Bugs

Its just a GPS tower building program, in a function, the variable is at the top though.



#34387 [1.42][SSP][Possible]Turtle can't turn on computers

Posted by Matrixmage on 25 September 2012 - 11:13 PM in Bugs

I am building a GPS tower building program, and i have been getting some help from the ask a pro section, and someone showed me the code to make a turtle turn on a computer, but once I implemented it I kept getting ":102: attempt to index ? (a nil value)". I then posted the offending code on the ask a pro section, only to have someone tell me that it should work. If its not already apparent, to reproduce the possible bug, use the peripheral.wrap code to try to turn on a computer with a turtle. If anymore info is needed, feel free to let me know. Also I'm using a wireless mining turtle.

The offending code, for reference:
local c = peripheral.wrap("front")

c.turnOn() --turn on the comp



#34384 Texture Problem

Posted by Matrixmage on 25 September 2012 - 11:05 PM in Bugs

Also, forge includes FML in it, or at least the one i got did... Just check the forge site.



#34382 [Tekkit 3.1.2] RedNet Not Working URGENT

Posted by Matrixmage on 25 September 2012 - 11:03 PM in Bugs

This probably should have been put in ask a pro, not bugs...



#34319 Variable String problem

Posted by Matrixmage on 25 September 2012 - 09:09 PM in Ask a Pro

might be good to have "password = input" rather then them both having "read()". Just a suggestion. Also you didn't end your first while loop :P/>



#34310 [Help][Lua] Turtle can't turn on a Computer...

Posted by Matrixmage on 25 September 2012 - 09:02 PM in Ask a Pro

View PostMtdj2, on 25 September 2012 - 08:03 PM, said:

I don't know if turtles can turn on turtles...
I do know computers can, but, well...
Maybe it's because of the local keyword, I dunno...
I hope i helped your braincells accelerate...

I don't really know what you mean... I'm trying to get my turtle to turn on a computer not a turtle... And I was thinking about posting this in the bugs section as a possible bug... If you guys can think of anything, let me know!



#34267 [Help][Lua] Turtle can't turn on a Computer...

Posted by Matrixmage on 25 September 2012 - 07:53 PM in Ask a Pro

I do have 1.42 and my wireless mining turtle is directly in front of the computer.



#34264 Getting Started

Posted by Matrixmage on 25 September 2012 - 07:49 PM in Ask a Pro

the sys req are the same as normal minecraft, but having at least 4 Gigs RAM would be good.

For installing, check the thread for a vidio, or direwolf20's channel.



#34263 [Help][Lua] Turtle can't turn on a Computer...

Posted by Matrixmage on 25 September 2012 - 07:46 PM in Ask a Pro

Sorry, I forgot to include it :P/>

I get

:102: attempt to index ? (a nil value)



#34258 [Help][Lua] Turtle can't turn on a Computer...

Posted by Matrixmage on 25 September 2012 - 07:42 PM in Ask a Pro

I have this code to make GPS towers, and I had asked someone for some help with getting a turtle to turn on a turtle, but now I have finished my code, and in testing, I found that i get a error every time it tries to turn on the computer.

Here's the offending code:
local c = peripheral.wrap("front")

c.turnOn() --turn on the comp

can someone help?



#34250 [LUA][QUESTION][PROGRAMMING] rs.setBundledOutput...

Posted by Matrixmage on 25 September 2012 - 07:26 PM in Ask a Pro

Hope it helps!
 
rs.setBundledOutput("back", colors.orange, colors.red)



#34211 How do I get a turtle to get a disk out of a drive?

Posted by Matrixmage on 25 September 2012 - 05:57 PM in Ask a Pro

View PostCranium, on 25 September 2012 - 05:39 PM, said:

By the way, your signature is a recursion nightmare... :P/>
Not related, but anyway...

ya I know that was the idea ;)/>



#34201 How do I get a turtle to get a disk out of a drive?

Posted by Matrixmage on 25 September 2012 - 05:34 PM in Ask a Pro

I just figured it out, turtle.suck(), and turtle.drop()... this was a waste of time :P/>

EDIT: Ninja'd, I guess... Thanks for the help anyway!



#34198 How do I get a turtle to get a disk out of a drive?

Posted by Matrixmage on 25 September 2012 - 05:25 PM in Ask a Pro

I'm making a turtle program, and I need a turtle to get a disk in/out of a drive, how would I do that, I've never really done anything with turtles before this program... so could someone help?