Who is downloading/precaching
Is it possible to determine will some connecting player download a specific file or not?
|
Re: Who is downloading/precaching
Quote:
Do you mean, that you want to know who is downloading a file, or do you want a player to download a certain file... |
Re: Who is downloading/precaching
Quote:
|
Re: Who is downloading/precaching
Quote:
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:
|
Re: Who is downloading/precaching
Quote:
BTW coding isn't a problem ;) I just need a tip about this... Anyone else with idea or 100 % denial? :) |
Re: Who is downloading/precaching
Quote:
|
Re: Who is downloading/precaching
You'd have to determine if they already have the file, which is impossible with AMXX (it cannot read a client's files).
|
Re: Who is downloading/precaching
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 |
Re: Who is downloading/precaching
A problem arises, though, if they have already downloaded the file from another source.
|
Re: Who is downloading/precaching
@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... |
| All times are GMT -4. The time now is 00:40. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.