Jump to content


ToxicC00kie1001's Content

There have been 6 items by ToxicC00kie1001 (Search limited from 10-February 22)


By content type

See this member's

Sort by                Order  

#278604 Artificial Inteligence in ComputerCraft - NeuralNetworks

Posted by ToxicC00kie1001 on 09 December 2018 - 10:14 PM in APIs and Utilities

How do I go about setting an objective for the ai? ex: Get 'x' value as high as possible. I'd also like to know how to go about telling it what it can use like certain functions and such. ex: Use function1(), function2(), etc. In the end should be something like: Get 'x' as high as possible using function1(), function2(), etc.



#277638 YABA (Yet another button api)

Posted by ToxicC00kie1001 on 22 June 2018 - 07:18 AM in APIs and Utilities

An example program would better my understanding of this.



#277637 Titanium - Graphical User Interface (GUI) Framework [Beta 1] - XML

Posted by ToxicC00kie1001 on 22 June 2018 - 06:31 AM in APIs and Utilities

It would be helpful if you made a youtube video showing the exact steps that need to be taken to use this. It's rather hard for me to understand which sucks because I'd love to use it in programs I make.



#277284 Rednet refuses to work (Bug?)

Posted by ToxicC00kie1001 on 16 May 2018 - 05:23 AM in Ask a Pro

View PostLuca_S, on 16 May 2018 - 05:17 AM, said:

View PostToxicC00kie1001, on 16 May 2018 - 05:14 AM, said:

View PostLuca_S, on 16 May 2018 - 05:11 AM, said:

1. Put your code in Codeblocks when posting on the Forum or, if the code is large, publish it on Pastebin
2. Your send program sends the rednet message to the computer it is currently running on and not to the computer that runs the receive script.

1. Noted
2. How do I correct this?

Check the documentation for rednet.send it requires you to give the ID of the receiving computer as the first argument. So in both cases where you are using rednet.send replace the 1 with the ID of the receiving computer(4)

Worked perfectly! Many thanks. :lol:



#277281 Rednet refuses to work (Bug?)

Posted by ToxicC00kie1001 on 16 May 2018 - 05:14 AM in Ask a Pro

View PostLuca_S, on 16 May 2018 - 05:11 AM, said:

1. Put your code in Codeblocks when posting on the Forum or, if the code is large, publish it on Pastebin
2. Your send program sends the rednet message to the computer it is currently running on and not to the computer that runs the receive script.

1. Noted
2. How do I correct this?



#277279 Rednet refuses to work (Bug?)

Posted by ToxicC00kie1001 on 16 May 2018 - 05:04 AM in Ask a Pro

Ok so I'm new to using lua and all I'm trying to do is make a simple program that wirelessly enables and disables the lights. The only problem is how stupidly complex rednet is rednet won't work. Every time I tell it to turn on or off, computer 1 shows the appropriate response to my inputs while computer 2 is still waiting for input from computer 1. I tried searching for examples and stuff online and the wiki to no avail so this is my last resort. Am I doing something wrong or have I discovered a bug?

Computer 1's code (Sender):

--Computer id is 1

print("Lamp on or off?")
print("1=On 0=Off")

rednet.open("back") --modem is indeed here and within range

ans = io.read() -- ans is what the user requested

if ans == ("1") then
rednet.send(1, "1")
print("Turned it on!")

elseif ans == ("0") then
rednet.send(1, "0")
print("Turned it off!")

else
print("Invalid Input")
end

Computer 2's code (Receiver):

--Computer id is 4

rednet.open("back") --modem is indeed here and within range

ans = rednet.receive()

if ans == ("1") then
redstone.setOutput("left", true) --Lamp is indeed here

elseif ans == ("0") then
redstone.setOutput("left", false) --Lamp is indeed here

else
print("Invalid Input!")
end