Raised This Month: $51 Target: $400
 12% 

Fix fast download to reconnect


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
Bos93
Veteran Member
Join Date: Jul 2010
Old 10-31-2012 , 12:15   Fix fast download to reconnect
#1

Fix fast download to reconnect



.: Description :.

There is such a bug. If the client while downloading files from sv_downloadurl, will cancel downloading and make a reconnect. He will be downloading that files from server (not sv_downloadurl)
Attached Files
File Type: sma Get Plugin or Get Source (FIxFastDL.sma - 5825 views - 1.4 KB)
__________________

Last edited by Bos93; 10-31-2012 at 15:15.
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
bLacK-bLooD
AlliedModders Donor
Join Date: Jun 2008
Old 10-31-2012 , 12:42   Re: Fix fast download to reconnect
#2

Well done ! I've been waiting for this fix. It is so annoying when you cancel the download by accident and when you reconnect, you have to wait a lot of time for the resources to be downloaded.

Thanks Bos93.
__________________
We all live under the same sky but we have different horizons.
bLacK-bLooD is offline
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 10-31-2012 , 14:05   Re: Fix fast download to reconnect
#3

It would be better to hook FM_ClientDisconnect because client_disconnect is executed for clients when changing level.
Retrieve server's IP address once a load.

Why do you use random symbols instead of using just one?

Plugin sounds great!
__________________

Last edited by claudiuhks; 10-31-2012 at 14:06.
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
Bos93
Veteran Member
Join Date: Jul 2010
Old 10-31-2012 , 15:16   Re: Fix fast download to reconnect
#4

Thanks. Plugin updated.
__________________
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
RaHBeR
๏_๏
Join Date: Jul 2012
Old 10-31-2012 , 15:35   Re: Fix fast download to reconnect
#5

Wow! I was just about to make a thread on it.
You saved me! :*

Last edited by RaHBeR; 10-31-2012 at 15:37. Reason: ๏_๏
RaHBeR is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 10-31-2012 , 15:36   Re: Fix fast download to reconnect
#6

Your method will fail if the server is behind a router with a different internal IP.
Use only 1 indentation method. Using both spaces and tabs screws with the readability of the plugin
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
RaHBeR
๏_๏
Join Date: Jul 2012
Old 10-31-2012 , 15:42   Re: Fix fast download to reconnect
#7

Quote:
Originally Posted by YamiKaitou View Post
Your method will fail if the server is behind a router with a different internal IP.
My hopes down the drain :'(
Any chance it can be resolved?
RaHBeR is offline
Bos93
Veteran Member
Join Date: Jul 2010
Old 10-31-2012 , 15:56   Re: Fix fast download to reconnect
#8

Quote:
Originally Posted by RaHBeR View Post
My hopes down the drain :'(
Any chance it can be resolved?
client_cmd( pPlayer, "Connect %s`%c", ServerIp, SYMBOLS[ random_num( 0, sizeof SYMBOLS - 1 ) ] );

--->>

client_cmd( pPlayer, "Connect 127.0.0.1`%c", ServerIp, SYMBOLS[ random_num( 0, sizeof SYMBOLS - 1 ) ] );

Change your IP
__________________

Last edited by Bos93; 10-31-2012 at 15:57.
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
RaHBeR
๏_๏
Join Date: Jul 2012
Old 10-31-2012 , 16:02   Re: Fix fast download to reconnect
#9

Quote:
Originally Posted by Bos93 View Post
client_cmd( pPlayer, "Connect %s`%c", ServerIp, SYMBOLS[ random_num( 0, sizeof SYMBOLS - 1 ) ] );

--->>

client_cmd( pPlayer, "Connect 127.0.0.1`%c", ServerIp, SYMBOLS[ random_num( 0, sizeof SYMBOLS - 1 ) ] );

Change your IP
Thanks I'll test it. Will this work for both the clients from the Internet and from the LAN? If its just for the clients from the Internet then that also fine.

Edit: I forgot to ask that which IP to include, the External or the Internal?

Last edited by RaHBeR; 10-31-2012 at 16:05. Reason: ๏_๏
RaHBeR is offline
Bos93
Veteran Member
Join Date: Jul 2010
Old 10-31-2012 , 16:15   Re: Fix fast download to reconnect
#10

Quote:
Will this work for both the clients from the Internet and from the LAN?
Yes.

Quote:
Edit: I forgot to ask that which IP to include, the External or the Internal?
External
__________________
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:06.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode