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:
- The coordinate system used in the game itself in the Paldex interactive map
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file palworld-coord-1.0.0.tar.gz.
File metadata
- Download URL: palworld-coord-1.0.0.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
936e0d1fab7e474b1b970e01283440c2d0dcc77fa15c5197a5a50f96237e111a
|
|
| MD5 |
7096d14ac00658283e814937b1c736ad
|
|
| BLAKE2b-256 |
9b3eda96be4fd5478010465524a8fa812b6c3d1b5f4f1e44b50846f60f50ec03
|
File details
Details for the file palworld_coord-1.0.0-py3-none-any.whl.
File metadata
- Download URL: palworld_coord-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b25c13a17768f5a22353b8ebb5dff531ff68530237d58589fbabf8f4bb5e9418
|
|
| MD5 |
b7306e709131b8181dddd6cf91a8b863
|
|
| BLAKE2b-256 |
646a5cb0d88ece55502e6ace1e52b489f0c8c3e78b452dce75fb0833a5fe4f39
|