Skip to content

Instantly share code, notes, and snippets.

@jacob1
Last active September 16, 2015 06:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jacob1/69d4f2242727285abb07 to your computer and use it in GitHub Desktop.
Save jacob1/69d4f2242727285abb07 to your computer and use it in GitHub Desktop.
installing the script manager and tptmp
Downloading the TPT Multiplayer or the script manager can be confusing.
Well it really isn't that hard, but on some platforms like mac it is a little work to open the data folder, and make sure you create autorun.lua properly.
Here is some code that will download the script manager for you (restart required):
c=socket.connect("starcatcher.us",80)c:send"GET /scripts/main.lua?get=1\n"d=c:receive"*a"f=io.open("autorun.lua","w")
l=d:find("--Crac")d=d:sub(l)f:write(d)f:close()
Copy the first line and paste it into the console, then copy and paste the other, then restart TPT.
Afterwards, a 'LUA' icon appears above the walls menusection, click that and click on 'online'.
Once it gets the script list, download the first one (TPTMulti).
Come back here to update TPTMP every time this script has an update.
The two lines of console code are very compressed for a reason.
The tpt console is limited in width so you can't paste very long code, I was only able to compress it into two lines.
All it does is make a tcp request to http://starcatcher.us/scripts/main.lua?get=1 and save it as autorun.lua
I wrote this alternative code but it probably won't work:
require("socket.http")s,f=socket.http.request("http://starcatcher.us/scripts/main.lua?get=1"),io.open("autorun.lua","w")f:write(s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment