Raised This Month: $115 Target: $400
 28% 

[EXTENSION] Send / Request Files from clients


Post New Thread Reply   
 
Thread Tools Display Modes
VoiDeD
SourceMod Plugin Unapprover
Join Date: Mar 2009
Location: Illinois, USA
Old 01-16-2014 , 16:40   Re: [EXTENSION] Send / Request Files from clients
Reply With Quote #11

Quote:
Originally Posted by Powerlord View Post
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 View Post
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.
__________________
VoiDeD is offline
dordnung
Veteran Member
Join Date: Apr 2010
Location: Germany
Old 01-16-2014 , 17:55   Re: [EXTENSION] Send / Request Files from clients
Reply With Quote #12

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.
__________________
dordnung is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 01-16-2014 , 19:18   Re: [EXTENSION] Send / Request Files from clients
Reply With Quote #13

-snip-
voided said the same thing before me.
__________________

Last edited by Mitchell; 01-16-2014 at 19:19.
Mitchell is offline
VoiDeD
SourceMod Plugin Unapprover
Join Date: Mar 2009
Location: Illinois, USA
Old 01-16-2014 , 20:32   Re: [EXTENSION] Send / Request Files from clients
Reply With Quote #14

Quote:
Originally Posted by Popoklopsi View Post
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.
__________________
VoiDeD is offline
dordnung
Veteran Member
Join Date: Apr 2010
Location: Germany
Old 01-16-2014 , 20:50   Re: [EXTENSION] Send / Request Files from clients
Reply With Quote #15

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
__________________
dordnung is offline
KorDen
Member
Join Date: Sep 2012
Old 02-25-2014 , 15:20   Re: [EXTENSION] Send / Request Files from clients
Reply With Quote #16

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...
KorDen is offline
disawar1
AlliedModders Donor
Join Date: Aug 2011
Location: Russian
Old 03-12-2014 , 00:24   Re: [EXTENSION] Send / Request Files from clients
Reply With Quote #17

I'm trying to use natives but server (l4d/win) is always crashes. Is there any examples?
__________________
disawar1 aka raziEiL on: Sourcemod, GitHub, Bitbucket, DeviantArt
> Grokking Algorithms!
disawar1 is offline
kadet.89
Veteran Member
Join Date: Nov 2012
Location: The term is used to iden
Old 04-15-2014 , 01:06   Re: [EXTENSION] Send / Request Files from clients
Reply With Quote #18

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?
kadet.89 is offline
Send a message via Skype™ to kadet.89
Mitchell
~lick~
Join Date: Mar 2010
Old 04-21-2014 , 12:58   Re: [EXTENSION] Send / Request Files from clients
Reply With Quote #19

does this extension still work? i know after the release on apr 19, 2014 they fixed an upload/download exploit on the client/servers.
__________________
Mitchell is offline
GoD-Tony
Veteran Member
Join Date: Jul 2005
Old 04-25-2014 , 13:29   Re: [EXTENSION] Send / Request Files from clients
Reply With Quote #20

Quote:
Originally Posted by kadet.89 View Post
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.
__________________
GoD-Tony is offline
Reply


Thread Tools
Display Modes

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 22:07.


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