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

Graphic Explorer for CraftOS

Started by Corona, 15 February 2014 - 04:20 PM
Corona #1
Posted 15 February 2014 - 05:20 PM
Hello everyone!

Since this is my first post in this forum, consider this also an introduction to myself; I'm 16, come from the lovely Austria (Not to be mistaken Australia) and am currently Studying at the TGM in Vienna.
But enough of me and more about a little project I am working on quite a long time on (exactly 2 weeks :P/>): My Computercraft Graphic Explorer
I wasn't sure if anything like this is out there or anything like this is currently in development, but since I'm a very rude and careless person I ignored that and coded one myself.

For all of you, who want a little backstory here is one:
As much as I love Computercraft, dan200 and CraftOS in the current version of 1.5 (i think it is), as much I hate the fact, that everything has to be typed with commands. I mean, yeah, DoS wasn't different and text operating systems are fine and dandy, but I wanted to freaking use my mouse!
So I started, with the computing skills I gathered till then, developing a visual user interface to interact with the system, much like the Finder in MacOS or the explorer in Windows and Linux do.

Now that you know the reason why I developed and still developing this piece of software, let's move on to the features:
  • Folder Switching
  • File Execution
  • A Context Menu via Rightklick with:
  1. Execution
  2. Editing
  3. Copy
  4. Paste (Only if something is in the clipboard)
  5. Renaming
  6. Delete
  • Realtime Clock (for changing the timezone and offset, you have to dig into the code for now :3)
  • Taskbar Menu (as of 0.5)
  • Automatic update routine, so that you get the latest the fastest! <– NEW IN VERSION 0.32!
Screenshots:
Spoiler










If that didn't convince you, be sure to check it out at least!

PLEASE READ BEFORE CONTINUING:
You'll need the screen API too, also coded by myself. Just place it into "/apis/screen" or place it anywhere and then change the path in the explorer code (:


Thank's to [member='Thib0704']'s suggestion and code, there is only the need for the explorer itself. Enjoy! (;

Pastebin Code for the Explorer: http://pastebin.com/SCv9r7y7
Pastebin Code for the Screen Api: http://pastebin.com/uRpaiUB3


Here just a few things said:
  • Please understand the my native language is German and my English does read wonky at some parts or even doesn't make sense. You are thankfully encouraged to point me to this mistakes, be it per Message or per Post (:
  • My Profile is just being deployed, as I wanted to Sign Up here waaaay earlier as did, so yeah, nothing to say about anything :P/>
  • You are welcome to add me as friend, because I am so excited to meet new people who like Lua and Computercraft as much as I do! (:
Edited on 17 April 2014 - 11:33 AM
Lyqyd #2
Posted 15 February 2014 - 08:44 PM
Moved to Operating Systems.
Himself12794 #3
Posted 21 February 2014 - 01:04 AM
Moved to Operating Systems.
Very good looking, will definitely try when I have a chance.
Corona #4
Posted 21 February 2014 - 09:34 AM
Wow i thought this thread was dead before it even started to live! :D/> Thank you so much for looking into my project, even though, it's definetily not the best one (:

Although, there IS one known Bug right now: If you copy something into clipboard, then delete it and then try to paste the file, the explorer crashes with a "No such File" exception, but this is rather easy to fix so yeah ^^
Thib0704 #5
Posted 21 February 2014 - 10:58 AM
Nice design!
I do suggest adding this:

local screenAPI = "uRpaiUB3"
if fs.exists("/apis/screen") then
   local response = http.get("http://pastebin.com/raw.php?i="..screenAPI)
   local sResponse = response.readAll()
   fs.makeDir("/apis")
   fs.open("/apis/screen" ,"w").write(sResponse).close()
end

In your startup somewhere,
so people don't need to get the screen API themself.
Corona #6
Posted 21 February 2014 - 11:11 AM
Hm i was thinking about implementing it anyway, but for now it's seperated, so this might be a very good idea! Still thank you all for testing this and giving suggestions, I couldn't be happier ^^
Lyqyd #7
Posted 21 February 2014 - 12:26 PM
If you do add that, you should change the if to use `if not fs.exists` so it will only download the file if necessary rather than on every startup.
Corona #8
Posted 21 February 2014 - 12:45 PM
Yeah I did in fact change that and modified the code otherwise, but I'll still credit [member='Thib0704'] for the idea and initial code. And thank you [member='Lyqyd'] for the moval and the suggestion (:
misson20000 #9
Posted 21 February 2014 - 09:10 PM
Screenshots?
Corona #10
Posted 22 February 2014 - 06:09 AM
I wasn't able to put in screenshots though I didn't have 3 posts back then, if it#s possible now, then some will follow shortly! (:
H4X0RZ #11
Posted 22 February 2014 - 07:12 AM
I really linke it :)/>
Corona #12
Posted 28 February 2014 - 03:01 PM
I think it's been too silent around here, so I announce an upcoming update, that will probably make you consider using this ^^ Stay tuned! (;

EDIT: I'm having so much to do right now, that I cannot finish the 0.4 distibution of the explorer, which would make it pretty reliant and useful )): I hope anyone, who is still interested in this project, stays interested, because I really wanted to get into something with this forum :3
Edited on 05 March 2014 - 08:12 PM
Blue #13
Posted 15 April 2014 - 04:30 PM
I love the style of this.Sort of like a mix between windows 8 and a file manager.One suggestion:the ability to change the background color because not everyone likes a dark void :)/>
Corona #14
Posted 17 April 2014 - 01:20 PM
I'm currently working on my server, so this project is queued, but I did in fact consider an option menu. (: I'll rewrite the whole thing from scratch, because the code is messy as hell, but that'll take some time (:
Blue #15
Posted 20 April 2014 - 07:05 PM
i just got an idea: make this pocket computer compatible :o/>
Corona #16
Posted 20 April 2014 - 10:05 PM
This is a great one! I'm currently working on an iOS-like Operating System for the pocket computers with Application hooking (so you can write your own apps and add it to the homescreen), but that is just in the prepreprepreprepreAlpha Phase, so yeah :DD
CptBlank #17
Posted 22 April 2014 - 01:07 PM
Raaageee..


