Jump to content




CraftRepo - scripts repository for ComputerCraft

computer networking api

  • You cannot reply to this topic
6 replies to this topic

Poll: CraftRepo (9 member(s) have cast votes)

What do you think?

You cannot see the results of the poll until you have voted. Please login and cast your vote to see the results of this poll.
Vote Guests cannot vote

#1 pla

  • New Members
  • 1 posts

Posted 20 August 2012 - 08: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/>

#2 ardera

  • Members
  • 503 posts
  • LocationGermany

Posted 20 August 2012 - 09: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?

#3 Cranium

    Ninja Scripter

  • Moderators
  • 4,031 posts
  • LocationLincoln, Nebraska

Posted 24 August 2012 - 02:45 AM

I think this is actually being worked on as we speak! I hope we get to see it soon!

#4 Sammich Lord

    IRC Addict

  • Members
  • 1,212 posts
  • LocationThe Sammich Kingdom

Posted 24 August 2012 - 09:27 AM

I am working on a OS that was going to have a software center. People stop beating me to it!

#5 Jan

  • Members
  • 141 posts
  • Locationthe Netherlands

Posted 24 August 2012 - 10: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!

#6 Hackingroelz

    Peripheral Designer

  • Members
  • 213 posts
  • Locationthe Nether(lands)

Posted 24 August 2012 - 01:44 PM

View PostJan, on 24 August 2012 - 10:57 AM, said:

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.

#7 immibis

    Lua God

  • Members
  • 1,033 posts
  • LocationWellington, New Zealand

Posted 26 August 2012 - 11:26 AM

View PostHackingroelz, on 24 August 2012 - 01:44 PM, said:

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*





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users