ankemp / AstroLauncher

An easy to use Astroneer Dedicated Server launcher

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Contributors Forks Stargazers Issues MIT License


AstroLauncher - Dedicated Server Launcher

AstroLauncher Bugs · Request Feature

Table of Contents

Overview

This tool is perfect for you if you are hosting your own dedicated server for Astroneer. It has many features to make hosting a lot easier like automatic restarts, advanced logging and a webinterface.

What does it do?

  1. Verifies your network settings to check for Port Forwarding/NAT Loopback
  2. Automatically sets up the base Config files
  3. Fixes the double server problem in the server list
  4. Starts, and automatically restarts the server
  5. Displays when users join/leave the server
  6. Keeps a log of everything in the logs folder
  7. Auto Restart every X hours
  8. Backup Retention for X hours
  9. Web Interface to monitor server data, force saves and restarts

TODO

  1. Build out Web Interface to have more management functions, possibly log in functionality

INI File options

Below are the descriptions and defaults for the INI file options. Do not copy/paste this into the INI file, allow the INI file to be automatically generated. Every option must be present and set, and there must be no comments or extra options.

# Disables Auto Update -- Notifies but does not download
DisableAutoUpdate = False

# Specifies how often the launcher will check for players joining/leaving
ServerStatusFrequency = 2

# Specifies how often the launcher will check for server registration status
PlayfabAPIFrequency = 2

# Disable Backup Retention
DisableBackupRetention = False

# How many hours of saves should the launcher retain
BackupRetentionPeriodHours= 76

# Location to backup the save files to
BackupRetentionFolderLocation = Astro\Saved\Backup\LauncherBackups

# Enable auto restart
EnableAutoRestart = False

# Timestamp you want to synchronize with. 00:00 or "midnight" work for midnight. Disable with "False". No quotes.
# Example: If set to 03:35, with AutoRestartEveryHours set to 6, it will restart at 03:35, 09:35, 15:35, and 21:35 every day
AutoRestartSyncTimestamp = 00:00

# After the first restart specified above, how often do you want to restart?
AutoRestartEveryHours = 24

# Disable the Port Forward / NAT Loopback check on startup
DisableNetworkCheck = False

# Disable the Web Management Server
DisableWebServer=False

# Set the port you want the Web Management Server to run on
WebServerPort=5000

# Disable the server console popup window.
DisableServerConsolePopup=False

Getting Started

To get a local copy up and running follow these simple steps or check the Latest Release for a download of the executable.

Prerequisites

This is an example of how to list things you need to use the software and how to install them.

  • Python 3.7
  • pip / pipenv

Installation

  1. Clone the AstroLauncher repository
git clone https://github.com/ricky-davis/AstroLauncher.git
  1. Install python modules using pip or pipenv
pip install requirements.txt
pipenv install

Usage

Run the server launcher using one of the following commands

python Run-Server.py
pipenv run python AstroLauncher.py



If not placed in the same directory as the server files, you can specify a server folder location like so

python AstroLauncher.py --path "steamapps\common\ASTRONEER Dedicated Server"
pipenv run python AstroLauncher.py -p "steamapps\common\ASTRONEER Dedicated Server"

Building an EXE

  1. If you want to turn this project into an executable, make sure to install pyinstaller using one of the following methods
pip install pyinstaller
pipenv install -d
  1. Run pyinstaller with the all-in-one flag
pyinstaller AstroLauncher.py -F --add-data "assets/*;." --icon=assets/astrolauncherlogo.ico

or just run the BuildEXE.py which automatically cleans up afterwards

python -OO BuildEXE.py
  1. Move the executable (in the new dist folder) to the directory of your choice. (If you want you can now delete the dist and build folders, as well as the .spec file)
  2. Run AstroLauncher.exe
AstroLauncher.exe -p "steamapps\common\ASTRONEER Dedicated Server"

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Ricky Davis - Discord: @Spyci#0001

Project Link: https://github.com/ricky-davis/AstroLauncher

About

An easy to use Astroneer Dedicated Server launcher

License:MIT License


Languages

Language:Python 72.2%Language:HTML 12.9%Language:JavaScript 11.8%Language:CSS 3.0%