Comments (6)
你可以新建一个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.
设置里可以手动指定客户端路径
from march7thassistant.
从脚本里进入就是这样,我自己手动进入就是
不知道为啥,有大佬懂吗,是注册表问题,还是缓存问题?
from march7thassistant.
补充,启动目录都是相同的
from march7thassistant.
设置里可以手动指定客户端路径
客户端路径我用的都一样,不知道为什么打开就不一样..
from march7thassistant.
B服就是这样的,参考 #33
from march7thassistant.
Related Issues (20)
- [Feat]: 启动游戏前自动关闭声音 HOT 1
- [Feat]: 拟造花萼中加入匹诺康尼大剧院的智识之蕾 HOT 1
- [Feat]: 增加同谐星和同谐穹 HOT 2
- [Feat]: 推送时增加 【windows的计算机名称】或【游戏账号的UID】或【自定义字符串】
- [Feat]: 工具箱,自动检测再来一次,并且自动嗑燃料。
- [Feat]: 工具箱-自动剧情 适配不同分辨率
- [Bug]: 发生错误 'bool' object is not iterable HOT 2
- [Bug]: 模拟宇宙失败会卡住,既不退出也不重新挑战 HOT 1
- [Bug]: 無法抓到遊戲畫面
- [Feat]: 支援不需要优先级 HOT 4
- [Bug]: 打不开主程序。
- [Feat]: 希望加入差分宇宙 和 开机自启动 HOT 3
- [Bug]: 忘却之庭编队界面识别错误
- [Feat]: 2.3更新后拟造花萼(赤)缺少智识之蕾•匹诺康尼大剧院选项 HOT 1
- [Bug]: “更新模拟宇宙”无法更新到最新的7.x版本
- [Feat]: 能否添加波提欧的虚构叙事和忘却之庭 HOT 1
- [Feat]: 希望清体力模块加入刷内圈功能
- [Bug]: 客户端的帮助-“远程本地多用户桌面”超链接点击没有反应 HOT 3
- [Feat]: 新的脚本启动参数与运行节点
- [Feat]: 三月七(巡猎)头像
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from march7thassistant.