Skip to content

Latest commit

 

History

History
380 lines (313 loc) · 9.08 KB

File metadata and controls

380 lines (313 loc) · 9.08 KB

Run ArkFieldPS on Linux

Contents

Debian 12

First you need update your apt sources.

sudo apt update && sudo apt upgrade

Install Dependencies

  1. Install Dependencies
sudo apt install git wget curl zip
  1. Install MongoDB 8

    Follow the instruction on MongoDB Offical Site

  2. Install .Net8

    Follow the instruction on Microsoft

Install ArkFieldPS

  1. Download PS and Data
cd
mkdir ArkFieldPS && cd ArkFieldPS
wget https://github.com/SuikoAkari/ArkFieldPS/releases/latest/download/ArkFieldPS-master-Linux.zip
mkdir GameData && cd GameData
git clone https://github.com/PotRooms/EndFieldData.git
  1. Extract ArkFieldPS and Copy Files
cd ..
unzip ArkFieldPS-master-Linux.zip
cp -r GameData/EndFieldData/Json Json
cp -r GameData/EndFieldData/DynamicAssets DynamicAssets
cp -r GameData/EndFieldData/TableCfg/. TableCfg
  1. Modify Config

Note

If you want to run ArkFieldPS on a public server, please follow the steps.

Run the PS once, PS will auto generate server_config.json

Use vim or nano open server_config.json and change dispatchServer.bindAddress and gameServer.bindAddress to "0.0.0.0", dispatchServer.accessAddress and gameServer.accessAddress to your server ip.

{
  "mongoDatabase": {
    "uri": "mongodb://localhost:27017",
    "collection": "ArkFieldPS"
  },
  "dispatchServer": {
    "bindAddress": "0.0.0.0",
    "bindPort": 5000,
    "accessAddress": "your server address",
    "accessPort": 5000,
    "emailFormat": "@endfield.ps"
  },
  "gameServer": {
    "bindAddress": "0.0.0.0",
    "bindPort": 30000,
    "accessAddress": "your server address",
    "accessPort": 30000
  },
  "serverOptions": {
    "defaultSceneNumId": 98,
    "maxPlayers": 20
  },
  "logOptions": {
    "packets": false,
    "debugPrint": true
  }
}
  1. Run the PS

Allow port dispatchServer.accessPort and gameServer.accessPort on firewall

./ArkFieldPS

ArchLinux

First, use sudo pacman -Syyu to make sure your system is up to date.

Install Dependencies

Use paru or yay to get AUR packages.

paru -S dotnet-runtime-8.0 mongodb-bin

We need git, zip and wget to get PS files, get them with pacman

sudo pacman -S git zip wget

Install ArkFieldPS

  1. Download PS and Data
cd
mkdir ArkFieldPS && cd ArkFieldPS
wget https://github.com/SuikoAkari/ArkFieldPS/releases/latest/download/ArkFieldPS-master-Linux.zip 
mkdir GameData && cd GameData
git clone https://github.com/PotRooms/EndFieldData.git
  1. Extract ArkFieldPS and Copy Files
cd ..
unzip ArkFieldPS-master-Linux.zip
cp -r GameData/EndFieldData/Json Json
cp -r GameData/EndFieldData/DynamicAssets DynamicAssets
cp -r GameData/EndFieldData/TableCfg/. TableCfg
  1. Modify Config

Note

If you want to run ArkFieldPS on a public server, please follow the steps.

Run the PS once, PS will auto generate server_config.json

Use vim or nano open server_config.json and change dispatchServer.bindAddress and gameServer.bindAddress to "0.0.0.0", dispatchServer.accessAddress and gameServer.accessAddress to your server ip.

{
  "mongoDatabase": {
    "uri": "mongodb://localhost:27017",
    "collection": "ArkFieldPS"
  },
  "dispatchServer": {
    "bindAddress": "0.0.0.0",
    "bindPort": 5000,
    "emailFormat": "@endfield.ps"
  },
  "gameServer": {
    "bindAddress": "0.0.0.0",
    "bindPort": 30000,
    "accessAddress": "your server address",
    "accessPort": 30000
  },
  "serverOptions": {
    "defaultSceneNumId": 98,
    "maxPlayers": 20
  },
  "logOptions": {
    "packets": false,
    "debugPrint": true
  }
}
  1. Run the PS

Don't forget to allow port dispatchServer.accessPort and gameServer.accessPort (Default to be 5000 and 30000) on firewall

./ArkFieldPS

Fedora Workstation

Check for repository updates and install them:

sudo dnf check-update && sudo dnf upgrade

Install Dependencies

Note

By default, Fedora Workstation already includes the git, wget, and zip packages. If missing, install them:

sudo dnf install git wget zip
  1. Installing MongoDB 8:
  • Create a new MongoDB repository file:
