Giter Club home page Giter Club logo

Comments (9)

AuroraZiling avatar AuroraZiling commented on July 2, 2024 1

好的,大概是src/modules/Core/GachaReport/gacha_report_utils.py

GAME_LOG_PATH = os.environ["userprofile"] + '/AppData/LocalLow/miHoYo/崩坏:星穹铁道/output_log.txt'


def getDefaultGameDataPath():
    if not os.path.exists(GAME_LOG_PATH):
        log.infoWrite(f"[GachaReport.utils] Game Path not found")
        return 0, "Game Log Not found"
    with open(GAME_LOG_PATH, 'r', encoding='utf-8') as f:
        logFile = f.read()
    res = re.search("([A-Z]:/.+(StarRail_Data))", logFile)
    game_path = res.group() if res else None
    log.infoWrite(f"[GachaReport.utils] Game Path get: {game_path}")
    return game_path

判断失误

会在0.1.4修复,感谢反馈

from star-rail-asta.

AuroraZiling avatar AuroraZiling commented on July 2, 2024

请问一下是国际服吗

from star-rail-asta.

FlandiaYingman avatar FlandiaYingman commented on July 2, 2024

@AuroraZiling
不是国际服。不过游戏安装位置不是默认的,是不是跟这个有关

from star-rail-asta.

AuroraZiling avatar AuroraZiling commented on July 2, 2024

关于C:/Users/[Name]/AppData/LocalLow/miHoYo/崩坏:星穹铁道/output_log.txt

这个文件内有没有类似/Star Rail/Game/StarRail_Data/webCaches\Cache\Cache_Data\data_2的路径

from star-rail-asta.

FlandiaYingman avatar FlandiaYingman commented on July 2, 2024

@AuroraZiling
存在这个文件,但不存在你所说的路径。
无论是搜索 Star Rail, StarRail 还是 Cache_Data 之类的关键词都没有结果

from star-rail-asta.

AuroraZiling avatar AuroraZiling commented on July 2, 2024

再麻烦看一下同目录的Player.log有没有包含Loading player data from字段,后面有没有跟着游戏路径

比如Loading player data from D:/Program Files/Star Rail/Game/StarRail_Data/data.unity3d

from star-rail-asta.

FlandiaYingman avatar FlandiaYingman commented on July 2, 2024

@AuroraZiling
这个有,就在第一行:
Loading player data from D:/Program Files/Star Rail/Game/StarRail_Data/data.unity3d
跟你发的是一模一样的

from star-rail-asta.

AuroraZiling avatar AuroraZiling commented on July 2, 2024

现在release了,劳烦测试下不

from star-rail-asta.

FlandiaYingman avatar FlandiaYingman commented on July 2, 2024

一切正常了

from star-rail-asta.

Related Issues (6)

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.