30 posts
Location
Earth
Posted 08 April 2013 - 12:29 AM
Hi guys, I made a program called RedSend, and I need help testing it because my pastebin isn't working. Here's the program and it's pastebin:
function RedSend()
term.setTextColor(colors.red)
print (“What side is your modem on?”)
input = read()
rednet.open( input )
print (“What is your username?”)
input = read()
user = (“[“, input,”] “)
term.clear()
term.setTextColor(colors.cyan)
function1 = function()
while true do
term.setCursorPos(1,19)
write (user)
input = read()
rednet.broadcast (user, input)
end
end
function2 = function()
while true do
print (rednet.recieve())
sleep(0.5)
end
parallel.waitForAll (function1, function2)
RedSend()
The pastebin for this program is:
.com:
http://www.pastebin.com/DrE2gAzyin-game: pastebin get DrE2gAzy redsend
Thanks for the help!
537 posts
Location
Copenhagen, Denmark
Posted 08 April 2013 - 12:34 AM
You can just save to %appdata%\.minecraft\saves\<some world>\computer\<computer ID>\somefile (provided you're on Windows), and run it from the computer with the corresponding ID. If you're on a multiplayer server, make sure that HTTP is enabled.
30 posts
Location
Earth
Posted 08 April 2013 - 03:31 AM
No, that doesn't work for me. I am the proud owner of a Mac! How would I reach that file on a Mac?
Nevermind, found out how
30 posts
Location
Earth
Posted 08 April 2013 - 03:37 AM
I tried and the error is still there. When I open it from Finder (I'm on a Mac, but once ou're inside the .minecraft folder everything is the same) the script is correct, but when I open it from the computer, every " is a ????????????ū! Does anyone know what is wrong with my ComputerCraft? I'll try reinstalling it…
30 posts
Location
Earth
Posted 08 April 2013 - 03:45 AM
Reinstalling didn't work, what could be wrong with it! Every other pastebin download or .txt I put in the "computer/1" file works, just not this one! Help would be… helpful.
EDIT: Also, if I can't fix this error, can someone else test this for me? Thanks,
515 posts
Location
Australia
Posted 08 April 2013 - 03:45 AM
Your quotes don't seem to be actually quotes, instead some kind of other character. Are you using the Apple United States keyboard?
36 posts
Location
United States
Posted 08 April 2013 - 05:42 AM
Mac is very sensitive to file formats, so I would try creating a program from the in game computer you're trying to use, then copy and paste the code into that from Finder. That will make sure that the format is right, and it might fix your problem.
Hope that helps!
182 posts
Posted 10 April 2013 - 11:54 AM
And if that doesn't help I could help you repost it with the correct stuff