This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
tima_gt's profile picture

timaOS 1.0

Started by tima_gt, 10 May 2014 - 11:32 AM
tima_gt #1
Posted 10 May 2014 - 01:32 PM
Version 1.0 has been released! :)/>
Screenshot:

This os have programs:

tde-redstone for enabling/disabling redstone output
===========================================


tde-photo for capturing photos [need Computronics mod]
==============================================

Ice-Browser for browsing files
by Cutecurtain [link: http://www.computercraft.info/forums2/index.php?/topic/16754-file-browser-ice-browser/]

===========================


tde-settings
===================


Install:
> pastebin run rx52Vhqn
Edited on 11 May 2014 - 06:47 AM
Blue #2
Posted 11 May 2014 - 06:44 AM
This looks amazing! Definitely going to try this. :)/>

Suggestion: Give credit to the creator of the ice file browser.
Suggestion2: Add more programs! :P/>
EDIT: Instead of using "pastebin get" etc… You can use the fs api and the http api.It makes your installer more "professional".

example:

local download=fs.open("test","w") --replace test with the file you want to download
download.write(http.get("http://pastebin.com/raw.php?i=test").readAll()) ---replace test with the pastebin id
download.close()

EDIT2: I just tried this,the icons look amazing! Are you an artist?
Edited on 11 May 2014 - 08:57 AM
InputUsername #3
Posted 11 May 2014 - 10:30 AM



local download=fs.open("test") --replace test with the file you want to download
download.write(http.get("http://pastebin.com/raw.php?i=test").readAll()) ---replace test with the pastebin id
download.close()

A few remarks to your code:

local file = fs.open(<file>,"w") --you forgot the second argument
local download = http.get(<url>)
if (download) then --this will check whether anything was downloaded at all.
  file.write(download.readAll())
  file.close()
  download.close() --I always close the download 'file' handle too. Don't know if that's actually better but just to be safe.
end
That's how I would do it.

Anyway, on topic: the OS looks okay, but I think it needs a more consistent layout and interface. The functionality is good, the presentation isn't.
Edited on 11 May 2014 - 08:30 AM
asie #4
Posted 09 July 2014 - 09:30 PM
May I see a picture of tde-photo in action? :)/>