Skip to main content

A library to convert coordinates in Palworld from the .sav file to Paldex Map and vice-versa

Project description

Palworld Coordinate Converter

Developed by https://palworld.lol with major help from https://github.com/cmkb3

This is a small library with two functions used to convert between two different coordinat systems in Palworld:

  1. The coordinate system used in the game itself in the Paldex interactive map
  2. The coordinate system used in the game save files (.sav)

Installation

pip install palworld-coord

Also, if you want, you can just copy the contents of this file into your project instead of adding a dependency.

API

# Convert from save game file coordinate to Paldex
sav_to_map(x: float, y: float) -> Point
# Convert from Paldex coordinate to save game file
map_to_sav(x: int,   y: int) -> Point

Usage Examples

from palworld_coord import sav_to_map, map_to_sav

# Anubis boss location pulled from game data
sav_to_map(-167230, 96430)
# Point(x=-134, y=-94)

# Get .sav coordinates of random base location in-game:
map_to_sav(373, -359)
# Point(x=-288669, y=329207)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

palworld-coord-1.0.0.tar.gz (5.6 kB view hashes)

Uploaded Source

Built Distribution

palworld_coord-1.0.0-py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page