Forged Alliance Forever Forged Alliance Forever Forums 2018-11-01T17:01:45+02:00 /feed.php?f=2&t=16869 2018-11-01T17:01:45+02:00 2018-11-01T17:01:45+02:00 /viewtopic.php?t=16869&p=169087#p169087 <![CDATA[Re: Local cache for LAN parties]]>
Example:
Code:
Set sourcedir="\\PCNETNAME\Supreme Commander Forged Alliance\Maps"
Set destinationdir="C:\Users\YOURNAME\Documents\My Games\Gas Powered Games\Supreme Commander Forged Alliance\Maps\"
RD %destinationdir% /S /Q
xcopy /s %sourcedir% %destinationdir%


Set = setting a value to a variable
RD= Remove directory
xcopy /s = copy with subdirectories

Statistics: Posted by Uveso — 01 Nov 2018, 17:01


]]>
2018-11-01T08:53:02+02:00 2018-11-01T08:53:02+02:00 /viewtopic.php?t=16869&p=169073#p169073 <![CDATA[Re: Local cache for LAN parties]]> Statistics: Posted by Deribus — 01 Nov 2018, 08:53


]]>
2018-11-01T01:07:06+02:00 2018-11-01T01:07:06+02:00 /viewtopic.php?t=16869&p=169049#p169049 <![CDATA[Re: Local cache for LAN parties]]> Statistics: Posted by PhilipJFry — 01 Nov 2018, 01:07


]]>
2018-11-01T01:03:45+02:00 2018-11-01T01:03:45+02:00 /viewtopic.php?t=16869&p=169048#p169048 <![CDATA[Local cache for LAN parties]]>
solution :modify the steamcache container image to also cache downloads for FAF
added benefit : takes load off the faf servers :mrgreen:

If you want to give it a go, all you need to do;
(you'll need a bit of experience with docker / containers)

  • download and run steamcache/steamcache container. This is effectively a reverse proxy running nginx. You can download the image form here https://hub.docker.com/r/steamcache/steamcache/
  • modify /etc/nginx/sites-available/steamcache.conf file in the container. Add the following directly below the existing "location /depot/" entry (for steam) to cache all /faf/ URI requests;

    Code:
    location /faf/ {
                    try_files $uri @mirror;
                    access_log /data/logs/access.log steamcache-local;
            }

  • redirect local DNS queries for content.faforever.com to your local server (above). I entered a host entry on my local DNS (pfsense : resolver service)
  • profit

There is a built-in script /scripts/watchlog.sh that displays access.log and highlights in green any cache HITS
(why i've left logging classified as "steamcache-local")

optionally you can use some of their other container images if you want to cache other gaming services i.e ;

https://hub.docker.com/r/steamcache/steamcache-dns/ - as DNS service to direct queries locally
https://hub.docker.com/r/steamcache/sniproxy/ - to forward though any https queries that cache cannot handle

Statistics: Posted by lynx_nz — 01 Nov 2018, 01:03


]]>