Jump to content




[1.21] Tmart (Formerly Pget): Gui Pastebin Downloader V0.51


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

#1 Advert

    Custom Title

  • Moderators
  • 459 posts
  • LocationLondon

Posted 13 February 2012 - 03:22 AM

Notice: 'official' filename changed from pget to tmart.

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
Changelog:
Spoiler
Current node tree:
Master ->
Advert_Node
Espen_Node

Please post in this thread if you'd like to offer your scripts on TrollMart!
Prerequisites:
Spoiler

TODO:
Spoiler

Screens (:
Spoiler




OP Beuautification later. Too lazy.

Edited by Advert, 14 February 2012 - 05:20 PM.


#2 FuzzyPurp

    Part-Time Ninja

  • Members
  • 510 posts
  • LocationHarlem, NY

Posted 13 February 2012 - 07:57 AM

How is it incompatible? All http programs must be placed in the redworks/programs/http folder.

#3 Espen

    Curious Explorer

  • Members
  • 708 posts

Posted 13 February 2012 - 12:23 PM

Nice program, to the point & easy to use.
Also kudos for making the effort of coming up with a user friendly interface, and nice ASCII art. ;)/>
One suggestion: Maybe post one or two pictures of the title screen and/or the menu or sth.
Some users have a no-pix no-download policy and I'm sure it would also help making its purpose clear to those with tl;dr syndrome.^^

#4 Advert

    Custom Title

  • Moderators
  • 459 posts
  • LocationLondon

Posted 13 February 2012 - 12:45 PM

View PostEspen, on 13 February 2012 - 12:23 PM, said:

Nice program, to the point & easy to use.
Also kudos for making the effort of coming up with a user friendly interface, and nice ASCII art. ;)/>
One suggestion: Maybe post one or two pictures of the title screen and/or the menu or sth.
Some users have a no-pix no-download policy and I'm sure it would also help making its purpose clear to those with tl;dr syndrome.^^

Good idea!


View PostFuzzyPurp, on 13 February 2012 - 07:57 AM, said:

How is it incompatible? All http programs must be placed in the redworks/programs/http folder.

Hah, I wasn't sure what I was doing when I posted this yesterday. It was 3 am and I wanted to release the finally-working version.
I guess I just wanted to avoid confusion if it didn't work, on redworks, for some reason.

I'll start adding some more features to this, and fix some bugs in a few hours, I think I need a small programming break :)/>

#5 bastrian

  • New Members
  • 9 posts

Posted 13 February 2012 - 12:58 PM

Ok, just tryed it with Redworks. d
I get the error 'attempt to index ? (a nil value)' right after the 'pget by Advert' text.

#6 Advert

    Custom Title

  • Moderators
  • 459 posts
  • LocationLondon

Posted 13 February 2012 - 01:08 PM

View Postbastrian, on 13 February 2012 - 12:58 PM, said:

Ok, just tryed it with Redworks. d
I get the error 'attempt to index ? (a nil value)' right after the 'pget by Advert' text.

Could you do the following: (as per Espen's instructions, in this post.)
type 'lua' to enter the lua interpreter
type 'require "org.luaj.vm2.lib.DebugLib"'
ignore the error, and type 'exit()'
run pget again, and it should give you a line #, post that here.

Also: Added screns.

#7 Advert

    Custom Title

  • Moderators
  • 459 posts
  • LocationLondon

Posted 13 February 2012 - 03:12 PM

Updated; V0.41: "ws" keys now work properly, ws both used to move the selection down a program.
Added version # instead of "vnil"

#8 rockymc

  • Members
  • 103 posts

Posted 13 February 2012 - 03:21 PM

Copied much Pastebin Paste Downloader?

#9 Espen

    Curious Explorer

  • Members
  • 708 posts

Posted 13 February 2012 - 03:33 PM

View Postrockymc, on 13 February 2012 - 03:21 PM, said:

Copied much Pastebin Paste Downloader?
To the contrary, he was inspired by Pastebin Paste Downloader to write his own version of it, but with another focus.
If you take a good look at the code then you can see that he made it from scratch.
It has a lot more functionality, like a repository based storage of code along with metadata and a GUI for ease-of-use, for example.
They both have their different use cases, so it's not really accurate to say he just "copied" it.

#10 Advert

    Custom Title

  • Moderators
  • 459 posts
  • LocationLondon

Posted 13 February 2012 - 03:38 PM

View Postrockymc, on 13 February 2012 - 03:21 PM, said:

Copied much Pastebin Paste Downloader?
That's pretty rude.
No, I did not copy tomass' pastebin downloader.
Yes, I was inspired by it.
Yes, I also credited tomass for the inspiration:
Spoiler


#11 rockymc

  • Members
  • 103 posts

Posted 13 February 2012 - 04:36 PM

Ah, it's because the two programs do the same...

#12 Advert

    Custom Title

  • Moderators
  • 459 posts
  • LocationLondon

Posted 13 February 2012 - 04:52 PM

View Postrockymc, on 13 February 2012 - 04:36 PM, said:

Ah, it's because the two programs do the same...
No, they don't do the same.

Did you even run the programs?
Or look at the code?

pget opens a GUI; where you can download from a list grabbed at runtime.
tomass' pastebin downloader requires you to type in the pasteID.

#13 rockymc

  • Members
  • 103 posts

Posted 13 February 2012 - 05:15 PM

Somewhat like that.

#14 FuzzyPurp

    Part-Time Ninja

  • Members
  • 510 posts
  • LocationHarlem, NY

Posted 13 February 2012 - 10:50 PM

Any confirmation with redworks, since cc-get as well stopped working with redworks, i'm assuming it's something in my code :(/> with http programs, but ccirc works just fine so i beg to differ.

#15 Advert

    Custom Title

  • Moderators
  • 459 posts
  • LocationLondon

Posted 13 February 2012 - 11:06 PM

I'll test it myself, since bastrian seems to have gone poof.

It works, though I am using a slightly modified version (of pget).

I'll update again, soon.

#16 Advert

    Custom Title

  • Moderators
  • 459 posts
  • LocationLondon

Posted 14 February 2012 - 11:11 AM

Updated to v0.50v0.51:

Changed filename from pget to tmart;
Removed --test
Indicators of what you have selected in the menu.
v0.51: Fixed error when using an invalid pastebin code.
The next update will take a while unless it's a bugfix, as I'm rewriting most of it.

Still in need of code authors; read OP for details.

#17 Xemiru

  • Members
  • 38 posts

Posted 15 February 2012 - 02:23 AM

y u so boss program.

#18 Advert

    Custom Title

  • Moderators
  • 459 posts
  • LocationLondon

Posted 15 February 2012 - 03:21 AM

View PostXemiru, on 15 February 2012 - 02:23 AM, said:

y u so boss program.
Thanks, I still have (many) plans for it, though. Not sure when those'll be coded, but when they do, the boss-factor will increase.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users