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

Cake Os Filemanager

Started by Lewisk3, 27 September 2013 - 09:44 PM
Lewisk3 #1
Posted 27 September 2013 - 11:44 PM
CakeOS v1.5.2


Download .zip: http://www.korbincraft.com/CakeOS/CakeOS.zip


SpoilerInstallation:

Download Zip put files in saves/(yourworldname)/computer
open computer id folder

drop Cake
and CakeOS
in folder

and your finished

Comment if u have any Problems/suggestions


ScreenShot


Spoiler
Zudo #2
Posted 28 September 2013 - 03:12 AM
.zip or Pastebin please :(/>

Also, I would like some screenshots.
Lewisk3 #3
Posted 28 September 2013 - 04:49 PM

.zip or Pastebin please :(/>

Also, I would like some screenshots.


There is a .zpi
added screenshot
Zudo #4
Posted 28 September 2013 - 05:03 PM
.zip or Pastebin please :(/>

Also, I would like some screenshots.

There is a .zpi
i will add screenshots

That quite clearly says .rar


EDIT:
Hold on, look at this crappy code


function cre()
shell.run("cd" ,"/")
term.clear()
term.setBackgroundColor(colors.lightBlue)
term.clear()
term.setBackgroundColor(colors.blue)
term.setCursorPos(1,1)
term.clearLine()
term.setCursorPos(1,1)
print "CakeOS v1,6 By Kcraft -> Create"
term.setCursorPos(51,1)
term.setBackgroundColor(colors.red)
print "X"
ce = paintutils.loadImage("cake")
paintutils.drawImage(ce,1,1)
term.setBackgroundColor(colors.blue)
term.setCursorPos(8,5)
print "                          "
term.setCursorPos(8,6)
print " Create:/                 "
term.setCursorPos(8,7)
print "                          "
term.setCursorPos(18,6)
input = read()
if input == "back" then
base()
else
term.setCursorPos(10,10)
term.setBackgroundColor(colors.green)
print "             " -- 24
term.setCursorPos(10,11)
print " -> Ok       "
term.setCursorPos(10,12)
print "             "
term.setCursorPos(30,10)
term.setBackgroundColor(colors.red)
term.setCursorPos(29,10)
print "             "
term.setCursorPos(29,11)
print " -> Cancel   "
term.setCursorPos(29,12)
print "             "
m = "0"
while m == "0" do
local event, button, X, Y = os.pullEventRaw()
if event == "mouse_click" then
if X >=10 and X <=24 and Y >=10 and Y <=12 and button == 1 then
term.setCursorPos(10,3)
file = fs.open(input,"w")
file.write("--]] File: "..input.." [[--")
file.close()
sleep(2)
print "File Created!"
event = os.pullEvent()
m = "1"
cre()
elseif X >=30 and X <=42 and Y >=10 and Y <=12 and button == 1 then
term.setCursorPos(10,3)
print "File Creation Canceled"
event = os.pullEvent()
m = "1"
cre()
end
end
end
end
end
Lewisk3 #5
Posted 28 September 2013 - 05:23 PM
.zip or Pastebin please :(/>

Also, I would like some screenshots.

There is a .zpi
i will add screenshots

That quite clearly says .rar


EDIT:
Hold on, look at this crappy code


function cre()
shell.run("cd" ,"/")
term.clear()
term.setBackgroundColor(colors.lightBlue)
term.clear()
term.setBackgroundColor(colors.blue)
term.setCursorPos(1,1)
term.clearLine()
term.setCursorPos(1,1)
print "CakeOS v1,6 By Kcraft -> Create"
term.setCursorPos(51,1)
term.setBackgroundColor(colors.red)
print "X"
ce = paintutils.loadImage("cake")
paintutils.drawImage(ce,1,1)
term.setBackgroundColor(colors.blue)
term.setCursorPos(8,5)
print "						  "
term.setCursorPos(8,6)
print " Create:/				 "
term.setCursorPos(8,7)
print "						  "
term.setCursorPos(18,6)
input = read()
if input == "back" then
base()
else
term.setCursorPos(10,10)
term.setBackgroundColor(colors.green)
print "			 " -- 24
term.setCursorPos(10,11)
print " -> Ok	   "
term.setCursorPos(10,12)
print "			 "
term.setCursorPos(30,10)
term.setBackgroundColor(colors.red)
term.setCursorPos(29,10)
print "			 "
term.setCursorPos(29,11)
print " -> Cancel   "
term.setCursorPos(29,12)
print "			 "
m = "0"
while m == "0" do
local event, button, X, Y = os.pullEventRaw()
if event == "mouse_click" then
if X >=10 and X <=24 and Y >=10 and Y <=12 and button == 1 then
term.setCursorPos(10,3)
file = fs.open(input,"w")
file.write("--]] File: "..input.." [[--")
file.close()
sleep(2)
print "File Created!"
event = os.pullEvent()
m = "1"
cre()
elseif X >=30 and X <=42 and Y >=10 and Y <=12 and button == 1 then
term.setCursorPos(10,3)
print "File Creation Canceled"
event = os.pullEvent()
m = "1"
cre()
end
end
end
end
end


How is it crappy?
Zudo #6
Posted 28 September 2013 - 05:39 PM
- Mad snip skills -
  1. You don't indent.
  2. You recursively call cre(). This causes the program to keep making the ce variable, and recursive looping is bad anyway.
  3. Ever heard of string.rep() ? See below.
  4. There is a number type. Look at m = "1"

term.setCursorPos(8,7)
print "						  "
term.setCursorPos(18,6)

EDIT: Fixed screwed up BBCode.
Edited on 28 September 2013 - 03:43 PM
Lewisk3 #7
Posted 28 September 2013 - 07:50 PM
why does it matter what the code looks like it works right?
thats what matters :P/>

- Mad snip skills -
  1. You don't indent.
  2. You recursively call cre(). This causes the program to keep making the ce variable, and recursive looping is bad anyway.
  3. Ever heard of string.rep() ? See below.
  4. There is a number type. Look at m = "1"

term.setCursorPos(8,7)
print "						  "
term.setCursorPos(18,6)

EDIT: Fixed screwed up BBCode.
i would like to see u script over 300 lines of code once you've done that i will let u complain about my code but until u do so STOP being so picky!

i fixed the code
Kingdaro #8
Posted 28 September 2013 - 08:08 PM
i would like to see u script over 300 lines of code once you've done that i will let u complain about my code but until u do so STOP being so picky!
Bragging about having more lines is never a good thing to do. You're basically bragging that your code is more bloated than others. Lines don't even matter anyway, since you can put as much code as you want into one line.
Lewisk3 #9
Posted 28 September 2013 - 08:49 PM
i would like to see u script over 300 lines of code once you've done that i will let u complain about my code but until u do so STOP being so picky!
Bragging about having more lines is never a good thing to do. You're basically bragging that your code is more bloated than others. Lines don't even matter anyway, since you can put as much code as you want into one line.

i was just upset because ZudoHackz was
picking on every letter of my code
willwac #10
Posted 28 September 2013 - 09:16 PM
why does it matter what the code looks like it works right?
thats what matters :P/>

- Mad snip skills -
  1. You don't indent.
  2. You recursively call cre(). This causes the program to keep making the ce variable, and recursive looping is bad anyway.
  3. Ever heard of string.rep() ? See below.
  4. There is a number type. Look at m = "1"

term.setCursorPos(8,7)
print "						  "
term.setCursorPos(18,6)

EDIT: Fixed screwed up BBCode.
i would like to see u script over 300 lines of code once you've done that i will let u complain about my code but until u do so STOP being so picky!

i fixed the code

You may make someting that a COMPUTER to read, but the HUMAN must be able to read it well to,

It's good software development.
LBPHacker #11
Posted 29 September 2013 - 03:55 AM
Yeah, well, you can hate me, if you want
Spoiler
-snip-
People might get upset if you humiliate them directly on a forum; don't do that. You know, this is not the forum of Awesome Operating Systems.

why does it matter what the code looks like it works right?
It matters because people will like your programs more if they don't crash. (Talking about recursively calling cre.)

i would like to see u script over 300 lines of code once you've done that i will let u complain about my code but until u do so STOP being so picky
If I were you, I wouldn't mention that I have - holy crap - 300 lines of code. People here make awesome programs with several thousands of lines of code. Zudo is a good guy anyways; he might have had a bad day. If you don't like his opinion, shout his head off - I don't care - in PM or whereever you want, but not here. People don't like if a thread is full of shouting anyways.

Just to make this comment be worth of reading, some suggestions
Spoiler
  • Don't call this an OS; this looks like part of an easy-to-use file manager (seriously, it looks like a context menu).
  • You already have a close-button-like something at the top-right corner. Use that as a return button from invidual menus.
  • At the end of cre (File creation canceled) - for the love of God, don't run cre again - just return to the infinite loop peacefully.
Zudo #12
Posted 29 September 2013 - 07:18 AM
Sorry, I was really angry because someone deleted my homework. But do look at my advice please. (Don't open the spoiler)

Spoiler:angry:/> :angry:/> :angry:/> :angry:/> :angry:/> :angry:/> :angry:/>
Lyqyd #13
Posted 29 September 2013 - 03:45 PM
Let's try to stick to constructive criticism when posting critique, please.
Vilsol #14
Posted 29 September 2013 - 04:35 PM
I think there should be a rule that the file can't be a rar or zip file, just because of the virus possibilities.
Lewisk3 #15
Posted 29 September 2013 - 07:16 PM
I think there should be a rule that the file can't be a rar or zip file, just because of the virus possibilities.

i have no idea how to make a virus and i would never want to hurt anyones pc
Vilsol #16
Posted 29 September 2013 - 07:17 PM
I think there should be a rule that the file can't be a rar or zip file, just because of the virus possibilities.

i have no idea how to make a virus and i would never want to hurt anyones pc

That doesn't mean that you might have a virus you don't know about.
Lewisk3 #17
Posted 29 September 2013 - 07:20 PM
That doesn't mean that you might have a virus you don't know about.

that .zip file comes directly from my wedsite

and i know for a fact theres no virus on my website
Vilsol #18
Posted 29 September 2013 - 07:20 PM
That doesn't mean that you might have a virus you don't know about.

that .zip file comes directly from my wedsite

But when you zipped it (or compressed, because its a .rar), you might have had a virus on you computer not on server.
Lewisk3 #19
Posted 29 September 2013 - 11:04 PM
i know i dont have a virus because not too long ago i reset my computer to factory
Kingdaro #20
Posted 01 October 2013 - 02:20 PM
It's not a virus, guys. Sheesh.

In any case, however, OP should consider using a pastebin installer, at least. Another option would be a virus scan, from a website like VirusTotal.
Agoldfish #21
Posted 25 October 2013 - 06:01 PM
I think there should be a rule that the file can't be a rar or zip file, just because of the virus possibilities.
If you are talking about a virus being a .zip file, I don't think that is possible. If you think the program you downloaded to put in to CC, I agree.
Zudo #22
Posted 26 October 2013 - 02:35 AM
I think there should be a rule that the file can't be a rar or zip file, just because of the virus possibilities.
If you are talking about a virus being a .zip file, I don't think that is possible. If you think the program you downloaded to put in to CC, I agree.

A zip file is an archive, which can have a virus in it…
GamerFelio #23
Posted 26 October 2013 - 02:00 PM
Very good Design, but next time PLEASE pastebin! Its hard to become a .zip in a Server, if i not host it :(/>