Difference between revisions of "My Avorion Info"

From Got Opinion Wiki
Jump to navigation Jump to search
(initial page creation)
 
m
Line 1: Line 1:
== Avorion headless server ==
== Avorion headless server ==


Steps were created using Ubuntu 20.04.6 LTS.
These steps were created using Ubuntu 20.04.6 LTS and Avorion server 2.3.1.


Steps
# Ensure that SteamCMD is installed. The steps to install are [https://developer.valvesoftware.com/wiki/SteamCMD here].
# Create a directory for Avorion headless server application.
# Create a directory for Avorion galaxy files.
# Install Avorion headless server application.
# Start, Save, and Stop Avorion headless server application.
# Update Avorion headless server application.
For all the steps use your Steam user created for steamcmd. My user is called 'steamy' and the command used to switch to user steamy is:
<code>$ sudo -u steamy -s</code>
=== Installing Avorion via steamcmd ===
'''Ensure steamcmd is installed.'''
=== Create directory for Avorion headless server application ===
I created a directory called Avorion in the user steamy home directory.  Command used:
<code>mkdir /home/steamy/Avorion</code>
=== Create a directory for Avorion galaxy files ===
I created a directory called Avorion_Galaxies in the user steamy home directory for Avorion headless server app galaxies.  Command used:
<code>mkdir /home/steamy/Avorion_Galaxies</code>
=== Install Avorion headless server application ===
Command format:
<code>steamcmd +login anonymous +force_install_dir <SERVER_PATH> +app_update 565060 validate +exit</code>
The SERVER_PATH is the absolute path to Avorion headless server application files. The SERVER_PATH for my steps is /home/steamy/Avorion. Command used:
<code>steamcmd +login anonymous +force_install_dir /home/steamy/Avorion +app_update 565060 validate +exit</code>
Result:
<pre>steamy@steamnuc00:~$ steamcmd +login anonymous +force_install_dir /home/steamy/Avorion +app_update 565060 validate +exit
Redirecting stderr to '/home/steamy/.steam/logs/stderr.txt'
[  0%] Checking for available updates...
[----] Verifying installation...
Steam Console Client (c) Valve Corporation - version 1691628584
-- type 'quit' to exit --
Loading Steam API...dlmopen steamservice.so failed: steamservice.so: cannot open shared object file: No such file or directory
OK
Connecting anonymously to Steam Public...OK
Waiting for client config...OK
Waiting for user info...OK
Please use force_install_dir before logon!
Update state (0x3) reconfiguring, progress: 0.00 (0 / 0)
Update state (0x3) reconfiguring, progress: 0.00 (0 / 0)
Update state (0x61) downloading, progress: 4.61 (6291456 / 136420041)
Update state (0x61) downloading, progress: 27.83 (37970732 / 136420041)
Update state (0x61) downloading, progress: 50.12 (68379436 / 136420041)
Update state (0x61) downloading, progress: 70.63 (96351157 / 136420041)
Update state (0x61) downloading, progress: 93.85 (128031433 / 136420041)
Success! App '565060' fully installed.
CWorkThreadPool::~CWorkThreadPool: work processing queue not empty: 1 items discarded.
steamy@steamnuc00:~$</pre>
=== Start, Save, and Stop Avorion headless server application ===
Command:
<code>./server.sh --galaxy-name <GALAXY_NAME> --admin <64-bit SteamID> --datapath <GALAXY_PATH></code>
GALAXY_NAME is the name of your galaxy. For this setup, I used <code>Andromedia</code>. <span style="color:red">NOTE: If the GALAXY_NAME doesn't exist, this command will create a galaxy with the GALAXY_NAME value.</span>
64-bit SteamID is your 64-bit SteamID. For this setup, use your own 64-bit SteamID.
GALAXY_PATH is the directory where you will store your galaxies. I used <code>/home/steamy/Avorion_Galaxies/</code>.
Command used without my SteamID:
<code>./server.sh --galaxy-name Andromeda --admin <64-bit SteamID> --datapath /home/steamy/Avorion_Galaxies/</code>
Once your Avorion headless server application is running, type <code>/save</code> to save galaxy or <code>/stop</code> to exit application. <span style="color:blue">It is good practice to always use /save and then /stop.</span>
<span style="color:red">NOTE: Always stop the server by using <code>/stop</code> command. Closing the console window may cause issues with your galaxy or Avorion headless server application files.</span>
=== Configure Avorion headless server galaxy ===
[[Avorion server.ini README contents]]
Make any changes to your server.ini you need by editing the server.ini of your galaxy. It is stored at <GALAXY_PATH>/<GALAXY_NAME>. Save the file after making any changes.
Suggest making a backup of server.ini before making changes!
=== Update Avorion headless server application ===
To update your Avorion headless server application, run the same command used to install the application.
<code>steamcmd +login anonymous +force_install_dir /home/steamy/Avorion +app_update 565060 validate +exit</code>
== Avorion game info ==