sudo nano /etc/yum.repos.d/mongodb-org-8.0.repo
  • Add the following configuration to this file:
[mongodb-org-8.0]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/9/mongodb-org/8.0/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-8.0.asc
  • Install MongoDB:
sudo dnf install mongodb-org
  • Start the mongod.service and check its status:
sudo systemctl start mongod.service && sudo systemctl status mongod.service

If you want the service to start automatically on system boot:

sudo systemctl enable mongod.service
  1. Installing .Net 8:
  • Install the following package:
sudo dnf install dotnet-sdk-8.0

Install ArkFieldPS

  1. Download PS and Data
cd
mkdir ArkFieldPS && cd ArkFieldPS
wget https://github.com/SuikoAkari/ArkFieldPS/releases/latest/download/ArkFieldPS-master-Linux.zip 
mkdir GameData && cd GameData
git clone https://github.com/PotRooms/EndFieldData.git
  1. Extract ArkFieldPS and Copy Files
cd ..
unzip ArkFieldPS-master-Linux.zip
cp -r GameData/EndFieldData/Json Json
cp -r GameData/EndFieldData/DynamicAssets DynamicAssets
cp -r GameData/EndFieldData/TableCfg/. TableCfg
  1. Modify Config

Note

If you want to run ArkFieldPS on a public server, please follow the steps.

Run the PS once, PS will auto generate server_config.json

Use vim or nano open server_config.json and change dispatchServer.bindAddress and gameServer.bindAddress to "0.0.0.0", dispatchServer.accessAddress and gameServer.accessAddress to your server ip.

{
  "mongoDatabase": {
    "uri": "mongodb://localhost:27017",
    "collection": "ArkFieldPS"
  },
  "dispatchServer": {
    "bindAddress": "0.0.0.0",
    "bindPort": 5000,
    "accessAddress": "your server address",
    "accessPort": 5000,
    "emailFormat": "@endfield.ps"
  },
  "gameServer": {
    "bindAddress": "0.0.0.0",
    "bindPort": 30000,
    "accessAddress": "your server address",
    "accessPort": 30000
  },
  "serverOptions": {
    "defaultSceneNumId": 98,
    "maxPlayers": 20
  },
  "logOptions": {
    "packets": false,
    "debugPrint": true
  }
}
  1. Run the PS

Don't forget to allow port dispatchServer.accessPort and gameServer.accessPort (Default to be 5000 and 30000) on firewall

./ArkFieldPS

Ubuntu

First, you need to check the system for updates:

sudo apt update && sudo apt upgrade

Install Dependencies

  1. Install the following packages if they are not installed::
sudo apt install git wget zip
  1. Install MongoDB 8: Follow the instructions on the official MongoDB website

Warning

On the second step, make sure to select your version of Ubuntu; otherwise, the installation will fail.

  1. Install .NET 8: Follow the instructions on the official Microsoft website

Warning

Also, don't forget to select your version of Ubuntu.

Install ArkFieldPS

  1. Download PS and Data
cd
mkdir ArkFieldPS && cd ArkFieldPS
wget https://github.com/SuikoAkari/ArkFieldPS/releases/latest/download/ArkFieldPS-master-Linux.zip 
mkdir GameData && cd GameData
git clone https://github.com/PotRooms/EndFieldData.git
  1. Extract ArkFieldPS and Copy Files
cd ..
unzip ArkFieldPS-master-Linux.zip
cp -r GameData/EndFieldData/Json Json
cp -r GameData/EndFieldData/DynamicAssets DynamicAssets
cp -r GameData/EndFieldData/TableCfg/. TableCfg
  1. Modify Config

Note

If you want to run ArkFieldPS on a public server, please follow the steps.

Run the PS once, PS will auto generate server_config.json

Use vim or nano open server_config.json and change dispatchServer.bindAddress and gameServer.bindAddress to "0.0.0.0", dispatchServer.accessAddress and gameServer.accessAddress to your server ip.

{
  "mongoDatabase": {
    "uri": "mongodb://localhost:27017",
    "collection": "ArkFieldPS"
  },
  "dispatchServer": {
    "bindAddress": "0.0.0.0",
    "bindPort": 5000,
    "accessAddress": "your server address",
    "accessPort": 5000,
    "emailFormat": "@endfield.ps"
  },
  "gameServer": {
    "bindAddress": "0.0.0.0",
    "bindPort": 30000,
    "accessAddress": "your server address",
    "accessPort": 30000
  },
  "serverOptions": {
    "defaultSceneNumId": 98,
    "maxPlayers": 20
  },
  "logOptions": {
    "packets": false,
    "debugPrint": true
  }
}
  1. Run the PS

Don't forget to allow port dispatchServer.accessPort and gameServer.accessPort (Default to be 5000 and 30000) on firewall

./ArkFieldPS