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

CraftRepo - scripts repository for ComputerCraft

Started by pla, 20 August 2012 - 07:23 AM
pla #1
Posted 20 August 2012 - 09:23 AM
Hi everyone!
I want to know your opinion about my new project - CraftRepo. It would be something like Google Play or Marketplace for Windows Phone. User just type command with the name or ID of program in repository and few seconds later he has this program downloaded on computer. Program would also support searching by name, maybe by description too. Developer which has uploaded script gets a simple statistic - how many times his program was downloaded.
Program also would support uploading "private" scripts (not visible in browser) and to download them user have to type ID and his username (or maybe generated key, that depends) ;p

Possible development directions:
-synchronization user account with computercraft computer
-when user use update command, all downloaded by CraftRepo programs would be updated if new version available


Downloading and searching API of course open, if project will be succesfull i can also develop uploading API (for this moment uploading only by web page).

I have already about 60-65% server side done. Client side i hadn't started yet :D/>/>
I will be gratefull for propositions :P/>/> If you have got any questions feel free to ask :P/>/>
ardera #2
Posted 20 August 2012 - 10:09 AM
Great idea! Suggestion: Can you make an option that says if it looks in the internet for the apps or in the computer?
PS.: And do you build an TUI (text-based user interface, see wiki) too?
Cranium #3
Posted 24 August 2012 - 03:45 AM
I think this is actually being worked on as we speak! I hope we get to see it soon!
Sammich Lord #4
Posted 24 August 2012 - 10:27 AM
I am working on a OS that was going to have a software center. People stop beating me to it!
Jan #5
Posted 24 August 2012 - 11:57 AM
We could also organize it in 'bukkit-style':
Then CraftOS should come with this program by default:

(topic list fetching part)
The computer downloads the 'program forum' with http api.
Then it parses the html using one of those shiney scripts: http://lua-users.org/wiki/LuaXml
Then it puts all the topic titles in a list, and makes a GUI so the user can select a topic using the arrow keys.

(code fetching part)
Then it downloads the selected topic, and parses it again.
It then searches for the first occurance of a CODE block.
(looks like this on the forums:<pre class='prettyprint'> )
It writes the content of that block into a file, and voila!

EDIT:
It could also scan for pastebin codes!
Hackingroelz #6
Posted 24 August 2012 - 02:44 PM
We could also organize it in 'bukkit-style':
Then CraftOS should come with this program by default:

(topic list fetching part)
The computer downloads the 'program forum' with http api.
Then it parses the html using one of those shiney scripts: http://lua-users.org/wiki/LuaXml
Then it puts all the topic titles in a list, and makes a GUI so the user can select a topic using the arrow keys.

(code fetching part)
Then it downloads the selected topic, and parses it again.
It then searches for the first occurance of a CODE block.
(looks like this on the forums:<pre class='prettyprint'> )
It writes the content of that block into a file, and voila!

EDIT:
It could also scan for pastebin codes!

I made something like that. It doesn't have a gui, it just downloads a random program.
immibis #7
Posted 26 August 2012 - 12:26 PM
I made something like that. It doesn't have a gui, it just downloads a random program.
User: *click*
Computer: Hello world!
User: *click*
Computer: <syntax error>
User: *click*
Computer: *starts playing adventure*
User: *click*
Computer: Now installing DerpVirus
User: *click*
Computer: *plays movie*