Skip to main content

Extract player, tribe, and server data from ARK: Survival Ascended save files

Project description

ARK: Survival Ascended Save Parser

A Python library for extracting player, tribe, and server data from ARK: Survival Ascended save files.

Features

Player Data Extraction

  • Player names (Epic Games account names)
  • Character names (in-game names)
  • Tribe membership
  • Player levels and stats

Tribe Data Extraction

  • Tribe names
  • Tribe owner information
  • Member lists with names and IDs
  • Tribe logs

Server Analytics

  • Player counts across servers
  • Tribe statistics
  • Save file metadata
  • Multi-server cluster support

Installation

pip install ark-asa-parser

Quick Start

from ark_asa_parser import ArkSaveReader
from pathlib import Path

# Initialize reader with path to save directory
save_dir = Path("R:/PhoenixArk/asaserver_island/ShooterGame/Saved/SavedArks/TheIsland_WP")
reader = ArkSaveReader(save_dir)

# Get all players
players = reader.get_all_players()
for player in players:
    print(f"{player.player_name} ({player.character_name})")
    print(f"  Tribe ID: {player.tribe_id}")
    print(f"  Level: {player.level}")

# Get all tribes
tribes = reader.get_all_tribes()
for tribe in tribes:
    print(f"{tribe.tribe_name}")
    print(f"  Owner: {tribe.owner_name}")
    print(f"  Members: {tribe.member_count}")

Scanning Multiple Servers

from ark_asa_parser import scan_all_servers
from pathlib import Path

# Scan entire cluster
cluster_path = Path("R:/PhoenixArk")
servers = scan_all_servers(cluster_path)

for server_name, reader in servers.items():
    print(f"\nServer: {server_name}")
    players = reader.get_all_players()
    tribes = reader.get_all_tribes()
    print(f"  Players: {len(players)}")
    print(f"  Tribes: {len(tribes)}")

File Structure

ARK ASA saves use the following structure:

SavedArks/
├── MapName_WP/                    # Save directory
│   ├── MapName_WP.ark            # World save (SQLite database)
│   ├── <eos_id>.arkprofile       # Player profile files
│   └── <tribe_id>.arktribe       # Tribe data files

Data Classes

PlayerData

@dataclass
class PlayerData:
    eos_id: str              # Epic Online Services ID
    player_name: str         # Epic Games account name
    character_name: str      # In-game character name
    tribe_id: int           # Tribe membership ID
    level: int              # Character level
    experience: float       # Experience points

TribeData

@dataclass
class TribeData:
    tribe_id: int           # Unique tribe ID
    tribe_name: str         # Tribe name
    owner_name: str         # Tribe owner identifier
    member_count: int       # Number of members

Advanced Usage

Get Server Database Info

reader = ArkSaveReader(save_dir)
info = reader.get_database_info()

print(f"Tables: {info['tables']}")
print(f"File size: {info['file_size']} bytes")
print(f"Last modified: {info['file_modified']}")

Read Individual Files

from pathlib import Path

# Read specific player profile
player_file = Path("path/to/player.arkprofile")
player = reader.read_profile_file(player_file)

# Read specific tribe file
tribe_file = Path("path/to/tribe.arktribe")
tribe = reader.read_tribe_file(tribe_file)

How It Works

The library uses a custom binary parser to extract UE5 (Unreal Engine 5) properties from ARK's save files:

  1. World Saves (.ark): SQLite databases containing game objects and world state
  2. Player Profiles (.arkprofile): Binary files with UE5 property serialization containing player data
  3. Tribe Files (.arktribe): Binary files with UE5 property serialization containing tribe information

The parser handles:

  • Length-prefixed strings (ASCII and UTF-16)
  • Various property types (String, Integer, Array)
  • Nested property structures
  • Binary search for efficient property extraction

Requirements

  • Python 3.8+
  • No external dependencies (uses only Python standard library)

Development Status

✅ Implemented

  • Player name extraction
  • Character name extraction
  • Tribe name extraction
  • Tribe member lists
  • Basic player stats (level, tribe membership)
  • Multi-server scanning

🚧 In Development

  • Full player stats (health, stamina, weight, etc.)
  • Dino data extraction
  • Structure data extraction
  • Inventory parsing
  • Level calculation from experience

Contributing

Contributions are welcome! This is an open-source project to help the ARK community build tools for server management, analytics, and player tracking.

Areas for Contribution

  • Additional property type parsers (Float, Struct, Object)
  • Dino data extraction
  • Structure/building data
  • Documentation improvements
  • Example scripts and use cases

License

MIT License - See LICENSE file for details

Credits

Developed by BoldPhoenix for the ARK: Survival Ascended community.

Special thanks to the ARK modding community for reverse-engineering documentation.

Support

Example Use Cases

  • Discord bots for server statistics
  • Web dashboards for player tracking
  • Automated backup systems with metadata
  • Player activity monitoring
  • Tribe management tools
  • Server admin utilities

Version History

0.1.1 (Current)

  • Full property extraction implementation
  • Player name and character name support
  • Tribe name and member list support
  • Array property parsing
  • Multi-server cluster scanning

0.1.0

  • Initial release
  • Basic save file reading
  • SQLite database parsing
  • Player and tribe file detection

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ark_asa_parser-0.1.1-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file ark_asa_parser-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: ark_asa_parser-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 11.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for ark_asa_parser-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 aa46148b31738af33ed3917d0ccc5ee4a44c5b628d31647e00b1ab4a726d974c
MD5 9df744ed6e442dbe85f8283b0268f274
BLAKE2b-256 2fa6339803e5b513ad07a29d4ea9acc492d4c738c317f30b866e0fe504f59268

See more details on using hashes here.

Supported by

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