Skip to content

louisonsarlinmagnus/palpi

Repository files navigation

palpi

Repository for my Palworld server infra and data

PalWorld

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

Infra

Hardware

Raspberry Pi 4B 8Go

Install

Tools

sudo apt install python3-pip
sudo apt install python-is-python3
pip install RPi.GPIO

Docker

# 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

Data

Migrate data from Xbox Game Pass (XGP) to Dedicated Server

  1. Retreive the data from XGP using : XGP-save-extractor
  2. Create new map launching the dedicated server
  3. Once the files are created, stop the server
  4. Replace Players/, Level.sav and LevelMeta.sav from the export to the new map
  5. Launch the server, connect, create a new character and check that you're in your saved map
  6. Stop the server
  7. Install the tools :
    pip install palworld-save-tools
    git clone https://github.com/xNul/palworld-host-save-fix
  8. 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
  9. Replace your local datas

Scripts

Fan control PWM

  1. Ensuring the GPIO lib is isntalled : pip freeze | grep RPi.GPIO
  2. Creating a systemd service file : sudo nano /etc/systemd/system/pwm_fan_control.service
  3. 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
  4. Reloading systemctl : sudo systemctl daemon-reload
  5. Enabling our service : sudo systemctl enable pwm_fan_control.service
  6. Starting our service : sudo systemctl start pwm_fan_control.service
  7. 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'

About

Palworld infra and data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages