You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'NoneType' object has no attribute 'group'
Traceback (most recent call last):
File "C:\FGO-py.portable\FGO-py\FGO-py\fgoDevice.py", line 16, in convert
try:return(lambda args:helpers[args[0][1:]](*args[1:]))(text.split('_'))
File "C:\FGO-py.portable\FGO-py\FGO-py\fgoDevice.py", line 16, in <lambda>
try:return(lambda args:helpers[args[0][1:]](*args[1:]))(text.split('_'))
File "C:\FGO-py.portable\FGO-py\FGO-py\fgoDevice.py", line 31, in bs5
with open(os.path.join(dir,'bluestacks.conf'),encoding='utf-8')as f:return'127.0.0.1:'+re.search(rf'bst\.instance\.Nougat64{f"_{args[0]}"if args else""}\.status\.adb_port="(\d*)"',f.read()).group(1)
AttributeError: 'NoneType' object has no attribute 'group'
:param conf_path: bluestacks.conf 的路径+文件名
:param instance_name: 多开的名称,在bluestacks.conf中以类似bst.instance.<instance_name>.status.adb_port的形式出现,如Nougat64,Pie64,Pie64_1等
:return: adb端口
"""
with open(conf_path, encoding="UTF-8") as f:
configs = {
line.split('=')[0].strip(): line.split('=')[1].strip().strip('"\n')
for line in f
}
if read_imageinfo_from_config:
instances = [i.strip('"') for i in configs['bst.installed_images'].split(',')]
instance_name = instances[0]
return int(configs[f'bst.instance.{instance_name}.status.adb_port'].replace('"', ""))`
在提问之前...
描述你的问题
使用/bs5获取端口号提示错误
蓝叠的bluestacks.conf中的文本会根据模拟器的安卓版本而变化。比如Nougat64、Pie64和Rvc64。其他的版本会导致error。将Nougat64替换为Rvc64后能正常运行。
如何复现
使用/bs5获取非Nougat64版本蓝叠5adb端口
预期行为
我不懂python,不过也许可以用其他方法获取文本来获得版本号。如果不能实现或许可以偷鸡把这段复制三个,分别弄个/bs5 7 /bs5 9 /bs5 11
相关 Logs
截图
还有别的吗?
模拟器版本:Android 11 的 BlueStacks 5
BlueStacksFullInstaller_5.12.102.1001_amd64_native.exe --defaultImageName Rvc64 --imageToLaunch Rvc64
来点色图
不可以色色
The text was updated successfully, but these errors were encountered: