This is a read-only snapshot of the ComputerCraft forums,
taken in April 2020.
Unable to save program
Started by jon9613, 31 January 2013 - 03:44 PMPosted 31 January 2013 - 04:44 PM
im trying to save my password program and it still doesnt work :/
Posted 01 February 2013 - 01:05 AM
Oh wow. We need information. We need your code. We need documentation on what you did to cause this. We need information on what you did.
Posted 01 February 2013 - 03:36 AM
and we need you to look into older threads like this, because this question seems to pop up every other day..
Posted 01 February 2013 - 05:10 AM
Okay so i wrote a password program that would then open a gate it was this:
then i built a disk drive using 7 stone 2 redstone, i build a floppy using 1 paper and 1 redstone then i placed directly beside the computer and the floppy disk in.
i then go onto the computer in the main dir with only rom and my password and i type copy password(my program is named password) disk/password and when i do this i get a message that says access denied. iv tried writing new programs iv tried building new computers new disk drives new disks.
password="123"
side = "back"
while true do
term.clear()
term.setCursorPos(1,1)
guess = read("*")
if password == guess then
rs.setBundledOutput(side,colours.white)
sleep(.5)
rs.setBundledOutput(side,0)
sleep(.5)
rs.setBundledOutput(side,colours,white)
sleep(.5)
rs.setBundledOutput(side,0)
sleep(.5)
rs.setBundledOutput(side,colours.white)
sleep(3)
rs.setBundledOutput(side,0) --Then i repeat all the outputs again 3 times to a purple cable to close gate
end
end
then i built a disk drive using 7 stone 2 redstone, i build a floppy using 1 paper and 1 redstone then i placed directly beside the computer and the floppy disk in.
i then go onto the computer in the main dir with only rom and my password and i type copy password(my program is named password) disk/password and when i do this i get a message that says access denied. iv tried writing new programs iv tried building new computers new disk drives new disks.
Posted 01 February 2013 - 05:14 AM
also is there a way i can set the rs.setBundledOutput(side,colours) to a 1 second pulse so i don't have to do rs.setBundledOutput(side,0) every time?
Posted 01 February 2013 - 06:14 AM
idk why you cant save, but for the pulse you can create a function like this
thatll make a 3 second pulse
function rs.setBundledOutputPulse(side,colours,pulse)
rs.setBundledOutput(side,colours)
sleep(pulse)
rs.setBundledOutput(side,0)
end
then run it by typing for instance rs.setBundledOutputPulse("top",colours.white,3)thatll make a 3 second pulse
Posted 01 February 2013 - 09:43 AM
okay cool thank you very much:)
Posted 01 February 2013 - 09:50 AM
Out of curiosity, are you developing this program on a multi-player server?
Some servers don't allow you to save programs to a floppy disk, with some reasons being that it creates a new itemID. Which could be causing your save issue.
Some servers don't allow you to save programs to a floppy disk, with some reasons being that it creates a new itemID. Which could be causing your save issue.
Posted 01 February 2013 - 09:51 AM
Alternatively are you using any multi launcher or some strange setup for Minecraft?
Could be something like local file permissions.
Could be something like local file permissions.
Posted 01 February 2013 - 10:43 AM
you are either touching rom, or target folder / target file is opened with fs