[[Gaming]]
[[Gaming]]

Revision as of 14:57, 2 September 2023

Avorion headless server

These steps were created using Ubuntu 20.04.6 LTS and Avorion server 2.3.1.

Steps

  1. Ensure that SteamCMD is installed. The steps to install are here.
  2. Create a directory for Avorion headless server application.
  3. Create a directory for Avorion galaxy files.
  4. Install Avorion headless server application.
  5. Start, Save, and Stop Avorion headless server application.
  6. Update Avorion headless server application.

For all the steps use your Steam user created for steamcmd. My user is called 'steamy' and the command used to switch to user steamy is:

$ sudo -u steamy -s

Installing Avorion via steamcmd

Ensure steamcmd is installed.

Create directory for Avorion headless server application

I created a directory called Avorion in the user steamy home directory. Command used:

mkdir /home/steamy/Avorion

Create a directory for Avorion galaxy files

I created a directory called Avorion_Galaxies in the user steamy home directory for Avorion headless server app galaxies. Command used:

mkdir /home/steamy/Avorion_Galaxies

Install Avorion headless server application

Command format:

steamcmd +login anonymous +force_install_dir <SERVER_PATH> +app_update 565060 validate +exit

The SERVER_PATH is the absolute path to Avorion headless server application files. The SERVER_PATH for my steps is /home/steamy/Avorion. Command used:

steamcmd +login anonymous +force_install_dir /home/steamy/Avorion +app_update 565060 validate +exit

Result:

steamy@steamnuc00:~$ steamcmd +login anonymous +force_install_dir /home/steamy/Avorion +app_update 565060 validate +exit
Redirecting stderr to '/home/steamy/.steam/logs/stderr.txt'
[  0%] Checking for available updates...
[----] Verifying installation...
Steam Console Client (c) Valve Corporation - version 1691628584
-- type 'quit' to exit --
Loading Steam API...dlmopen steamservice.so failed: steamservice.so: cannot open shared object file: No such file or directory
OK

Connecting anonymously to Steam Public...OK
Waiting for client config...OK
Waiting for user info...OK
Please use force_install_dir before logon!
 Update state (0x3) reconfiguring, progress: 0.00 (0 / 0)
 Update state (0x3) reconfiguring, progress: 0.00 (0 / 0)
 Update state (0x61) downloading, progress: 4.61 (6291456 / 136420041)
 Update state (0x61) downloading, progress: 27.83 (37970732 / 136420041)
 Update state (0x61) downloading, progress: 50.12 (68379436 / 136420041)
 Update state (0x61) downloading, progress: 70.63 (96351157 / 136420041)
 Update state (0x61) downloading, progress: 93.85 (128031433 / 136420041)
Success! App '565060' fully installed.
CWorkThreadPool::~CWorkThreadPool: work processing queue not empty: 1 items discarded.
steamy@steamnuc00:~$

Start, Save, and Stop Avorion headless server application

Command:

./server.sh --galaxy-name <GALAXY_NAME> --admin <64-bit SteamID> --datapath <GALAXY_PATH>

GALAXY_NAME is the name of your galaxy. For this setup, I used Andromedia. NOTE: If the GALAXY_NAME doesn't exist, this command will create a galaxy with the GALAXY_NAME value. 64-bit SteamID is your 64-bit SteamID. For this setup, use your own 64-bit SteamID. GALAXY_PATH is the directory where you will store your galaxies. I used /home/steamy/Avorion_Galaxies/.

Command used without my SteamID:

./server.sh --galaxy-name Andromeda --admin <64-bit SteamID> --datapath /home/steamy/Avorion_Galaxies/

Once your Avorion headless server application is running, type /save to save galaxy or /stop to exit application. It is good practice to always use /save and then /stop.

NOTE: Always stop the server by using /stop command. Closing the console window may cause issues with your galaxy or Avorion headless server application files.

Configure Avorion headless server galaxy

Avorion server.ini README contents

Make any changes to your server.ini you need by editing the server.ini of your galaxy. It is stored at <GALAXY_PATH>/<GALAXY_NAME>. Save the file after making any changes.

Suggest making a backup of server.ini before making changes!

Update Avorion headless server application

To update your Avorion headless server application, run the same command used to install the application.

steamcmd +login anonymous +force_install_dir /home/steamy/Avorion +app_update 565060 validate +exit

Avorion game info

Gaming