{"id":918,"date":"2022-12-21T13:46:25","date_gmt":"2022-12-21T13:46:25","guid":{"rendered":"https:\/\/byteboxmedia.support\/?p=918"},"modified":"2022-12-21T13:46:26","modified_gmt":"2022-12-21T13:46:26","slug":"event-action-download-object","status":"publish","type":"post","link":"https:\/\/byteboxmedia.support\/docs\/game-launcher-creator-v3\/event-action-download-object\/","title":{"rendered":"Event Action – Download Object"},"content":{"rendered":"\n
\"\"<\/figure>\n\n\n\n

The download action allows you to tell the launcher to download a file<\/a> from the internet.<\/p>\n\n\n\n

Download URL<\/strong>
This is the full, absolute url to the file online (ie: https:\/\/mysite.com\/thisfile.exe)<\/p>\n\n\n\n

Exit After Download<\/strong>
This will instruct the launcher to exit when the download is complete<\/p>\n\n\n\n

Wait for End<\/strong>
This will instruct the launcher to halt the runtime (prevent any further actions or any interaction happening) until the process you have downloaded and run has completed<\/p>\n\n\n\n

Progress Bar<\/a> ID<\/strong>
If you want to use a
progress<\/a> bar to show the download %, specify it’s internal name here<\/p>\n\n\n\n

Exit if Error<\/strong>
You can instruct the launcher to exit if there’s an error downloading the file or connecting to the server<\/p>\n\n\n\n

Run after Download<\/strong>
Instructs the launcher to immediately run the file that has been download<\/p>\n\n\n\n

Things to know<\/h3>\n\n\n\n

There are a few things to know about this action which we will try and cover here.<\/p>\n\n\n\n

Run after Download<\/strong>
This action will only work if the file is an executable. It will download the executable (like an installer) and immediately run it when the download is complete. You can still download all other file types with this action, you just won’t be able to ‘Run after Download’.<\/p>\n\n\n\n

Progress Bars<\/strong>
Progress Bars are only available in the Indie or Developer editions of GLCV3.<\/p>\n\n\n\n

Download Variables<\/a><\/strong>
This object has download variables available. You should look at the documentation for all available variables you can use in your
text strings<\/a>. Variables are handy because you can use them in your text strings.<\/p>\n\n\n\n

Example:<\/p>\n\n\n\n

Downloading Installer (56%)<\/p>\n","protected":false},"excerpt":{"rendered":"

The download action allows you to tell the launcher to download a file from the internet. Download URLThis is the full, absolute url to the file online (ie: https:\/\/mysite.com\/thisfile.exe) Exit After DownloadThis will instruct the launcher to exit when the download is complete Wait for EndThis will instruct the launcher to halt the runtime (prevent […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-918","post","type-post","status-publish","format-standard","hentry","category-game-launcher-creator-v3"],"_links":{"self":[{"href":"https:\/\/byteboxmedia.support\/wp-json\/wp\/v2\/posts\/918","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/byteboxmedia.support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/byteboxmedia.support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/byteboxmedia.support\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/byteboxmedia.support\/wp-json\/wp\/v2\/comments?post=918"}],"version-history":[{"count":1,"href":"https:\/\/byteboxmedia.support\/wp-json\/wp\/v2\/posts\/918\/revisions"}],"predecessor-version":[{"id":920,"href":"https:\/\/byteboxmedia.support\/wp-json\/wp\/v2\/posts\/918\/revisions\/920"}],"wp:attachment":[{"href":"https:\/\/byteboxmedia.support\/wp-json\/wp\/v2\/media?parent=918"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/byteboxmedia.support\/wp-json\/wp\/v2\/categories?post=918"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/byteboxmedia.support\/wp-json\/wp\/v2\/tags?post=918"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}