SA-MP Forums Archive
file download - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP DL Edition (https://sampforum.blast.hk/forumdisplay.php?fid=92)
+--- Forum: SA-MP 0.3.DL (https://sampforum.blast.hk/forumdisplay.php?fid=90)
+--- Thread: file download (/showthread.php?tid=661721)



file download - N3mesiS - 12.12.2018

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.


Re: file download - KtotheYle - 13.12.2018

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.


Re: file download - Kalcor - 13.12.2018

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.


Re: file download - ArmandoSAMP - 13.12.2018

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!


Re: file download - N3mesiS - 13.12.2018

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.


Re: file download - Verc - 13.12.2018

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


Re: file download - RoboN1X - 13.12.2018

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.


Re: file download - N3mesiS - 13.12.2018

So, if or if I have to have my own website to upload the files, I can not use anything else?


Re: file download - TwoSimsLight - 14.12.2018

Can i use blogspot for upload the files?


Re: file download - Undef1ned - 17.01.2019

Can this be done through a dedicated?