Giter Club home page Giter Club logo

lgou2w / hoyo.gacha Goto Github PK

View Code? Open in Web Editor NEW
63.0 3.0 4.0 14.04 MB

✨ An unofficial tool for managing and analyzing your miHoYo gacha records. (Genshin Impact | Honkai: Star Rail) 一个非官方的工具,用于管理和分析你的 miHoYo 抽卡记录。(原神 | 崩坏:星穹铁道)

License: Apache License 2.0

Rust 39.03% HTML 0.13% TypeScript 60.59% JavaScript 0.21% CSS 0.04%
gacha genshin genshin-impact rust wish disk-cache react tauri vite analyze

hoyo.gacha's Introduction

HoYo.Gacha

一个非官方的工具,用于管理和分析你的 miHoYo 抽卡记录。

无需任何本地代理服务器。只需读取 Chromium 硬盘缓存文件并请求 API 端点。


Important

全新版本 v1.0.0 正在重构制作中。查看分支:v1

功能

  • 支持 原神崩坏:星穹铁道 游戏抽卡记录。
  • 管理游戏的多个账号。
  • 获取游戏的抽卡链接。
  • 获取抽卡记录并保存到本地数据库文件。
  • 实现 UIGF 统一可交换祈愿记录标准。
  • 实现 SRGF 星穹铁道抽卡记录标准。
  • 更多开发中...
软件截图
  • 主页

Home

  • 原神 - Genshin Impact

Gacha-Genshin-1

  • 崩坏:星穹铁道 - Honkai: Star Rail

Gacha-StarRail-1

Gacha-StarRail-2

Gacha-StarRail-3

下载

注意事项

  • 程序会在 运行目录 自动创建名为 HoYo.Gacha.db 的数据库文件。此文件中包含了 您的所有本地账号全部的抽卡记录 数据。

  • 请确保在 移动程序本体文件迁移操作系统 时不要遗漏此数据库文件!

硬盘缓存

关于从 Chromium Disk Cache 硬盘缓存获取抽卡链接的实现原理请参考:硬盘缓存

特别感谢

协议

Note

MIT OR Apache-2.0 仅供个人学习交流使用。请勿用于任何商业或违法违规用途。

本软件不会收集任何用户数据。所产生的数据(包括但不限于使用数据、抽卡数据、账号信息等)均保存在用户本地。

部分资源文件

个人非商用授权 - 北京汉仪创新科技股份有限公司 版权所有

©miHoYo | 上海米哈游影铁科技有限公司 版权所有

hoyo.gacha's People

Contributors

everything411 avatar lgou2w avatar wxwatch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

hoyo.gacha's Issues

对可更改硬盘缓存目录的增强更新

旧的默认的硬盘缓存目录路径:/$Game/$Game_Data/webCaches/Cache/Cache_Data/

自从以下游戏版本更新,这个路径不再是默认的:

  • 原神 Genshin Impactv3.8.0 更新:
- /Genshin Impact Game/YuanShen_Data/webCaches/Cache/Cache_Data/
+ /Genshin Impact Game/YuanShen_Data/webCaches/2.13.0.1/Cache/Cache_Data/
  • 崩坏:星穹铁道 Honkai: Star Railv1.2.0 更新:
- /Game/StarRail_Data/webCaches/Cache/Cache_Data/
+ /Game/StarRail_Data/webCaches/2.14.0.0/Cache/Cache_Data/

解决方案

读取 webCaches 下的所有符合 x.y.z.a 命名规则的目录(不排除可能以 x.y.z 命名),进行版本号比较并获取最新的目录即可。

崩坏:星穹铁道 - 通用抽卡格式

星穹铁道的抽卡抓包和原神的返回比较类似,感觉可以套用在原神抽卡交换格式上的经验,指定类似UIGF的UIGSR(或者其他名字!可以再议!)的交换格式,希望能趁相关工具还不多的时候团结一心联合起来!

目前星穹铁道还没出现paimon.moe这样的pompom.moe之类的东西(哦不,已经有了,pom-pom.moe),希望这次能制定一个让全世界各地工具开发者都用得上的格式(毕竟原神的交换格式基本上就分成了paimon.moe和UIGF两套)

为了避免在每个项目中都引用一遍对太多开发者造成打扰,我把目前所有使用了的项目全都记录在 https://github.com/LaoshuBaby/HSR-UIG/issues/1 中了

数据库文件不应该放在工作目录(cwd)

程序应该在固定的目录下存放数据库文件,例如在程序本体同目录存放。

现在程序的行为是在程序的工作目录下存放和读取数据库文件,如图,当前工作目录是家目录,运行程序时自动在家目录下创建了数据库。
workdirectory

这个问题会导致从开始菜单运行程序时程序报错,因为从开始菜单运行的程序的cwd是C:\Windows\system32,普通用户没有读写权限,会导致程序崩溃。
image

一个可能的方案是在程序启动时将程序的cwd调整为程序所在目录。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.