Skip to content

juunini/palworld-settings

Repository files navigation

Palworld Settings Parser

Palworld Icon
Palworld Go

Install

go get github.com/juunini/palworld-settings

Usage

package main

import (
	"os"

	palworld_settings "github.com/juunini/palworld-settings"
)

func main() {
	settingString, _ := os.ReadFile("~/steamapps/common/PalServer/Pal/Saved/Config/LinuxServer/PalWorldSettings.ini")

	setting, err := palworld_settings.Parse(string(settingString))
	// Do something with setting and err

	os.WriteFile("~/steamapps/common/PalServer/Pal/Saved/Config/LinuxServer/PalWorldSettings.ini", []byte(setting.ToString()), 0644)
}