TPT script downloader

  • mniip
    14th Jul 2012 Developer 0 Permalink

    For users


    This script downloads a file from pastebin, developer may upload the script to pastebin and tell you the id and it does all the work for you.
    You should have luasocket.
    How to use:
    obtain the id, load the script, type download"id" into the console
    Example: download"a1LFV7RW"
    Should say "Script ... by ... was downloaded" , or give an error

    (if it does neither you probably have buggy luasocket)

    For developers


    This script defines a function that takes an id and fetches a respective paste from pastebin. To upload a script you upload it to pastebin,
    putting metacomments in (metacomments are comments in format --`FIELD=value ),
    read fields are NAME, AUTHOR, VERSION and FILE(name of file it will be saved to),
    then give users id of paste
    (http://pastebin.com/a1LFV7RW , the id is "a1LFV7RW")


    Download link:
    http://pastebin.com/LRV17iQX
  • Pilihp64
    14th Jul 2012 Developer 0 Permalink

    TPT already has a built in get script command (for official scripts).

    Go ahead and try tpt.getscript("cracker64","multiplayer")  The only bad thing is I can't update my script on the site yet, so it's an old version or I would advertise this option.  I think Simon is working a bit more on the scripts portion of the site again.

    This is a nice way for other users to do this though, awesome.

  • mniip
    14th Jul 2012 Developer 0 Permalink
    yeah, the key word is, users can't upload to tpt.getscript repository

    EDIT: a minor edit to strip garbage off
  • jenn4
    14th Jul 2012 Member 0 Permalink
    "Using tables as a replacement for style sheets is unforgivable crime and should be punished as strongly as law allows or is possible" This is valid, even in forum posts which doesn't allow styles. Then you don't make posts to look like that.
  • nmd
    14th Jul 2012 Member 0 Permalink

    @mniip (View Post)

     well then my lua socket is buggy...