Starry-Wind / StarRailAssistant

崩坏:星穹铁道自动化 | 崩坏:星穹铁道自动锄大地 | 崩坏:星穹铁道锄大地 | 自动锄大地 | 基于模拟按键
GNU General Public License v3.0
2.8k stars 237 forks source link

[Bug] 腳本無法正常運行 #488

Open seriaati opened 1 year ago

seriaati commented 1 year ago

问题描述

在進行下述選擇後: ? 請選擇操作 大世界 ? 請選擇起始星球: 空間站「黑塔」 ? 請選擇起始地圖: 基座舱段-1

腳本會切換至遊戲視窗,並開始不停的打開地圖、關閉地圖、打開地圖、關閉…不停重複相同的動作。

预期行为

這是我第一次使用這個腳本,我不確定應該要發生什麼,但至少人物應該要開始動起來吧?

实际行为

腳本切換至遊戲視窗,並開始不停的打開地圖、關閉地圖、打開地圖、關閉…不停重複相同的動作。

截图或录屏

No response

自动锄大地脚本版本

1.6.3? 我不知道要在哪裡找到這個版本

星穹铁道区服

国际服

运行的客户端

PC

日志

? 請選擇運行平臺 PC
? 請選擇操作 大世界
? 請選擇起始星球: 空間站「黑塔」
? 請選擇起始地圖: 基座舱段-1
Honkai_Star_Rail.main:130 - 20230617024307/20230616033452/20230616033452 - 腳本將自動切換至遊戲窗口,請保持遊戲窗口激活
get_width.get_width:56 - 20230617024307/20230616033452/20230616033452 - Real resolution: 1938 x 1127 x 1.0 x False
Honkai_Star_Rail.main:136 - 20230617024307/20230616033452/20230616033452 - 開始運行,請勿移動鼠標和鍵盤
Honkai_Star_Rail.main:137 - 20230617024307/20230616033452/20230616033452 - 若腳本運行無反應,請使用管理員權限運行
map.auto_map:112 - 20230617024307/20230616033452/20230616033452 - (1920, 1080)
requests.webhook_and_log:99 - 20230617024307/20230616033452/20230616033452 - 開始基座舱段-1鋤地
map.auto_map:127 - 20230617024307/20230616033452/20230616033452 - 該路線導航作者:Starry-Wind,小明
map.auto_map:128 - 20230617024307/20230616033452/20230616033452 - 感謝每一位無私奉獻的作者
[WARNING 2023-06-17 19:58:22,613 _showwarnmsg:109] C:\Users\seria\source\repos\StarRailAssistant-1.6.3\.venv\Lib\site-packages\torchvision\transforms\functional.py:1603: UserWarning: The default value of the antialias parameter of all the resizing transforms (Resize(), RandomResizedCrop(), etc.) will change from None to True in v0.17, in order to be consistent across the PIL and Tensor backends. To suppress this warning, directly pass antialias=True (recommended, future default), antialias=None (current default, which means False for Tensors and True for PIL), or antialias=False (only works on Tensors - PIL will still use antialiasing). This also applies if you are using the inference transforms from the models weights: update the call to weights.transforms(antialias=True).
  warnings.warn(
Night-stars-1 commented 1 year ago

目前還沒有完全支持繁體中文

smjes3 commented 1 year ago

腳本切換至遊戲視窗,看样子应该是简体客户端,繁体中文的话进行不到切换游戏视窗这一步。客户端是简体中文的话考虑可能是打开地图的黑屏时间大于了1.3秒导致不停打开地图进行OCR

seriaati commented 1 year ago

雖然 issue 已經被關了但還是更新一下: 一樣打開 honkai star rail.py 之後,點選第四個選項更改配置,接著語言選擇簡體中文。在選擇客戶端時,我是用電腦所以直接按了 enter,跳出了一長串錯誤後程序直接退出了。但語言配置的更改似乎有保存,接著選擇大世界,黑塔空間站,腳本就可以正常使用了。 編輯:遊戲語言也要調整成簡體中文

suzijie860706 commented 9 months ago

我也有遇到一樣問題,但遊戲也要改簡體真的不想 :(