Guide to Installing Dead Frontier on Linux, Mac and Steam Deck

Feel free to contribute by either adding your own control schemes for Steam Deck to this page or if you have one - updated Mac instructions! 
Need help? First refer to Common Issues. If the solution(s) don't help, you're welcome to contact me on Discord at MoistGoat 
== Steam Deck (Last update: 2023-12-18) ==
Short Example Clip of the game playing: https://youtu.be/o3v9PiaPx6g
This setup process will take about 10-20 minutes. I would highly recommend using a keyboard and mouse if possible to make the process easier.
UPDATING THE GAME: To update, you simply just download the executable while running waterfox, and then open the downloaded file and run it. No need to redo all the steps again.
=== Setup ===	
* Head to Desktop Mode and download Windows version of 6.0 version of Waterfox browser.	
*Add the executable to Steam as a Non-steam game	
 IMPORTANT UPDATE: As of some date, Valve has updated Steam in a way that borks selecting a new shortcut manually in properties of a game. You can simply fix this yourself by adding double quotes both sides of the Target and Start In path. Remember to add these yourself at the start and end if any of the directories you go to have spaces! See here for an example: Browser not launching
* Right-click the non-steam shortcut "Waterfox.G#.#.#.Setup" and open Properties. Set the name to "Dead Frontier" and go into compatability, and select Proton 8.0-4 (important) - you may need to set a steam game to download this version. Close the properties menu, then launch it and select custom install. Untick all the unnecessary stuff like creating a desktop shortcut.	
* At the end of the install, head back to the properties of "Dead Frontier" and click Browse, then head to /home/deck/.steam/steam/steamapps/compatdata/############/pfx/drive_c/windows/regedit.exe (the number is going to be long, like 3921244425 and should appear as the most recently modified).	
* Head to HKEY_CLASSES_ROOT\http\shell\open\command and click on it, then change value to (include quotes): "C:\Program Files\Waterfox\waterfox.exe" "%1" Do the same for HKEY_CLASSES_ROOT\https\shell\open\command	
*Close Regedit, then head back to properties of "Dead Frontier" and for the last time click Browse, then head to /home/deck/.steam/steam/steamapps/compatdata/############/pfx/drive_c/Program Files/Waterfox/waterfox.exe	
*At this point either head to Control Schemes and follow the instructions, OR you may create your own later.	
*Now run the "Dead Frontier" non-steam game.	
*Navigate to "about:config" in the url bar and create the value network.protocol-handler.expose.deadfrontier as boolean and set to FALSE Do the same for network.protocol-handler.external.deadfrontier and set to TRUE	
{| class="mw-collapsible"	Optional Browser Setup - highly recommended
* Go to "More Tools" and click Customize Toolbar..., here you want to tick the box that says "Title Bar". The rest can be left as default for now.	
* In settings, untick the box "Always check if Waterfox is your default browser" - this removes an annoying prompt.	
* Under the section "Tabs" just below you may wish to customise settings here. I personally recommend keeping "Container Tabs" enabled especially if you wish to use multiple characters. Change these in the "Settings" button to the right, and be sure to tick "Select a container for each new tab". As for the "Tab Bar Position" it would be best if it's at the bottom. (Don't worry about if its above or below status bar, we won't be using that for security reasons)	
* Next, scroll to "Language and Appearance" and click on "Advanced". In this popup, your settings should be as follows: - Proportional: Serif (size 16) - Serif: Tahoma - Sans-Serif: Noto Sans Old - Monospace: Leave as default	
* Scroll down a smidge more to the subsection "Dynamic Themes" and optionally select "Force Dark Mode"	
* Not necessary, but you may also wish to scroll down to "Waterfox Updates" and select to "Never check for updates". Doing so may avoid any future updates borking this browser; and it shouldn't be important as we're simply using it for Dead Frontier.	
* Scroll down a little more to "Status Bar" and untick "Show Links". This is crucial and highly recommended especially if you ever plan to stream your gameplay - as your token WILL otherwise be exposed, which is VERY VERY BAD! I can't stress this enough!	
* Under the "Search" tab, you may wish to change the search engine to something other than Bing.	
* Navigate to https://addons.mozilla.org/en-US/firefox/addon/tampermonkey/ or search for "firefox tampermonkey" and install the addon. After installed go to this link and get the script: (primarily designed for Steam Deck) https://greasyfork.org/en/scripts/452447-dead-frontier-tweaks Also I would suggest getting https://greasyfork.org/en/scripts/383308-silverscripts (requires having a controller bind that makes use of Alt)	
* For the time being, disable tampermonkey scripts (currently will mess with the install process), later in the guide we will re-enable these.	
* Under "Extensions & Themes" tab, you may wish to change your theme. This is entirely up to you whether you wish to customise a bit more.	
=== Adding Images to the Non-Steam Shortcut === 	 	 	 	
Here's a great video-guide by someone who has created a guide on how to add custom images to non-steam games: https://www.youtube.com/watch?v=CJsoGik7hLo	 	 	 	
{| class="mw-collapsible" 	Images you'll need 	Images you'll need	Images you'll need 	Where it goes
Background 	https://i.imgur.com/0rbB6I0.png	
File:SteamDeck CustomBackground.png	This is the image that appears above the green "PLAY" button.
Add it as a "Custom Background" 	
Logo (invisible) 	https://i.imgur.com/4s28xmQ.png	 	This goes in the same place as above, except "Custom Logo" simply to hide the text. 	
Icon 	https://i.imgur.com/Qcaaixv.png	
File:SteamDeck CustomIcon.png	Right click properties of the game, click the blank box next to "Dead Frontier" and navigate to this one. 	
Banner (Portrait) 	https://i.imgur.com/I1YQ6xf.png	
File:SteamDeck PortraitBanner.png	If you're unsure of where this goes by its name, you're basically looking for a portrait box, like the other games you've recently played. Video may explain this better	
Banner (Landscape) 	https://i.imgur.com/hhE9cmx.png	
File:SteamDeck LongerBanner.png	This will be easy to apply if you've launched this game most recently by right clicking on the game and setting custom artwork. 	
===Control Schemes=== 	 	
I have yet to receive feedback on whether people can download control schemes, and as a result this may or may not work. If it works or not, I'd love to know.	 	
Downloading a Control Scheme: Copy a config link below and enter it in Terminal/CLI example; steam steam://controllerconfig/deadfrontierexe/#######
{| class="fandom-table"	User 	Config Link
User:MoistAyy 	steam steam://controllerconfig/deadfrontierexe/2862270098	
 	 	
 	 	
== Linux (Last update: 2024-08-15) ==
This section includes steps to run the game with and without Steam. The process of getting the game running should take approximately 5 minutes. If you wish to use controllers, use the Steam overlay, and access multiplayer instances, you should follow "With Steam" instructions. 
=== Setup === 	
{| class="mw-collapsible mw-collapsed"	Without Steam
* Firstly, ensure to install both wine and winetricks via your package manager.	
* Run winetricks and click "Select the default prefix", then go ahead and click "Install Windows DLL or component." Here, you only need to find and download dxvk (it may appear at the top or bottom of the specific versions of dxvk)	
* Download the OFFICAL client by clicking to go to Inner City, then click on "Windows Installer (50mb)" and install it as you would with any other wine program.	
* Once completed, navigate to $HOME/.wine/drive_c/Program Files (x86)/Dead Frontier/ and create a text file next to the DeadFrontier.exe. Name this run.sh. Open the file, and paste in the following code:
#!/bin/bash
DIR=$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)
wine "$DIR/DeadFrontier.exe" "$@"
Ensure you right click run.sh and go to Permissions and tick Is Executable. (This may vary depending on your desktop environment)	
Pick one of the following browsers:	
{| class="mw-collapsible mw-collapsed"	Firefox
* Navigate to about:config in the URL bar.	
* Type in the 'search' bar the following: network.protocol-handler.expose.deadfrontier and add as boolean. Set this to FALSE. Add another in the same way, this time network.protocol-handler.external.deadfrontier and again, add as boolean. Set this to TRUE.	
* Restart your browser, then click the "Launch Standalone Client". It will ask you to choose an application. Navigate to the one we made earlier which should be $HOME/.wine/drive_c/Program Files (x86)/Dead Frontier/run.sh and feel free to tick the "remember" box.	
== Mac/iOS (updated N/A) (OLD) ==
The following instructions are courtesy of others on Discord. Assuming you joined the Dead Frontier Discord, those can be found in #df1-questions under pinned comments. These are somewhat old and dated in my opinion, but I don't really have access to a Mac to revamp the instructions and make them better. A document related to Macs is here https://docs.google.com/document/d/1t5vmWq8PxXDqsUIjnNq8cnG6jPFRFjZIAKbjPkZntW8/edit and provides relevant forum threads.
However, from what I know, you could more than likely get away by installing this game following Steam Deck methods except you should be better off downloading whatever version of WINE that you can as Steam and Proton do not work on Mac to my knowledge. In short, get WINE, download Waterfox.exe, and install the client whilst in Waterfox.exe, and follow the steps. Hope this gives a rough idea of a potential method that should work (depending on what iOS version you have I suspect)
=== Setup === 	
{| class="mw-collapsible mw-collapsed" 	Method by Shawn#0786
https://fairview.deadfrontier.com/onlinezombiemmo/index.php?topic=933125.0	
Download https://www.waterfox.net/download/ 	
Download https://www.macupdate.com/app/mac/18727/unity-web-player 	
Download https://get.adobe.com/flashplayer/otherversions/ 	
In URL bar type "about:addons" 	
== Common Issues ==
=== Inner-City doesn't launch the client after following the guide (Browser related) ===
* To rectify this we need to register the deadfrontier protocol. Right click on this URL https://google.com and click inspect element, then change the href to deadfrontier:cake and then click on the edited www.google.com link, and it will register. You won't need to do this again.
=== Browser not launching (Steam Deck Specific) ===
* This one is simple to fix, all you need to do is go into the properties of the non-steam shortcut and change the Target and Start-in paths to include a double quote at the start and end. See the image below. Too lazy to add this to the guide properly, and in future it might work as it did before anyway. 
File:Steam Deck Setup Image -1.png
=== Inventory Not showing (Steam Deck Specific) ===
* You need to enable Developer Mode on the Steam deck for this, for some reason.