file download
#1

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.
Reply
#2

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.
Reply
#3

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.
Reply
#4

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!
Reply
#5

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.
Reply
#6

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
Reply
#7

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.
Reply
#8

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

Can i use blogspot for upload the files?
Reply
#10

Can this be done through a dedicated?
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)