street-fighter-ai icon indicating copy to clipboard operation
street-fighter-ai copied to clipboard

在运行项目之后出现了一些问题

Open Fang0000420 opened this issue 1 year ago • 1 comments

Wrapping the env with a Monitor` wrapper Wrapping the env in a DummyVecEnv. Wrapping the env in a VecTransposeImage.

Fighting Begins!

Traceback (most recent call last): File "test.py", line 79, in obs, reward, done, info = env.step(action) File "D:\Last\street-fighter-ai\main\street_fighter_custom_wrapper.py", line 83, in step curr_player_health = info['agent_hp'] KeyError: 'agent_hp'`

昨天使用cmd运行成功了 今天想在vscode启动 在输入命令python test.py后报出这个错误

Fang0000420 avatar Apr 18 '23 02:04 Fang0000420

可能是retro的版本不匹配导致的。把test.py和street_fighter_custom_wrapper.py两个文件里的 'agnet_hp"换成'health', 'enemy_hp'换成'enemy_health' 就可以运行了

littlePrettySoup avatar Apr 18 '23 17:04 littlePrettySoup