Raised This Month: $ Target: $400
 0% 

Force client to use sv_downloadurl


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Empowers
BANNED
Join Date: Feb 2009
Location: Ukraine
Old 11-07-2009 , 10:11   Re: Force client to use sv_downloadurl
Reply With Quote #1

Hhhheeeelllllooooooo ^^
Empowers is offline
Send a message via ICQ to Empowers
LOPAO
Senior Member
Join Date: Mar 2011
Old 09-25-2011 , 04:54   Re: Force client to use sv_downloadurl
Reply With Quote #2

That problem i have to.. its not possible to do this plugin?
LOPAO is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-25-2011 , 04:57   Re: Force client to use sv_downloadurl
Reply With Quote #3

Don't know, I was curious and have started to investigate yesterday. Will try to understand what happens and see if a fix can be created.
__________________
Arkshine is offline
GarbageBox
Senior Member
Join Date: Feb 2010
Old 09-26-2011 , 08:11   Re: Force client to use sv_downloadurl
Reply With Quote #4

You just need to edit the server.cfg and this problem will simply disappear.
Code:
sv_allowdownload 1 --> 0
sv_downloadurl "Link here"
When user connect they will auto use the sv_downloadurl to download stuff and if the file doesn't exist at sv_downloadurl then he can't download it & connect.
__________________
You can be a SUPER coder but you Haven't to say such as "stupid, etc." words to the others
GarbageBox is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-26-2011 , 08:19   Re: Force client to use sv_downloadurl
Reply With Quote #5

No, it doesn't work.
__________________
Arkshine is offline
GarbageBox
Senior Member
Join Date: Feb 2010
Old 09-26-2011 , 09:44   Re: Force client to use sv_downloadurl
Reply With Quote #6

Quote:
Originally Posted by Arkshine View Post
No, it doesn't work.
I use this setting work without problems
__________________
You can be a SUPER coder but you Haven't to say such as "stupid, etc." words to the others
GarbageBox is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-26-2011 , 10:47   Re: Force client to use sv_downloadurl
Reply With Quote #7

I guess you don't understand the bug. Try to connect, starting to download fastly, disconnecting, then reconnecting, whatever you do, the client has in memory (consider ) you have downloaded the resource, thus you won't be able to download through fast dl anymore. Setting this cvar and you won't be able to connect to the server, that's all.
__________________
Arkshine is offline
GarbageBox
Senior Member
Join Date: Feb 2010
Old 09-26-2011 , 12:36   Re: Force client to use sv_downloadurl
Reply With Quote #8

First, when I connecting the server, I immediately press Esc to disconnect from the server.
After that, I reconnect server again, I still downloading resource through the server's cyberspace.
Also, "sv_allowdownload 0" won't let your's server become disable to connect.
As sv_allowdownload 0 means client can't download resource from the server side.
However, if you have setup the sv_downloadurl "XXX", when the client connecting your server, they will automatically download from there.
__________________
You can be a SUPER coder but you Haven't to say such as "stupid, etc." words to the others
GarbageBox is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-26-2011 , 12:44   Re: Force client to use sv_downloadurl
Reply With Quote #9

Why "immediately press Esc" ? How is related ? I mean you can be disconnected anytime for any reasons (manually, steam, plugin, etc).

I have sv_allowdownload 0.

- I'm connecting.
- I don't have the map, so, it starts to download from the web server.
- I disconnect.
- I reconnect and I have the message I cannot continue because I don't have the map.
- If I don't use the cvar, I'm downloading from the game server.

Your way doesn't work for me.
__________________

Last edited by Arkshine; 09-26-2011 at 12:51.
Arkshine is offline
Bos93
Veteran Member
Join Date: Jul 2010
Old 12-04-2011 , 15:43   Re: Force client to use sv_downloadurl
Reply With Quote #10

How engine is saving the information when client is joining the server? Maybe somehow delete this information when user disconnects, thus we can trick the engine and let it think that new player has joined and let him use fast dl.
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
Reply



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 17:44.


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