| Blockland Forums > General Discussion |
| Out of game Server list |
| << < (5/7) > >> |
| Kalphiter:
--- Quote from: Chrono on November 17, 2010, 06:23:16 PM ---"Red - BuB Reward - Server of Honor" This is a handicapped feature. --- End quote --- come download bub and get endorsed by us |
| Chrono:
Also the website looks ugly. Even I can make something much more appealing and I suck at almost all forms of web coding. |
| Scout31:
--- Quote from: Chrono on November 17, 2010, 06:29:44 PM ---Also the website looks ugly. Even I can make something much more appealing and I suck at almost all forms of web coding. --- End quote --- I'm in the works of redesigning the site. --- Quote from: Ephialtes on November 17, 2010, 06:13:25 PM ---Wow. No. This is conclusive proof that you should not be messing around with packages - especially those that affect the core parts of RTB. --- End quote --- I guess I just couldn't connect to RTB's api for no reason! I even asked you for help right after the release of V15, not knowing BuB was causing it. You told me the server never got my request. I merged the packages, came back to Badspot's server, and you called me a Liar when it successfully connected. |
| Kalphiter:
--- Quote from: Scout31 on November 17, 2010, 07:15:18 PM ---I guess I just couldn't connect to RTB's api for no reason! I even asked you for help right after the release of V15, not knowing BuB was causing it. You told me the server never got my request. I merged the packages, came back to Badspot's server, and you called me a Liar when it successfully connected. --- End quote --- You are doing something extremely wrong if you think RTB is causing problems with TCP objects. |
| Scout31:
--- Quote from: Kalphiter on November 17, 2010, 07:16:20 PM ---You are doing something extremely wrong if you think RTB is causing problems with TCP objects. --- End quote --- Explain what is wrong. --- Code: ---package BuBSocket { function TCPObject::onConnected(%this) { if(%this.BuBsocket) { if(%this.Method $= "POST") { %data = %this.Method SPC %this.file @ " HTTP/1.1\nHost: " @ %this.host; %data = %data @ "\r\nUser-Agent: Torque/1.0"; %data = %data @ "\r\nContent-Type: application/x-www-form-urlencoded"; %data = %data @ "\r\nContent-Length: " @ strlen(%this.data) @ "\r\n\r\n" @ %this.data @ "\r\n"; } else { %data = %this.Method SPC %this.file @ %this.data @ " HTTP/1.1\nHost: " @ %this.host; %data = %data @ "\n\n"; } //echo("Data: " @ %data); %this.send(%data); } if(isfunction(Parent,"onConnected")) parent::onConnected(); } function TCPObject::onLine(%this, %line) { if(%this.BuBsocket) { if(%line $= "END OF DATA") { %this.data = 0; %this.disconnect(); %this.onDisconnect(); } if(%this.data) { %this.response = %this.response @ %line @ "\n"; } if(%line $= "START OF DATA") { %this.data = 1; %this.response = ""; } } if(isfunction(Parent,"onLine")) parent::onLine(); } function TCPObject::onConnectFailed(%this) { if(%this.BuBsocket) { warn("BuB Socket Connection Failed"); } if(isfunction(Parent,"onConnectFailed")) parent::onConnectFailed(); } function TCPObject::onDisconnect(%this) { if(%this.BuBsocket) { %this.active = 0; %this.response = getsubstr(%this.response, 0, strlen(%this.response)-1); echo(%this.response); if(isfunction("BuB_C_Response_" @ %this.subclass)) eval("BuB_C_Response_" @ %this.subclass @ "();"); } if(isfunction(Parent,"onDisconnect")) parent::onDisconnect(); } }; activatepackage(BuBSocket); --- End code --- |
| Navigation |
| Message Index |
| Next page |
| Previous page |