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

in helping me with my os

Started by Bosher, 03 November 2013 - 10:20 AM
Bosher #1
Posted 03 November 2013 - 11:20 AM
in helping me with my os here are some screenshots
if interested reply my coding abit messy but will be cleaning it up soon
any one who helps will get credit

main screen : http://puu.sh/5776W.png
loading screen : http://puu.sh/5778r.png
login : http://puu.sh/5778r.png / working password system not finshed

game page : http://puu.sh/577hk.png / quest is adventure
config/settings : http://puu.sh/577kN.png
password change : http://puu.sh/577jR.png

cmd mostly working
this is still very early alpha and would love to add so much more but i need help thank you for reading this pm if you interested :)/>.
mod or admin if you can put this on os forum that would be good thanks

http://pastebin.com/r5dcrk7M
main file
need a way to make my square code into values i've tried many things which dont work
a cmd is within my os and can read functions such as back and read all commands.
also i would like to know about how to do a appstore im looking up this now :)/>

if you want to try it out do this in game

pastebin get h5sC6jYg install
Edited on 04 November 2013 - 04:26 PM
Lyqyd #2
Posted 03 November 2013 - 02:21 PM
Split into new topic.

No, this will not be placed in the OS section, since there's no code posted.
Bosher #3
Posted 03 November 2013 - 04:29 PM
http://pastebin.com/r5dcrk7M
main file
TheOddByte #4
Posted 04 November 2013 - 10:40 AM
Wouldn't this topic be better placed in 'General'?
And you should really explain what you need help with and stuff.
Sgt.Mike #5
Posted 05 November 2013 - 11:28 AM
I dont know how can you do an "Appstore" but you might just make a Program that prints "Pastebin" codes for "Downloading" Popular OS's,Games or Whatever

– Example Code

print [[
Pastebin Codes for Downloading Stuff

WmFHmuZq - for Downloading LyqydOS ]]

– You may use term.setBackgroundColor( colors.— ) to set the Color of the background behind the letters
– Just use it but make sure you dont use "term.clear()" later.Since this will clear the entire screen and the entire screen's
– Background Color will be set to the color you put…e.x term.setBackgroundColor( colors.lime ) will set the Background to Lime
Agoldfish #6
Posted 05 November 2013 - 06:15 PM
If you wanted a laymans terms "Downloader" it would go something like this.

print"Welcome to blahs appstore"
print"What would you like to download?"
print"item1"
print"item2"
print"item3"
input = read()
if input == item1 then
shell.run("something")
elseif input == item2 then
shell.run("something")
elseif input == item3 then
shell.run("something")
end
--This is not tested.
Sgt.Mike #7
Posted 06 November 2013 - 07:24 AM
Number 1 - It's not Laymans
Number 2 - If it writes Item 1,2,3 etc. You dont know what is that Item
Number 3 - You had to Write Print " " 3 Times.I wrote it Only Once
Number 4 - lol my Code is Much Simpler than yours and Even Someone who dont knows much can Use it
theoriginalbit #8
Posted 06 November 2013 - 08:03 AM
Hellkid really put it best, more information is needed before we can help. What is wrong? what aren't you understanding? etc.

-snip-
His reply wasn't aimed at you, it was aimed at the OP, more precisely this bit
also i would like to know about how to do a appstore im looking up this now :)/>
There is no need to be disrespectful to others, you're both here with a purpose, to help someone, keep it that way.
Now on to the points that you raised.
Spoiler
Number 2 - If it writes Item 1,2,3 etc. You dont know what is that Item
Number 2 — It was implied that each title is replaced with the name of the program, the code supplied was simply a placeholder

Number 3 - You had to Write Print " " 3 Times.I wrote it Only Once
Number 3 — the amount of times that you write the print call does not make it better, your method you posted (which I can only assume is the blob of text in the middle that is not surrounded with [code][/code] tags) can be dramatically improved upon, and if it were to be turned into individual print statements for each line would act the same, end in the same output, and be just as efficient in getting the job done. Actually converting it into individual prints for each line may actually make it a little easier to read and/or format, since there are other considerations with the block strings.

Number 4 - lol my Code is Much Simpler than yours and Even Someone who dont knows much can Use it
Number 4 — Your code is in fact not "much simpler" than Agoldfishs code. Yours isn't a complete solution and is just simply some code that presents the user with information that they could easily get from these forums (you may as well give a link to these forums), and they may not know how the pastebin program works. Agoldfishes solution, while a little more involved actually has the ability to present the user with a list of programs that they may get and then could proceed to get them when requested, something that requires no domain knowledge from the user other than knowing what they want and how to type on a keyboard.

Finally —Now don't get me wrong, I'm not saying Agoldfish's code is any better, or is an ideal solution, actually there are lots of holes that could be picked in it, and a lot of things about it that can be improved. But you retaliated to something that wasn't even aimed at you, and someone clearly needed to bring you down a peg from your high horse.
Lyqyd #9
Posted 06 November 2013 - 10:45 AM
There's some good information in there, so I'll let the reply stand. No need for the "high horse"/"taking down a peg" commentary, especially after the "be respectful" admonition, however. Let's keep this clean and talk about the merits of the code, ladies and gentlemen.