Game-Bot icon indicating copy to clipboard operation
Game-Bot copied to clipboard

The key presses being passed to game_control.py aren't formatted right

Open JLP04 opened this issue 4 years ago • 0 comments

I kept getting errors when I tried to run create_dataset.py so I did some debugging and found that, for example, if I press the a key, it is passed to get_id as 'a', which leads to an error saying that 'a' can't be found in the array. If I manually replace return get_keys().index(key) with return get_keys().index('a') it gives the same error which is expected. But, if I replace it with return get_keys().index("a"), it finds it. Thus, it's an issue with how it's being passed to get_id or an issue with get_id itself.

JLP04 avatar Sep 30 '20 16:09 JLP04