Raised This Month: $12 Target: $400
 3% 

[EXTENSION] Send / Request Files from clients


Post New Thread Reply   
 
Thread Tools Display Modes
Ellie
Senior Member
Join Date: Apr 2013
Old 05-07-2014 , 13:25   Re: [EXTENSION] Send / Request Files from clients
Reply With Quote #21

Quote:
Originally Posted by disawar1 View Post
I'm trying to use natives but server (l4d/win) is always crashes. Is there any examples?
I would like to know this too.


Quote:
Originally Posted by Mitchell View Post
does this extension still work? i know after the release on apr 19, 2014 they fixed an upload/download exploit on the client/servers.
I thought that same exploit had been fixed by Valve a long time ago, no? And plus the extension should still work to at least allow game specific files (bsp, nav, ect...).
Ellie is offline
thorgot
AlliedModders Donor
Join Date: Aug 2013
Old 09-15-2014 , 02:49   Re: [EXTENSION] Send / Request Files from clients
Reply With Quote #22

Seems to be broken in the latest version of sourcemod in CSGO:

Quote:
[SM] Extension filenetmessages.ext.2.csgo.so failed to load: /srv/jb/csgo/csgo/addons/sourcemod/extensions/filenetmessages.ext.2.csgo.so: undefined symbol: __dynamic_cast
This extension is great and we use it for several things. Could you please update it?

Last edited by thorgot; 09-15-2014 at 02:49.
thorgot is offline
thorgot
AlliedModders Donor
Join Date: Aug 2013
Old 09-15-2014 , 19:15   Re: [EXTENSION] Send / Request Files from clients
Reply With Quote #23

Looks like you just need to recompile with -lstdc++, like Drifter did with GiveNamedItemEcon here.

edit: double posted instead of editing by accident.

edit2: Never mind, looks like you just have to recompile, I don't think you need to change the code. Got it working.

Last edited by thorgot; 09-16-2014 at 21:24.
thorgot is offline
dordnung
Veteran Member
Join Date: Apr 2010
Old 09-17-2014 , 13:54   Re: [EXTENSION] Send / Request Files from clients
Reply With Quote #24

Ok i updated it, i hope it works again now.
I also added the updates from GodTony (https://github.com/dordnung/FileNetM...2fd33d64370af8)

Attention: The API is slight different.
__________________

Last edited by dordnung; 07-07-2018 at 08:30.
dordnung is offline
Zilor
AlliedModders Donor
Join Date: May 2013
Location: Free and Hanseatic City
Old 10-12-2014 , 15:16   Re: [EXTENSION] Send / Request Files from clients
Reply With Quote #25

So we could use this plugin to preload custom maps? Awesome!
But what will happen when we preload a map (let's say cp_whatever) and the client isn't able to finish the download before the server changes the map to cp_whatever
__________________

Last edited by Zilor; 10-12-2014 at 15:17.
Zilor is offline
Electr000999
Senior Member
Join Date: Aug 2011
Old 07-13-2015 , 13:16   Re: [EXTENSION] Send / Request Files from clients
Reply With Quote #26

L4D2 WIN (SM 1.7.2 + META 1.10.5
CRASHED if i am request file from client.

DUMP https://crash.limetech.org/abr5ef77acaz

MY CODE:

Code:
#include <sourcemod>
#include <sdktools>
#include <filenetmessages>

#pragma	semicolon 1

public void OnPluginStart()
{
	RegConsoleCmd ( "sm_test"					, CmdTest, "");
}

public Action CmdTest(int client, int args)
{
	PrintToChatAll("FNM_RequestFile ID %i", FNM_RequestFile(client, "addonlist.txt", 0));
}

Last edited by Electr000999; 07-13-2015 at 13:18.
Electr000999 is offline
Send a message via Skype™ to Electr000999
kadet.89
Veteran Member
Join Date: Nov 2012
Location: Serbia
Old 10-27-2015 , 04:12   Re: [EXTENSION] Send / Request Files from clients
Reply With Quote #27

Is there a way of detecting when a file is sent?

Last edited by kadet.89; 10-27-2015 at 09:26.
kadet.89 is offline
Send a message via Skype™ to kadet.89
Mainstaff
AlliedModders Donor
Join Date: May 2011
Old 12-10-2015 , 15:21   Re: [EXTENSION] Send / Request Files from clients
Reply With Quote #28

Recompiled against latest CS:GO SDK, just in case someone else uses this extension.
Attached Files
File Type: zip filenetmessages.ext.2.csgo.zip (72.0 KB, 219 views)
Mainstaff is offline
Vit_amin
Senior Member
Join Date: Dec 2015
Location: Russian Federation
Old 12-19-2015 , 16:34   Re: [EXTENSION] Send / Request Files from clients
Reply With Quote #29

Is it possible to download files from the host? Because client files are downloaded directly from the game server (creates files with the extension .zmtp)
Vit_amin is offline
DJPlaya
Senior Member
Join Date: Nov 2014
Location: Germany
Old 02-12-2016 , 13:54   Re: [EXTENSION] Send / Request Files from clients
Reply With Quote #30

Test Succesfull!
@Electr000999 > Using your Code, in TF2 it works fine

Downloading from Client Approved☺
Code:
Downloading file 'materials/vgui/maps/menu_photos_koth_haunted_fall_event.vmt' from client Playa failed.
CGameClient::FileReceived: materials/vgui/maps/menu_photos_koth_haunted_fall_event.vmt not wanted.
It says failed but thats an lie
I downloaded the file from the Client, it has been put into "tf\download\materials\vgui\maps", the time stamp got renewed.

Downloading from Server Approved☺
---
Note:If the Filename aleready exists it wont be downloaded, error "already exists!" is displayed.
Note:Folders will be auto created
Note:Has nothing todo with FastDL, the Files get directly loaded in/out the Server/Client Files.
Note:Up/Downloading multiply Files do not need any delay or forward, the Files get out queued chronologically.
Note:If you are not check !IsFakeClient, the following error will occur "Client {bot client id} has no valid NetChannel!"

Now in work should be an little sm downloader rewrite.
__________________
My biggest Projects: Kigen AC Redux, Forlix Floodcheck Redux

Last edited by DJPlaya; 12-05-2016 at 10:32.
DJPlaya is offline
Send a message via Skype™ to DJPlaya
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 09:31.


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