Skip to content

virtual controller issue with non unity games #31

@BThiebaut

Description

@BThiebaut

I'm trying running the model in some different game to see what happen for fun.
In unity based game it's working, well mostly enjoying licking the walls or watching the sky but at least the inputs are actually well sent to the games.

But I've tried with the binding of isaac: rebirth as it's showing in the paper as an case example, I start the game and go into a game, then run the play script and all output on the shell window seem correct, but the game don't reply to the virtual controller at all.

(.venv) PS D:\workspace\python\NitroGen> python scripts\play.py --process "isaac-ng.exe"
Connected to model server at localhost:5555
Session reset
Model loaded, starting environment...
3...
2...
1...
Game process found: isaac-ng.exe (PID: 11464, Arch: x86, Window: Binding of Isaac: Repentance)
DLL injected successfully
Injection successful
GamepadEnv ready for isaac-ng.exe at 60 FPS
Press enter to create a virtual controller and start rollouts...
3...
2...
1...
Executing 18 actions, each action will be repeated 1 times
Executing 18 actions, each action will be repeated 1 times
Executing 18 actions, each action will be repeated 1 times
Executing 18 actions, each action will be repeated 1 times
Executing 18 actions, each action will be repeated 1 times
Executing 18 actions, each action will be repeated 1 times

I'm running the game trough Steam, tried to disable steam input or even force it on, it won't change anything.
The game process window seem to be well hooked as I have the fps slow down that let me think it's working.

I'm wondering how you guys managed to get the virtual gamepad input working for this particular game, do you have any clue ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions