17 posts
Posted 02 September 2012 - 01:42 AM
So i have a working time system which uses Minecraft Ingame time and i wanted to set a computer so when it starts up if put this program onto the Monitor so i wrote
shell.run monitor back updatingtime
what have i done wrong in order to get the error
bios:206: [string "startup"]:1: '=' expected
edit: just copyed the file accross using floppy disk, meaning i'll have to do that for each pc which is kind of annoying but oh well
144 posts
Location
Wellington, New Zealand
Posted 02 September 2012 - 01:47 AM
Hmm.. Try
shell.run("monitor", "back", "updatingtime")
I think that will work.
17 posts
Posted 02 September 2012 - 01:51 AM
comes up with bios:206: [string"updatingtimem"]:9: '9' expected on the monitor
144 posts
Location
Wellington, New Zealand
Posted 02 September 2012 - 01:56 AM
Well, If it writes that on the monitor then the startup is fine. You might just need to fix the In-game time program?
17 posts
Posted 02 September 2012 - 01:57 AM
heres the updatingtime program
function infiniteLoop()
while true do
local time = os.time()
time = textutils.formatTime(time, false)
term.clear()
term.setCursorPos(1,1)
write(time)
sleep(o.8)
end
end
infiniteLoop()
edit: I also firstly wrote this program in CC then copied it word by word on SciTE and saved it in modsComputerCraftluaromprograms
edit no.2: the original coding i did in minecraft works fine but i dont know how to copy that
Edited on 02 September 2012 - 12:07 AM
17 posts
Posted 02 September 2012 - 07:21 PM
ok i found the problem, when it sleeps i put (o.8) instead of (0.8)