Look at this error……
Look!
bios:500: Domain not permitted! how to fix this huh?
Corona #18
Posted 22 April 2014 - 01:08 PM
Wheeeeeeere? o.O
Of course there are errors, but I've never encountered this one…

How did it occur?
Edited on 22 April 2014 - 11:08 AM
CptBlank #19
Posted 22 April 2014 - 01:32 PM
i just first time downloaded the explorer as file-explorer
i did launched it
as soon as it launched the gui it showed error
Corona #20
Posted 22 April 2014 - 01:39 PM
maybe you leave out the "-", I don't know the effects of non-character names in computercraft. Try it by naming the File "explorer" or something like this.
Furthermore, you have to have HTTP API enabled (Which I assume you have), otherwise it cannot download my screen API. It's still an Alpha build, so I apologize for the problems.
CptBlank #21
Posted 22 April 2014 - 03:38 PM
xD i have http api enabled,Seems i cant even run oeed's installer because i get the same error
Corona #22
Posted 22 April 2014 - 03:46 PM
Well that's annoying, but at least it's not my program that's causing it (:
CptBlank #23
Posted 22 April 2014 - 03:48 PM
edit:there. :D/> i have CC 1.6.3 That needs whitelisting of websites
So generaly i needed to whitelist timeapi.org

EDIT2:Okay it works.But the explorer seems to "Refresh"
like its re-rendering the whole program
Edited on 22 April 2014 - 02:06 PM
Corona #24
Posted 22 April 2014 - 05:13 PM
It's the clock, it's spamming timer events all over the place to keep the time in sync, maybe that's a hassle for the new Computercraft 1.63 Thread system. I'll take that into consideration with the next update, so that you can turn down the refresh speed and even turn off the clock entirely. I'm sorry, that it's not working properly on CC 1.6, I'm still using 1.58 because of compatibility issues (:
Ascal #25
Posted 22 April 2014 - 06:34 PM
Error 617 Attempt to index ?
CraftOS 1.5


I am reported ^^
Corona #26
Posted 22 April 2014 - 06:42 PM
That's a bug, which I'm not sure of, but it just pops up randomly at some times, doesn't it? As long, as it doesn't affects usage, it's fine I guess.