Dead Frontier Alternative Launcher

Lucky11
2025-04-26T00:23:37Z

Adds buttons to extract the private key and launch Dead Frontier from a .bat - for windows or .sh file - for linux os

- Dead Frontier Alternative Launcher -

This script is designed for Dead Frontier 3D to help run the game without needing it to be installed, or to run it on a Linux operating system. It can display your current authentication token for logging into Inner City or create a downloadable script that launches the game using your current account authentication token from a specified game path. The script relies on the browser's user agent; if it detects that the operating system is Windows, it will download a batch file tailored for Windows. Otherwise, it assumes the user is on Linux. This script was tested to be working both on windows and on linux.

Why Did You Make This?

This script allows you to run the game without having it installed on your system. For example, you can have the game on a USB drive and launch it quickly by downloading the batch file and running it! There's no need to copy the authentication key and place it anywhere! Additionally, if you're using a public computer, the batch file will delete itself by default, so you won't have to worry about leaving your authentication token saved outside of your USB drive.

Solves the Issue of Not Being Able to Launch the Client on Linux

On Linux, pressing "LAUNCH STANDALONE CLIENT" does not work. If you open the F12 console, you will see a warning: Prevented navigation to "deadfrontier://" due to unknown protocol. The real solution would be to add a custom URL scheme (deadfrontier://) to Linux so it recognizes Dead Frontier as an installed application. On Windows, this is done automatically by the Dead Frontier installer.

The easiest solution is to launch the game with your authentication token instead. This script does exactly that. It creates a bash script (.sh) with the path to the Wine `deadfrontier.exe` file. It automatically includes your authentication token in the script, allowing the game to launch and log into your account without any issues.

Running the script

After installing the script control buttons will appear at the bottom of https://fairview.deadfrontier.com/onlinezombiemmo/index.php?page=21 page

How To Launch The Game Using This Script

1. Launching by pressing scripts button "Launch Dead Frontier" to download launch file with your account token
This method takes about 3 clicks depending on browser settings if you need to agree when downloading a file. This method requires you to edit application paths found in this script (check below)
2. Downloading and setup python script
This method only takes 1 click to launch the game "Copy Authentication Token" Given that the script is already running in the background
3. Copying your account token and manually placing it in cmd or already saved bash/batch script that takes token as argument. No changes required.

Method 1.

What to Modify in the Code

If you prefer the launcher shortcut not to delete itself automatically and find it annoying to uncheck the checkbox every time, you can change:

const isCheckboxChecked = true;

to

const isCheckboxChecked = false;

This change sets the checkbox to be unchecked by default.

Setting the Path Directories

The script requires you to specify the path to the Dead Frontier executable file. This path tells the script where to find the game on your system. If you are using a USB drive to run the game, you will need to set the path accordingly.

Example for Windows

Assuming you have Dead Frontier installed on a USB drive, the path might look something like this:

const applicationPathWindows = "E:\\Dead Frontier\\DeadFrontier.exe";

In this example, "E:" represents the drive letter assigned to your USB drive. You should replace "E:" with the actual drive letter of your USB drive if it is different. The rest of the path should point to the location of the `DeadFrontier.exe` file on your USB drive.

After modifying the paths in the script, save your changes. The script will now be able to create the game launcher with correct game path and launch it with your authentication token when you click the launch button and run the downloaded script.

Problem on Linux

The problem on Linux is that everytime you download new .sh file, you need to allow executing that file as program otherwise you won't be able to run it.

[Desktop Entry]
Version=1.0
Type=Application
Name=Launch Dead Frontier0
Comment=Launch the Dead Frontier game
Exec=bash -c "chmod +x /home/xxxx/Downloads/launch_dead_frontier.sh && /home/xxxx/Downloads/launch_dead_frontier.sh"
Icon=/path/to/icon.png
Terminal=false
Categories=Game;

To solve this issue you need to create .desktop shortcut that would set the downloaded script (launch_dead_frontier.sh) as executable and then launch it afterwards. That's exactly what the code above does - just make sure to change the path to where your browser downloads .sh file. Save it as .desktop file and run it instead of directly running downloaded launch_dead_frontier.sh

Method 2.

Installing Python and configuring script.

Windows:

1. Install latest python 3
2. Install pyperclip module by opening cmd and typing `pip install pyperclip`
3. Save the code below as dead_frontier_launcher.py *Make sure to modify executable_path variable to the path you're using!

import pyperclip
import time
import subprocess
import os
import re

def check_clipboard():
    previous_text = ""
    print("Dead Frontier Launcher Script Started")
    while True:
        # Get the current text from the clipboard
        current_text = pyperclip.paste()
        # Check if the current text contains "deadfrontier" and is different from the previous text
        if current_text.startswith("deadfrontier:") and current_text != previous_text:
            if re.search(r"deadfrontier:\d{8} ", current_text):  # Adjusted regex for 8 digits
                # Define the path to the executable
                executable_path = r'C:\Program Files (x86)\Dead Frontier\DeadFrontier.exe'

                # Check if the executable exists
                if os.path.isfile(executable_path):
                    try:
                        # Launch the game with the clipboard content
                        subprocess.Popen([executable_path, current_text])

                        # Clear the clipboard
                        pyperclip.copy("")  # Set the clipboard to an empty string
                        print("Launched the game and cleared the clipboard token.")
                    except Exception as e:
                        print(f"Error launching the game: {e}")
                else:
                    print(f"Executable not found: {executable_path}")

        # Update the previous text
        previous_text = current_text

        # Wait for a specified interval (e.g., 1 second)
        time.sleep(1)

if __name__ == "__main__":
    check_clipboard()

4. Once saved it open it by double clicking as application - terminal window should open
5. Now everytime you Copy Authentication Token by pressing a button this script starts Dead Frontier.

Linux:

1. Install latest python 3 with pip
2. Install pyperclip module by opening cmd and typing `pip install pyperclip` It can be also `pip3 install pyperclip` depending on pip installed
Confirm that pyperclip is installed by opening terminal > typing python3 > import pyperclip > pyperclip.copy('text')
If everything is correct by pressing ctrl v "text" should appear as it's copied
*Note you may get this error `Pyperclip could not find a copy/paste mechanism for your system.` this is how to solve it: https://pyperclip.readthedocs.io/en/latest/introduction.html#not-implemented-error
3. Save it as dead_frontier_launcher.py

#!/usr/bin/env python3
import pyperclip
import time
import subprocess
import os
import re

def check_clipboard():
    print("Dead Frontier Launcher Script Started")
    previous_text = ""
    while True:
        # Get the current text from the clipboard
        current_text = pyperclip.paste()

        # Check if the current text contains "deadfrontier:" and is different from the previous text
        if current_text.startswith("deadfrontier:") and current_text != previous_text:
            if re.search(r"deadfrontier:\d{8} ", current_text):  # More checking if the copied text resembles df token
                # Define the path to the shell script
                script_path = '/path/to/run_dead_frontier.sh'  # Replace with the actual path to your script

                # Check if the script exists
                if os.path.isfile(script_path):
                    try:
                        # Run the shell script with the clipboard content as an argument
                        subprocess.Popen(['bash', script_path, current_text])

                        # Clear the clipboard
                        pyperclip.copy("")  # Set the clipboard to an empty string (delete auth token)
                        print("Launched the script and cleared the clipboard token.")
                    except Exception as e:
                        print(f"Error launching the script: {e}")
                else:
                    print(f"Script not found: {script_path}")

        # Update the previous text
        previous_text = current_text

        # Wait for a specified interval (e.g., 1 second)
        time.sleep(1)

if __name__ == "__main__":
    check_clipboard()

4. Make the script executable through properties terminal chmod +x dead_frontier_launcher.py
5. Create run_dead_frontier.sh and make it executable CODE:

#!/bin/bash
# Assign the first argument to the variable 'token'
token=$1

# Run the program with the provided token
wine "/home/xxx/.wine/drive_c/Program Files (x86)/Dead Frontier/DeadFrontier.exe" "$token"

6. Edit it according to your game path
7. test the .sh file in the terminal by running it with your token
./run_dead_frontier.sh "deadfrontier:12345678 6=:8hxxxxxxxxxxxxxxxxxx>"
Game should open correctly.
8. Edit dead_frontier_launcher.py file with correct path to /run_dead_frontier.sh
9. Make python script executable in terminal chmod +x dead_frontier_launcher.py or by editing properties
10. Edit system so you could double click python files to run them for easier use:
Open your file manager (Nemo in Linux Mint).
Go to Edit > Preferences.
Under the Behavior tab, look for the option that says "Executable Text Files" and set it to "Run executable text files when they are opened".
Note* If it still doesn't run after double tap: https://forums.linuxmint.com/viewtopic.php?t=435356
11. Run the script. Now everytime you press on script button "Copy Authentication Token" The python script will read your token from clipboard and pass it to .sh bash script which will run the game with your token.

Method 3.

Launching the Game Manually

If you prefer to launch the game manually instead of using the downloadable script, you can do so by using the Command Prompt (CMD) on Windows or the terminal on Linux. Follow the instructions below:

For Windows

1. Open the Command Prompt. You can do this by searching for "cmd" in the Start menu.

2. Type the following command, replacing path\to\your\deadfrontier\folder with the actual path to your Dead Frontier installation and your_token_here with your authentication token:

"E:\Dead Frontier\DeadFrontier.exe" "your_token_here"

For example, if your USB drive is E: and your token is "deadfrontier:12345678", you would type:

"E:\Dead Frontier\DeadFrontier.exe" "deadfrontier:12345678"

For Linux

1. Open the terminal. You can usually find it in your applications menu or by pressing Ctrl + Alt + T.

2. Type the following command, replacing /path/to/your/deadfrontier/folder with the actual path to your Dead Frontier installation and your_token_here with your authentication token:

"/media/.wine/cdrive/Dead Frontier/DeadFrontier.exe" "your_token_here"

For example, if your USB drive is mounted at /media/username/MyUSB and your token is ABC123, you would type:

"/media/.wine/cdrive/Dead Frontier/DeadFrontier.exe" "ABC123"

Warning: Do not share your authentication token with anyone else. Sharing your token can pose security risks. Always keep your authentication information private to protect your account.