4291
Modification Help / Re: Revenge of the TCP object
« on: May 08, 2012, 02:01:47 PM »Take out the If-None-Match lineNow it can't connect to anything.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Take out the If-None-Match lineNow it can't connect to anything.
No, doing that will force a bunch of \n into the string, or whatever depending on your OS.
Two ways you can do it
%req = "xyz...";
%req = %req @"xyz...";
%req = %req @"xyz...";
or
%req1 = "xyz...";
%req2 = "xyz...";
%req3 = "xyz...";
%req = %req1 @ %req2 @ %req3;
%req1 = "GET /u/74047590/ColorSetMaker_Version.txt HTTP/1.1\r\n";
%req2 = "Host: dl.dropbox.com\r\n";
%req3 = "User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0\r\n Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\n";
%req4 = "Accept-Language: en-us,en;q=0.5\r\n";
%req5 = "Connection: keep-alive\r\n";
%req6 = "If-None-Match: 23n\r\n\r\n";
%req = %req1 @ %req2 @ %req3 @ %req4 @ %req5 @ %req6;
%this.send(%req);
Please split it over a few lines, and don't put a space after \r\n.Like this:
I also said it should end in \r\n\r\n
%req = "GET /u/74047590/ColorSetMaker_Version.txt HTTP/1.1\r\n
Host: dl.dropbox.com\r\n
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0\r\n Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\n Accept-Language: en-us,en;q=0.5\r\n
Connection: keep-alive\r\n
If-None-Match: 23n\r\n\r\n";
It does end in \r\n\r\n
Do this for the request, each line is an \r\nLike this?Code: [Select]GET /u/74047590/ColorSetMaker_Version.txt HTTP/1.1
Host: dl.dropbox.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Connection: keep-alive
If-None-Match: 23n
Make sure the request ends in \r\n\r\n
When it works, you're going to remove some fields to see which you don't need.
%req = "GET /u/74047590/ColorSetMaker_Version.txt HTTP/1.1\r\n Host: dl.dropbox.com\r\n User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0\r\n Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\n Accept-Language: en-us,en;q=0.5\r\n Connection: keep-alive\r\n If-None-Match: 23n\r\n\r\n";
Lugnut, that is incorrect. He must try what I did first.Result:
move the file into your public folder (in my dropbox)Still says it.
then right click it>dropbox>get public link
$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);
}
}
That's a good idea too, maybe as a separate addon from this, because it could have different applications.But the event would edit everyone in the server who is using that playertype.
Upgrade your mac to Lion or whatever the latest is.Lion was years ago, I believe it's currently the snow leopard and this summer it will be the mountain lion.
You should be using the public address to the file, not the private one ... a public one looks like this:How do I make it public?
http://dl.dropbox.com/u/12345678/file.whatever
It's no different than, say, posting image macros with furries.Furrie.
**** off with your Johnny Bravo stuff, you have a designated thread for that.
Ok guys:No, you can't steal the animations because it will be a different model.
EVERYONE LISTEN UP!
I don't know much about making add-ons, but I do know what a model is, and sort of what a script is. I don't know if you can copy and paste scripts, but if we took most of the player no-jet script (It's default) except took the script from the default horse of how fast it ran, and put that in the player no-jet script (removing how fast the no jet player can run, and replacing it with how fast the default horse can run) Then, we take the model of the standard player, remove the legs and feet, and take a default horse, remove the head, put them together, we got our model! And we could take the animations from the advanced horse.
Now, this is all my theory, I have no experience with making add-ons. Someone who does, please correct me, but I hope this helps.
Advanced Horse Download: http://forum.returntoblockland.com/dlm/viewFile.php?id=2929 (Sorry I could only find RTB download link)
I wonder what Moleman's like in bed.....
Why are Blocklanders so perverted D:
/support
for female centaurs
tits tits tits tits tits. Did i mention tits?
Your mind is sick.