承接 mistralys/x4-data-extractor 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mistralys/x4-data-extractor

Composer 安装命令:

composer require mistralys/x4-data-extractor

包简介

Generate batch files to extract X4 data with XRCatTool.

README 文档

README

X4 helper: Batch file generator to extract X4 game files with the XRCatTool.

Analyzes a local X4 installation to detect all .cat files for the base game and installed DLCs, and generates batch files to extract them to the configured output folder.

Requirements

Extracting Game Files

  1. Clone this repository.
  2. Copy dev-config.php.dist to dev-config.php.
  3. Edit dev-config.php to set the required paths.
  4. Run composer install to install the dependencies.
  5. Run composer build to generate the batch files.
  6. Open the batches folder in the repository root.
  7. Run any of the generated batch files to extract the game files.

Use the unpack-all.bat file to extract all files at once.

Delete Output folder first

To ensure a clean extraction, delete the output folder first. You can use this command in PowerShell:

Remove-Item -Recurse -Force output

NOTE: This will run for a while without any progress indication.

Accessing Extracted Files

Structure

To be able to recognize whether files belong to the base game or a DLC, a folder is created for the base game and each DLC separately. This is important for modding, as changing files belonging to a DLC requires using a matching folder structure in those mods.

Programmatic Access

When used as a library (installed via Composer), the X4GameInfo class can be used to easily access information on the game and the available extensions.

use \Mistralys\X4\ExtractedData\X4GameInfo;

$gameInfo = X4GameInfo::create();

// The game version, e.g. `8.0.0.0`
$version = $gameInfo->getGameVersion();

$dataFolders = $gameInfo->getFolderCollection();

// Show a list of all data folders
foreach($dataFolders->getAll() as $folder)
{
    echo $folder->getLabel().PHP_EOL;
}

Locally Extracted Folders

When working with a local copy of extracted folders (with this tool), set the path to the folder to access the full data folder paths to get at the files contained within.

use \Mistralys\X4\ExtractedData\X4GameInfo;

$folders = X4GameInfo::create()
    ->setExtractedDataFolder('/path/to/output/folder')
    ->getFolderCollection();

foreach($folders->getAll() as $folder) {
    $path = $folder->getPath();
}

Manual Access

An info.json file is generated in each folder, which provides some basic information on the source of the files. This is the JSON generated for the Boron DLC, for example:

{
  "id": "ego_dlc_boron",
  "label": "Kingdom End",
  "isExtension": true
}

mistralys/x4-data-extractor 适用场景与选型建议

mistralys/x4-data-extractor 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 25 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 06 月 06 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 mistralys/x4-data-extractor 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 mistralys/x4-data-extractor 我们能提供哪些服务?
定制开发 / 二次开发

基于 mistralys/x4-data-extractor 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 25
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 22
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-06-06