Screenshots out of date, will upload new ones (in a smaller quantity, and resolution).
Code: http://pastebin.com/nuX33xq7
Note that the code is currently very messy, as I really want to share this script to get TrollMart populated with scripts.
You can put it in rom/programs; or on a disk, It should run from anywhere.
I'd preffer if you saved it as tmart as that's what it refers to itself as.
Usage:
pget - opens gui
pget –test -does some testing that I used for debugging, not sure what exactly, though.
pget –help – Shows some syntax, that is probably outdated.
pget –get <code> –saveas <name> - Downloads pastebin/code and saves as <name>.
I'd appreciate bug-reports and suggestions!
Known bugs/issues:
! (un-'fix'able) tmart –get http://* will always return the raw output of the server, and may give you html.
Old bugs:
Spoiler
– Will not be fixed for a while, since I can't simply check for an http error code.
This was actually fairly simple to fix; but I doubt it'll be an universal fix.
Spoiler
v0.50: Now shows which category/item you have selected, and scrolls the category/item lists.Changes in some strings; now supports http:// for nodes and files.
v0.41: "ws" keys now work properly, ws both used to move the selection down a program.
Added version # instead of "vnil"
v0.40: Public Release
Master ->
Advert_Node
Espen_Node
Please post in this thread if you'd like to offer your scripts on TrollMart!
Prerequisites:
Spoiler
Pastebin account (for updating your scripts)Make a new paste, and format it like so:
No spaces, because I am lazy.
--#maintainer:YOU
-- Safety comment incase readAll doesn't take this already-read line.
program,PASTEBINCODE,Program_name/filetobesavedas,file_category,YOU
....
Example: (ignore the last node declaration; #releasedate and #pgetversion are unused, and the node declaration, because it won't work.)
--#maintainer:Advert
--#releasedate:12/2/2012
--#pgetversion:0.1
-- Safety comment incase readAll doesn't take this already-read line.
program,ZXeRgLHt,matrix-ss,screensaver,Advert
program,gUzi0bRj,lsave,api,Advert
node,pUYV8kuU,Adverts Node #2,nodes,Advert
Once you've done that, post a link to your 'node' on pastebin, and I'll consider adding it!
What categories are there? Any! But since I didn't impliment scrolling yet, there are a max displayed of 9 (you can still access the others; same with files (per category)).
Please try to keep the category simple; e.g
editor (for, say, parker's vi)
game (for any game)
Do not include slashes in your program's name, as it may prevent them from being downloaded and saved.
TODO:
Spoiler
– Everything marked TODO in the code– Everything not marked TODO in the code
*Get more programs hosted.
Screens (:
Spoiler
Spoiler

Spoiler

Spoiler

Spoiler

Spoiler

Spoiler

Spoiler

Spoiler

Spoiler

Spoiler

OP Beuautification later. Too lazy.