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

[EXTENSION] Web downloader


Post New Thread Reply   
 
Thread Tools Display Modes
GriMz
Senior Member
Join Date: Jul 2007
Old 09-10-2007 , 12:04   Re: [EXTENSION] Web downloader
Reply With Quote #11

Quote:
Originally Posted by BurstDragon View Post
Silly question: How to install it?

I can't get it to work....



greez Burst

put downloader.inc in addons\sourcemod\scripting\include

and then put downloader.ext.dll and downloader.ext.so inside of your addons\sourcemod\extensions folder, reboot the server, good to go.

yeah he needs to make it so it has recursive directories.
when in doubt, look at other extensions, they all install the same.
__________________
GriMz is offline
otstrel
SourceMod Donor
Join Date: Aug 2004
Old 11-30-2007 , 04:48   Re: [EXTENSION] Web downloader
Reply With Quote #12

SM version 1.0.0.1682
MM:S version 1.6.0.529
TF2 server downloaded from Steam
I'm getting the following error:
[SM] Unable to load extension "downloader.ext.dll": Metamod attach failed
Any ideas?
__________________
don't shoot the lamer, he's doing the best he can
otstrel is offline
Nican
Veteran Member
Join Date: Jan 2006
Location: NY
Old 11-30-2007 , 06:51   Re: [EXTENSION] Web downloader
Reply With Quote #13

downloader.ext.dll needs to updates to the new source engine
__________________
http://www.nican132.com
I require reputation!
Nican is offline
Send a message via ICQ to Nican Send a message via MSN to Nican
otstrel
SourceMod Donor
Join Date: Aug 2004
Old 12-05-2007 , 04:37   Re: [EXTENSION] Web downloader
Reply With Quote #14

This is pretty obvious I'm looking for other ideas...
__________________
don't shoot the lamer, he's doing the best he can
otstrel is offline
r5053
SourceMod Donor
Join Date: May 2007
Location: Germany
Old 01-07-2008 , 03:27   Re: [EXTENSION] Web downloader
Reply With Quote #15

please port this to tf2
__________________
Visit HLPortal.de (this is not my Page)


r5053 is offline
Send a message via ICQ to r5053 Send a message via Skype™ to r5053
sfPlayer
Senior Member
Join Date: Dec 2007
Location: Germany
Old 02-24-2008 , 19:26   Re: [EXTENSION] Web downloader
Reply With Quote #16

I found 2 bugs so far:

1. it crashes for me in file extensions.cpp line 78 (delete lDownloads[(int)object];) with a glibc free() invalid pointer error after I call CloseHandle through SourceMod

2. it'll download only 2-4 kB = the first 2-3 packets according to wireshark but additional ones will be ignored

I am using a linux srcds running SourceForts 1.9.3+ and requested http ://www. sourcemod.net/plugins.php?cat=0&mod=0&title=SUM%20-%20global%20admins%2C%20bans%20and&author=sfP layer&description=&search=1 (remove spaces)

Last edited by sfPlayer; 02-24-2008 at 19:29.
sfPlayer is offline
Olly
Senior Member
Join Date: Mar 2007
Location: UK
Old 02-27-2008 , 07:59   Re: [EXTENSION] Web downloader
Reply With Quote #17

Quote:
Originally Posted by sfPlayer View Post
I found 2 bugs so far:

1. it crashes for me in file extensions.cpp line 78 (delete lDownloads[(int)object];) with a glibc free() invalid pointer error after I call CloseHandle through SourceMod

2. it'll download only 2-4 kB = the first 2-3 packets according to wireshark but additional ones will be ignored

I am using a linux srcds running SourceForts 1.9.3+ and requested http ://www. sourcemod.net/plugins.php?cat=0&mod=0&title=SUM%20-%20global%20admins%2C%20bans%20and&author=sfP layer&description=&search=1 (remove spaces)
Its probobly because the HTTP server is sending the data in a 'chunked' method, which requires multiple http requests until the whole file is downloaded, but dn's plugin doesnt support that
__________________
Tumblr Me: http://raspberryteen.tumblr.com


// Yarrrr!
Olly is offline
Send a message via MSN to Olly
maitredede
Senior Member
Join Date: May 2005
Old 05-28-2008 , 07:48   Re: [EXTENSION] Web downloader
Reply With Quote #18

Hi,

Good extension

I want to download a config file to the cfg directory, but I have an error when I call SetOutputFile :
Code:
L 05/28/2008 - 13:46:21: [SM] Native "SetOutputFile" reported: Failed to open output file /cfg/bancc.cfg
(remaining is my code's stack trace)
My code :
Code:
        g_down = CreateDownloader();
        SetURL(g_down, "http://banlist.stock00.com/banlist_clancalendarDOD_CSS.cfg");
        SetCallback(g_down, ccdl_Complete);
        SetProgressCallback(g_down, ccdl_Progress);

        new String:ccfile[] = "/cfg/bancc.cfg";

        SetOutputFile(g_down, ccfile); // Error is here

        Download(g_down);
If I set ccfile to "bancc.cfg", it runs fine, but does not work if there is path data.

Is this an error from me ?

I'm running on a linux server (my private test server). Who can I set file path to work on windows and linux ?
__________________
make brain && make install
maitredede is offline
MoggieX
Veteran Member
Join Date: Aug 2007
Location: n00bville
Old 05-29-2008 , 21:03   Re: [EXTENSION] Web downloader
Reply With Quote #19

Hi,

Will this extension pull down files recursively?

So that I don't have to specify ever single file that I want it to bring down and that would be a very neat way of updating all our servers automatically over night (by cron'ing a said plugin), or say once per week with the latest SM SVN release etc...

Matt
__________________
MoggieX is offline
Send a message via Skype™ to MoggieX
Kigen
BANNED
Join Date: Feb 2008
Old 05-30-2008 , 09:49   Re: [EXTENSION] Web downloader
Reply With Quote #20

Try
cfg/bancc.cfg

In Linux, if you have the first character of a path like / it interprets it as the root of the drive, like Windows would see C:\.
Kigen is offline
Reply



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 03:19.


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