View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0009474 | New issues | Multi Theft Auto : San Andreas | public | 2016-11-26 10:57 | 2017-05-18 19:24 |
Reporter | thisdp | Assigned To | |||
Priority | normal | Severity | feature | Reproducibility | N/A |
Status | closed | Resolution | fixed | ||
Summary | 0009474: Make a custom downloading system without resource system | ||||
Description | I want to load scripts dynamically without resource. This means that I don't need to start the resource if I load some scripts and files, just download it | ||||
Tags | No tags attached. | ||||
|
We have a downloadFile function which allows you to download a file on demand. By marking scripts as files you could also download them and loadstring() them. https://wiki.multitheftauto.com/wiki/DownloadFile Alternatively, would allowing fetchRemote to servers which are accepted by the Client (via the usual browser dialog) be helpful to you here?
That sounds like a bug. |
|
I means that 'downloadFile' can only be used to download files that are marked in the 'meta.xml'. I have thousands of files need to download, so I can't use that at all. In a word, I can't control it conveniently. and 'fetchRemote' is a good way to download files,but I can't download files from other servers. I want to use a way that is simple and controllable. Maybe I(or We) need a download system like this: ... I don't think this can cause bot. |
|
What about if the server uses fetchRemote (server can request any file) and then passes the files in triggerLatentClientEvent? |
|
That will cause server network lag. What I want is download files from other server directly and dynamically. |
|
Yes, we're considering to allow downloading from other servers via fetchRemote if they have been confirmed via the web browser dialog. |
|
Now I think the title may be "improve fetchRemote" here are the suggestions. Since many scripts have already been using fetchRemote, new "fetchRemote" should use another name or a library. |
|
Instead of using the CEF whitelist system, we could check for an authorization file in the root directory of the http server. |
|
What I want is that If I download a file in MTA, the data can be written in a file directly by settings and I can get states of the process. Like "downloadFile" but "downloadFile" just downloads files included in the resource. |
|
this should be resolved because https://bugs.multitheftauto.com/view.php?id=8648 is solved |