SA-MP Forums

Go Back   SA-MP Forums > SA-MP DL Edition > SA-MP 0.3.DL

Reply
 
Thread Tools Display Modes
Old 12/12/2018, 02:33 PM   #1
N3mesiS
Big Clucker
 
Join Date: Aug 2017
Location: Sweden
Posts: 55
Reputation: 0
Default file download

Hello, I have a question that is killing me which is: Do I have to have my own web page to download several files at the same time (OnPlayerRequestDownload)? Thanks, I really need clear explanations of this.
N3mesiS is offline   Reply With Quote
Old 13/12/2018, 04:07 AM   #2
KtotheYle
Big Clucker
 
Join Date: Nov 2013
Posts: 115
Reputation: 6
Default Re: file download

Quote:
Client URL downloading is done via libcurl version 7.57.0 compiled with support for http, https, and zlib (gzip)
From the 0.3.8 release here.

In short, you need a server capable of receiving an HTTP request and sending a response.

If your current SA-MP server is on a VPS and you have access to do so; you can run a simple Apache web server.

However, if you use a third-party host for your server and can only modify the SA-MP server's files, you can use any web host to host your files on.

See here for a detailed explanation of how to set it all up.

Also, note that you're still downloading the files one-at-a-time it's just a lot faster.
KtotheYle is offline   Reply With Quote
Old 13/12/2018, 12:45 PM   #3
Kalcor
SA-MP Developer
 
Join Date: Apr 2005
Posts: 1,008
Reputation: 2738
Default Re: file download

For testing or a small server, you can use internal downloading through the server's port (ie 7777). For a serious server (10+ players), you should have the files and on a website. The internal downloading is much slower, as the SA-MP server is meant to concentrate on player sync/scripting, not downloads.
Kalcor is offline   Reply With Quote
Old 13/12/2018, 02:27 PM   #4
ArmandoSAMP
Little Clucker
 
Join Date: Dec 2018
Posts: 1
Reputation: 0
Default Re: file download

Quote:
Originally Posted by Kalcor View Post
For testing or a small server, you can use internal downloading through the server's port (ie 7777). For a serious server (10+ players), you should have the files and on a website. The internal downloading is much slower, as the SA-MP server is meant to concentrate on player sync/scripting, not downloads.

Why you dont create a folder like plugins or includes and add the files server need to download but we have to do it trough a website!
ArmandoSAMP is offline   Reply With Quote
Old 13/12/2018, 02:58 PM   #5
N3mesiS
Big Clucker
 
Join Date: Aug 2017
Location: Sweden
Posts: 55
Reputation: 0
Default Re: file download

Quote:
Originally Posted by Kalcor View Post
For testing or a small server, you can use internal downloading through the server's port (ie 7777). For a serious server (10+ players), you should have the files and on a website. The internal downloading is much slower, as the SA-MP server is meant to concentrate on player sync/scripting, not downloads.
Can not I use Dropbox, Onedrive or another Internet? Do I necessarily have to host my own website?

That is, if or if I have to have my own website to upload the files?

Is not there a page where I can upload the files? My problem is that custom masks that weigh 1 MB or more are not downloaded and generate errors through the server configuration.

All this happens when the server is online. When it is in local mode all the files are downloaded normally, it is not an internet problem because it has been tested by several people.
N3mesiS is offline   Reply With Quote
Old 13/12/2018, 03:06 PM   #6
Verc
Big Clucker
 
Verc's Avatar
 
Join Date: Apr 2018
Location: 🇯🇵
Posts: 178
Reputation: 29
Default Re: file download

Quote:
Originally Posted by ArmandoSAMP View Post
Why you dont create a folder like plugins or includes and add the files server need to download but we have to do it trough a website!
Kalcor already explained it above.
It makes the download faster if you use another method which is through host/website
Verc is offline   Reply With Quote
Old 13/12/2018, 03:16 PM   #7
RoboN1X
Huge Clucker
 
RoboN1X's Avatar
 
Join Date: Feb 2011
Location: Indonesia
Posts: 346
Reputation: 60
Default Re: file download

Quote:
Originally Posted by N3mesiS View Post
Can not I use Dropbox, Onedrive or another Internet? Do I necessarily have to host my own website?

That is, if or if I have to have my own website to upload the files?
Even if you put in Dropbox or Onedrive that's not going to be easily made since the players would have to access them like human (CAPTCHA or another security validation) which SA-MP client is not able for doing such task (due to application incompatibility i.e. can be only accessed from DropBox desktop client, browsers, or a provided API).

Quote:
Originally Posted by N3mesiS View Post
Is not there a page where I can upload the files? My problem is that custom masks that weigh 1 MB or more are not downloaded and generate errors through the server configuration.

All this happens when the server is online. When it is in local mode all the files are downloaded normally, it is not an internet problem because it has been tested by several people.
It might be insufficient server upload bandwidth, which you should also look more than just the players download speed.
__________________
Need Help? Use Search, WIKI, and FAQ
RoboN1X is offline   Reply With Quote
Old 13/12/2018, 03:31 PM   #8
N3mesiS
Big Clucker
 
Join Date: Aug 2017
Location: Sweden
Posts: 55
Reputation: 0
Default Re: file download

So, if or if I have to have my own website to upload the files, I can not use anything else?
N3mesiS is offline   Reply With Quote
Old 14/12/2018, 02:24 PM   #9
TwoSimsLight
Big Clucker
 
TwoSimsLight's Avatar
 
Join Date: Jan 2015
Posts: 125
Reputation: 15
Default Re: file download

Can i use blogspot for upload the files?
TwoSimsLight is offline   Reply With Quote
Old 17/01/2019, 08:29 PM   #10
Undef1ned
Huge Clucker
 
Undef1ned's Avatar
 
Join Date: Aug 2018
Location: Venezuela
Posts: 216
Reputation: 18
Default Re: file download

Can this be done through a dedicated?
Undef1ned is offline   Reply With Quote
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need download link to download SATDM DrLozer Scripting Help 2 17/08/2013 07:35 PM
Download file using HTTP() zgintasz Scripting Help 0 26/05/2013 04:41 PM
Download an FTP file via PHP. MP2 Everything and Nothing 7 02/05/2012 02:28 PM
cannot read from file: "morphinc" in every server script i download. =WoR=Mitch Scripting Help 3 15/01/2012 10:59 AM
[HELP] How to download This File tiwter1995 Help Archive 3 21/04/2010 12:08 PM


All times are GMT. The time now is 01:23 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.