Raised This Month: $ Target: $400
 0% 

Who is downloading/precaching


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
- Billy The Kid -
Member
Join Date: Oct 2006
Old 02-19-2007 , 09:47   Who is downloading/precaching
Reply With Quote #1

Is it possible to determine will some connecting player download a specific file or not?
__________________
- Billy The Kid - is offline
Davidos
Senior Member
Join Date: Feb 2005
Old 02-19-2007 , 10:18   Re: Who is downloading/precaching
Reply With Quote #2

Quote:
Originally Posted by - Billy The Kid - View Post
Is it possible to determine will some connecting player download a specific file or not?
... what?

Do you mean, that you want to know who is downloading a file, or do you want a player to download a certain file...
Davidos is offline
- Billy The Kid -
Member
Join Date: Oct 2006
Old 02-19-2007 , 11:55   Re: Who is downloading/precaching
Reply With Quote #3

Quote:
Originally Posted by Davidos View Post
... what?

Do you mean, that you want to know who is downloading a file, or do you want a player to download a certain file...
I want to know who is downloading a file... (if it is possible I would like more to know who WILL download a file )
__________________

Last edited by - Billy The Kid -; 02-19-2007 at 11:58.
- Billy The Kid - is offline
Davidos
Senior Member
Join Date: Feb 2005
Old 02-19-2007 , 12:01   Re: Who is downloading/precaching
Reply With Quote #4

Quote:
Originally Posted by - Billy The Kid - View Post
I want to know who is downloading a file... (if it is possible I would like more to know who WILL download a file )

I aint sure about this, only thing I know that you can do is to put
status
in console, so you see who is in game and how many players and which players aren't in game...

Sorry, the only thing I'm good at for coding is
Quote:
stealing other people's codes and editing them
so, sorry. Can't help ya...
Davidos is offline
- Billy The Kid -
Member
Join Date: Oct 2006
Old 02-19-2007 , 12:19   Re: Who is downloading/precaching
Reply With Quote #5

Quote:
Originally Posted by Davidos View Post
you can do is to put status in console, so you see who is in game and how many players and which players aren't in game...
Yes - I know about that, but that is totally unreliable, thx anyway...
BTW coding isn't a problem ;) I just need a tip about this...

Anyone else with idea or 100 % denial?
__________________
- Billy The Kid - is offline
Davidos
Senior Member
Join Date: Feb 2005
Old 02-19-2007 , 12:48   Re: Who is downloading/precaching
Reply With Quote #6

Quote:
Originally Posted by - Billy The Kid - View Post
Yes - I know about that, but that is totally unreliable, thx anyway...
BTW coding isn't a problem ;) I just need a tip about this...

Anyone else with idea or 100 % denial?
Offtopic - You shouldn't need to hover over the thread. Try again later then they will probably have replied... same as with me... <waited 2 hours and still no reply -_->
Davidos is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 02-19-2007 , 19:12   Re: Who is downloading/precaching
Reply With Quote #7

You'd have to determine if they already have the file, which is impossible with AMXX (it cannot read a client's files).
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
el hippo
Member
Join Date: Jan 2006
Location: Texas
Old 02-19-2007 , 19:23   Re: Who is downloading/precaching
Reply With Quote #8

You will probably have to resort to using sv_downloadurl and having some sort of script on your webserver to track who is downloading what files.

You could have the script (I use php for my tracker stuff) insert a row into a database containing the client ip address and timestamp. Then your amx script could query the database with the player ip and see if they downloaded a file (you could do this on player connect since they will reconnect after downloading content via sv_downloadurl). You may also want to validate stuff like referrer (it will look something like hl1://<your server ip>:<your server port>) to help make sure that the player actually downloaded the content in game and not with some other download tool.

Hippo
__________________
el hippo is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 02-19-2007 , 19:26   Re: Who is downloading/precaching
Reply With Quote #9

A problem arises, though, if they have already downloaded the file from another source.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
- Billy The Kid -
Member
Join Date: Oct 2006
Old 02-19-2007 , 20:17   Re: Who is downloading/precaching
Reply With Quote #10

@hippo
nice idea but I think that's way too much effort. Thx

@avalanche
I am aware of problem of downloading from another source, I think I can handle that for my purposes.

About AMXX - ok, you're saying that there's no function to get that, and I supposed that it can't check directly if client's file exists.
But I asked this and based on an assumption - if client is requesting file from server to download, server engine has to be notified but didn't know if metamod/amxx could register that...
__________________
- Billy The Kid - is offline
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 00:40.


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