This README explains the functionality of the install_palworld.bat script, designed for setting up a Palworld server.
The install_palworld.bat script automates the process of installing SteamCMD, setting up a Palworld server, and preparing necessary scripts for server management. The script performs several checks to ensure that redundant installations do not occur if certain components are already installed.
-
SteamCMD Installation Check: The script first checks if SteamCMD is already installed by looking for
steam.dllandcrashhandler.dllin thesteamcmdfolder. If not found, it proceeds to install SteamCMD. -
Palworld Installation Check: The script checks if Palworld is already installed by verifying the existence of specific directories (
Engine,Pal,steamapps) and a file (tier0_s.dll) in the Palworld folder. -
Server Installation: If Palworld is not already installed, the script creates an
install_server.batfile in the Palworld folder. This batch file is then executed to install the Palworld server. -
Server Start Script: The script also creates a
start_server.batfile for running the Palworld server. This batch file performs several key functions to manage the Palworld server:- Set Current Directory: It sets the current working directory to the location of the batch file.
- Backup Server Configuration: It checks for "ServerBackups" folder, creates it if not present, and backs up the server configuration.
- Update the Server: The script updates the Palworld server using SteamCMD.
- Update Server Settings: It copies new
.inifiles from the "updateSettings" folder to the server's configuration directory. - Start the Server: Finally, the script starts the Palworld server with specific command-line arguments for performance and server settings.
If you prefer to manually install SteamCMD, follow these steps:
-
Download SteamCMD: Go to the SteamCMD Official Page and download the SteamCMD package.
-
Unzip and Place SteamCMD: Unzip the downloaded package and place
steamcmd.exein the same folder as theinstall_palworld.batfile. -
Prepare the Batch File:
- Copy the code for
install_palworld.batfrom the repository. - Paste it into a new text file.
- Save the file with the name
install_palworld.bat.
- Copy the code for
-
Run the Script: Double-click
install_palworld.batto start the installation process.
As an alternative, you can clone the entire repository which includes the install_palworld.bat file. This is useful if you want to obtain the latest version of the script along with any other related files.
- Ensure you have the necessary permissions to create directories and files in the script's location.
- The script assumes that the presence of certain files is an indication of a successful installation. Make sure these files are not manually altered or removed.