Blockland Forums > Modification Help
Revenge of the TCP object [Solved]
Lugnut:
i said that earlier
jes00:
--- Quote from: Ephialtes on May 08, 2012, 01:51:03 AM ---You should be using the public address to the file, not the private one ... a public one looks like this:
http://dl.dropbox.com/u/12345678/file.whatever
--- End quote ---
How do I make it public?
Lugnut:
move the file into your public folder (in my dropbox)
then right click it>dropbox>get public link
jes00:
--- Quote from: Lugnut1206 on May 08, 2012, 12:08:52 PM ---move the file into your public folder (in my dropbox)
then right click it>dropbox>get public link
--- End quote ---
Still says it.
--- Code: ---$ColorSetMaker::Version = "0";
function ColorSetMaker_VersionCheck()
{
if(isFile("./RTBinfo.txt") && (isFile("add-ons/System_ReturnToBlockland/client.cs")))
{
return;
}
if(isObject(ColorSetMaker_Downloader))
ColorSetMaker_Downloader.delete();
new TCPObject(ColorSetMaker_Downloader);
ColorSetMaker_Downloader.connect("dl.dropbox.com:80");
}
function ColorSetMaker_Downloader::onConnected(%this)
{
//http://dl.dropbox.com/u/74047590/ColorSetMaker_Version.txt
%req = "GET /u/74047590/ColorSetMaker_Version.txt HTTP/1.1\r\n";
%this.send(%req);
}
function ColorSetMaker_Downloader::onConnectFailed(%this)
{
MessageBoxOK("Attention!", "Unable to connect to the online version information.");
}
function ColorSetMaker_Downloader::onDisconnect(%this)
{
if(!$ColorSetMaker_Connected)
{
MessageBoxOK("Attention!", "Unable to connect to the online version information.");
}
else
{
$ColorSetMaker_Connected = "";
}
}
function ColorSetMaker_Downloader::onLine(%this, %line)
{
echo("\c21:" SPC getSubStr(getWord(%line, 6), 0, 6));
echo("\c22:" SPC getSubStr(getWord(%line, 6), 0, 1));
echo("\c23:" SPC %this);
echo("\c24:" SPC %line);
if(getSubStr(getWord(%line, 6), 0, 6) == $ColorSetMaker::Version)
{
$ColorSetMaker_connected = 1;
ColorSetMaker_Downloader.disconnect();
ColorSetMaker_VersionResult(false);
}
else
{
if(getSubStr(getWord(%line, 6), 0, 6) !$= "1 BETA")
{
$ColorSetMaker_AvailableVersion = "1 BETA";
}
else
{
$ColorSetMaker_AvailableVersion = getSubStr(getWord(%line, 6), 0, 1);
}
ColorSetMaker_Downloader.disconnect();
ColorSetMaker_BersionResult(true);
}
}
function ColorSetMaker_VersionResult(%x)
{
if(%x)
{
MessageBoxOk("Good News!", "Your Color Set Maker mod is up to date.");
}
else
{
MessageBoxOK("Attention!", "There is a more current version of your Color Set Maker mod.\n\nYour Version:" SPC $ColorSetMaker::Version @ "\n\nAvailable: " @ $ColorSetMaker_AvailableVersion);
}
}
--- End code ---
Kalphiter:
Still says what?
Try adding the host field, it would be "Host: dl.dropbox.com\r\n"