Repository for my Palworld server infra and data
Palworld is an upcoming action-adventure, survival, and monster-taming game created and published by Japanese developer Pocket Pair. The game is set in an open world populated with animal-like creatures called "Pals", which players can battle and capture to use for base building, traversal, and combat.
Source Wikipedia
Raspberry Pi 4B 8Go
sudo apt install python3-pip
sudo apt install python-is-python3
pip install RPi.GPIO
# Add Docker's official GPG key:
sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
# Add the repository to Apt sources:
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
sudo docker run hello-world
- Retreive the data from XGP using : XGP-save-extractor
- Create new map launching the dedicated server
- Once the files are created, stop the server
- Replace
Players/
,Level.sav
andLevelMeta.sav
from the export to the new map - Launch the server, connect, create a new character and check that you're in your saved map
- Stop the server
- Install the tools :
pip install palworld-save-tools git clone https://github.com/xNul/palworld-host-save-fix
- Then proceed to replace the character you've created earlier by you previous character :
python fix-host-save.py <save_path> <new_guid> <old_guid> <guild_fix>
Exemple :python tools/palworld-host-save-fix/fix-host-save.py palworld/Pal/Saved/SaveGames/0/902FD5E141B8440C8102A2ED95AD03E9/ 8AB82DD5000000000000000000000000 0B420F96000000000000000000000000 True
- Replace your local datas
- Ensuring the GPIO lib is isntalled :
pip freeze | grep RPi.GPIO
- Creating a systemd service file :
sudo nano /etc/systemd/system/pwm_fan_control.service
- Add :
[Unit] Description=My Python Script Service After=network.target [Service] User=palpi ExecStart=/usr/bin/python /home/palpi/palpi/scripts/pwm_fan_control.py WorkingDirectory=/home/palpi/palpi/scripts StandardOutput=null StandardError=null [Install] WantedBy=multi-user.target
- Reloading systemctl :
sudo systemctl daemon-reload
- Enabling our service :
sudo systemctl enable pwm_fan_control.service
- Starting our service :
sudo systemctl start pwm_fan_control.service
- Checking our service :
sudo systemctl status pwm_fan_control.service
TIPS :
- You can stress the CPU to increase the temp with
fulload() { dd if=/dev/zero of=/dev/null | dd if=/dev/zero of=/dev/null | dd if=/dev/zero of=/dev/null | dd if=/dev/zero of=/dev/null & }; fulload; read; killall dd
The more| dd if=/dev/zero of=/dev/null
the higher it will reach - You can check the temp with
vcgencmd measure_temp|sed 's/[^0-9.]//g'