AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Who is downloading/precaching (https://forums.alliedmods.net/showthread.php?t=51516)

- Billy The Kid - 02-19-2007 09:47

Who is downloading/precaching
 
Is it possible to determine will some connecting player download a specific file or not?

Davidos 02-19-2007 10:18

Re: Who is downloading/precaching
 
Quote:

Originally Posted by - Billy The Kid - (Post 442419)
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...

- Billy The Kid - 02-19-2007 11:55

Re: Who is downloading/precaching
 
Quote:

Originally Posted by Davidos (Post 442425)
... 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 :) )

Davidos 02-19-2007 12:01

Re: Who is downloading/precaching
 
Quote:

Originally Posted by - Billy The Kid - (Post 442462)
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...

- Billy The Kid - 02-19-2007 12:19

Re: Who is downloading/precaching
 
Quote:

Originally Posted by Davidos (Post 442463)
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? :)

Davidos 02-19-2007 12:48

Re: Who is downloading/precaching
 
Quote:

Originally Posted by - Billy The Kid - (Post 442485)
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 -_->

XxAvalanchexX 02-19-2007 19:12

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).

el hippo 02-19-2007 19:23

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

XxAvalanchexX 02-19-2007 19:26

Re: Who is downloading/precaching
 
A problem arises, though, if they have already downloaded the file from another source.

- Billy The Kid - 02-19-2007 20:17

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.