AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Extensions (https://forums.alliedmods.net/forumdisplay.php?f=134)
-   -   [EXTENSION] Send / Request Files from clients (https://forums.alliedmods.net/showthread.php?t=233549)

VoiDeD 01-16-2014 16:40

Re: [EXTENSION] Send / Request Files from clients
 
Quote:

Originally Posted by Powerlord (Post 2086867)
I was under the impression that files could only be sent/received from clients when they're not actually playing (i.e. changing maps).

Files can be sent and received whenever you like, see: sprays.

The usefulness of this extension is limited though; there's a (somewhat) strict blacklist of what files and directories can be used. Additionally, any transfers here will be rate limited to the server's file channel so you wouldn't be able to make use of a server's downloadurl.

Quote:

Originally Posted by Oshizu (Post 2086836)
Quite userful for something like Jukebox
Player's dont have to download all 250+ songs at once
They will just download it 15 sec before song plays :)

I don't think this can be done either, any files transferred will be stored as <file and extension>.ztmp, and it'll be renamed by the engine upon completion.

Personally, I can't see any use cases for this extension at all.

dordnung 01-16-2014 17:55

Re: [EXTENSION] Send / Request Files from clients
 
I also don't know if it's usefull or not, just left that here, open for discussion.


@VoiDeD

The downloaded files are not compressed.
I tested to download a map from the server, then changed the map and it worked without loading the map again.

Mitchell 01-16-2014 19:18

Re: [EXTENSION] Send / Request Files from clients
 
-snip-
voided said the same thing before me.

VoiDeD 01-16-2014 20:32

Re: [EXTENSION] Send / Request Files from clients
 
Quote:

Originally Posted by Popoklopsi (Post 2086955)
The downloaded files are not compressed.
I tested to download a map from the server, then changed the map and it worked without loading the map again.

Downloaded, perhaps? During downloads, I'm fairly certain it uses the ztmp temporary files. However my experience is limited to the behavior of the client with FastDL, but I don't see why it would be much different from compressed fragments sent via the net channel.

Your post did bring up one potentially interesting use case, though: stuffing maps onto clients while they play. You'll be limited to the seriously sluggish pace of the net channel, but if you've got enough time inbetween maps in your rotation, full downloads might be able to be accomplished.

dordnung 01-16-2014 20:50

Re: [EXTENSION] Send / Request Files from clients
 
Yes for downloading it will be compressed, but i thought there is a Methode to enable or disable it.

That is the reason why I search for the possibility to download stuff ingame. But I hoped there would be a better solution

KorDen 02-25-2014 15:20

Re: [EXTENSION] Send / Request Files from clients
 
Tested that extension with rewrited EndRound Music plugin - previously it was pick up N random files from big list on map start and cylcing them.

I tried to make logic "If client have music enabled - predownload 3 next tracks and after playing CurrentFileNum start download CurrentFileNum+3".

It works, but I found one problem. Client will download file even if he already have it fully downloaded. So, I have question: Is there any way to check if client already have that file (but not download it from client), or any parameter to set that client shouldn't redownload files? If no, then looks like that extension is useless, because it's waste of client-server traffic...

disawar1 03-12-2014 00:24

Re: [EXTENSION] Send / Request Files from clients
 
I'm trying to use natives but server (l4d/win) is always crashes. Is there any examples?

kadet.89 04-15-2014 01:06

Re: [EXTENSION] Send / Request Files from clients
 
How can I convert transferID to playerID?
For example I request a file from many players and FNM_OnFileDenied fires sometimes, but how can I know which players don't have this file?

Mitchell 04-21-2014 12:58

Re: [EXTENSION] Send / Request Files from clients
 
does this extension still work? i know after the release on apr 19, 2014 they fixed an upload/download exploit on the client/servers.

GoD-Tony 04-25-2014 13:29

Re: [EXTENSION] Send / Request Files from clients
 
Quote:

Originally Posted by kadet.89 (Post 2124717)
How can I convert transferID to playerID?
For example I request a file from many players and FNM_OnFileDenied fires sometimes, but how can I know which players don't have this file?

I have a fork of this project here which might point you in the right direction: https://bitbucket.org/GoD_Tony/filenetmessages

Basically just added a few things to help keep track of clients and improved some documentation.


All times are GMT -4. The time now is 11:24.

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