Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

User:Webb/Better GitHub FastDL: Difference between revisions

From TF2 Classified Wiki
Webb (talk | contribs)
Created page with "This article outlines a better method for hosting your FastDL on GitHub. First of all, upload your files to a GitHub repository. Unlike the GitHub Pages method there is a total repository size limit of about 100GB and individual files can be up to 100MB (you can use bzip2 compression like any other FastDL to get around this limitation somewhat.) You do not need to wait for GitHub Actions so file uploads/changes will be instant. Most maps should work this way. First, cr..."
 
Webb (talk | contribs)
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
This article outlines a better method for hosting your FastDL on GitHub.
This article outlines a better method for hosting your FastDL on GitHub. Both the spider den and Moon's Pub have been successfully using this for many months.


First of all, upload your files to a GitHub repository. Unlike the GitHub Pages method there is a total repository size limit of about 100GB and individual files can be up to 100MB (you can use bzip2 compression like any other FastDL to get around this limitation somewhat.) You do not need to wait for GitHub Actions so file uploads/changes will be instant. Most maps should work this way.
First of all, upload your files to a GitHub repository. Unlike the GitHub Pages method there is a total repository size limit of about 100GB and individual files can be up to 100MB (you can use bzip2 compression like any other FastDL to get around this limitation somewhat.) You do not need to wait for GitHub Actions so file uploads/changes will be instant. Most maps should work this way.
Line 5: Line 5:
First, create a GitHub repository and upload your files using the typical FastDL file structure. You can find the repository I use [here https://github.com/webbongithub/fastdl].  
First, create a GitHub repository and upload your files using the typical FastDL file structure. You can find the repository I use [here https://github.com/webbongithub/fastdl].  


Next you'll need to set your <code>sv_downloadurl</code> console variable to a specific value to have it download directly from the repository. In the case of my repository, that is <code>https://github.com/webbongithub/fastdl/raw/refs/heads/main/tf2c/</code>. You may need to adjust this value depending on the name of your branch (which is by default "main") and what subfolder you chose (or if you chose one at all.) A simple way of getting it is to go to, say a map file and copy the raw link:
Next you'll need to set your <code>sv_downloadurl</code> console variable to a specific value to have it download directly from the repository. In the case of my repository, that is <code>https://github.com/webbongithub/fastdl/raw/refs/heads/main/tf2c/</code>. You may need to adjust this value depending on the name of your branch (which is by default "main") and what subfolder you chose (or if you chose one at all,) and your username/repository name. A simple way of getting it is to go to, say a map file and copy the raw link:


<code>https://github.com/webbongithub/fastdl/raw/refs/heads/main/tf2c/maps/4arena_downtown_rc.bsp.bz2</code>
<code>https://github.com/webbongithub/fastdl/raw/refs/heads/main/tf2c/maps/4arena_downtown_rc.bsp.bz2</code>