Giter Club home page Giter Club logo

Comments (6)

Eisaichen avatar Eisaichen commented on August 20, 2024 2

你可以新建一个bat文件,比如launcher.bat
里面内容如下

set GamePath=D:\Star Rail\Game

start "" /d "%GamePath%" "%GamePath%\StarRail.exe"
@exit

把第一行的路径改成你星铁的游戏目录
之后在三月七里把启动路径设置成这个bat即可

@moesnow B服似乎是因为启动exe的时候没有传递启动目录,所以读不到同目录下的config.ini
或许可以稍微改一下tasks/game/start.py解决

start.py
Ln 98

        logger.debug(_("运行命令: cmd /C start \"\" \"{path}\"").format(path=config.game_path))
+       game_folder = config.game_path.rpartition('\\')[0]
+       if os.system(f"cmd /C start \"\" /D \"{game_folder}\" \"{config.game_path}\""):
            return False

utils\gamecontroller.py里启动游戏的代码也需要做类似的修改
经过我这里测试,修改后的代码可以正确启动B服

from march7thassistant.

Eisaichen avatar Eisaichen commented on August 20, 2024

设置里可以手动指定客户端路径

from march7thassistant.

yanabcd avatar yanabcd commented on August 20, 2024

image
从脚本里进入就是这样,我自己手动进入就是
image
不知道为啥,有大佬懂吗,是注册表问题,还是缓存问题?

from march7thassistant.

yanabcd avatar yanabcd commented on August 20, 2024

补充,启动目录都是相同的

from march7thassistant.

yanabcd avatar yanabcd commented on August 20, 2024

设置里可以手动指定客户端路径

客户端路径我用的都一样,不知道为什么打开就不一样..

from march7thassistant.

moesnow avatar moesnow commented on August 20, 2024

B服就是这样的,参考 #33

from march7thassistant.

Related Issues (20)

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.