TheNathannator / RB4InstrumentMapper

A program that maps packets from Xbox One Rock Band 4 instruments to virtual controllers, for use in Clone Hero.
MIT License
31 stars 12 forks source link

Failed to create GameInput instance: 0x80004001 #27

Open MightyAries opened 1 month ago

MightyAries commented 1 month ago

This is related to the Riffmaster for Fortnite Festival. I've tried to set it up on two PCs - on one it works flawlessly, even with Fortnite Festival.

Both systems are built using the same parts but on the second PC, neither Clone Hero nor Fortnite Festival recognize the Riffmaster. The only difference I've noticed is that on the PC where it doesn't work, RB4InstrumentMapper returns the error "Failed to create GameInput instance: 0x80004001"

photo_2024-07-16_16-55-10

I've tried to find a solution for this, but after hours, still made no progress. The only hint is the GameInput Backend doesn't even register the connected Riffmaster, which is probably why Fortnite Festival doesn't recognize it either.

Even with nothing connected to the PC, simply booting up RB4InstrumentMapper returns the aforementioned error.

Any help would be greatly appreciated. I even made sure that GameInputSvc and GamingServicesNet are running, in case they're related to this, but that also didn't fix this.

TheNathannator commented 1 month ago

the GameInput Backend doesn't even register the connected Riffmaster

Because the GameInput backend isn't even initializing properly in the first place lol

Something is very wrong with the install of GameInput on this PC; 0x80004001 is E_NOTIMPL which means the function being called isn't implemented yet, but that 100% should not be the case for initialization.

Best I can suggest is to try reinstalling RB4InstrumentMapper, it bundles the redistributable installer for GameInput and runs it during installation. Perhaps that'll help fix things, but I can't say for certain since this issue is entirely out of RB4IM's control.

The last thing I'd be able to suggest is running the redistributable installer manually. Microsoft doesn't provide a direct download for it unfortunately, and GitHub doesn't let me upload it to here, so you'll have to download the package manually, extract it with a tool like 7-Zip (right-click the downloaded .nupkg and hit 7-Zip > Open Archive), and go to the redist folder to get to it.

MightyAries commented 1 month ago

Thank you so much for that! I had already tried restalling RB4InstrumentMapper multiple times, but the linked redistributable installer pointed me in the right direction.

I appreciate that you linked me where I could get the package, since that led me to find out that I can't even install, repair or uninstall GameInputRedist at all on that PC. When I try to install it, nothing happens after I start the installation attempt - and repair and uninstall just return an error stating that it needs to be installed first before those two actions can be taken.

I guess now I'll have to find out how to fix that, but at least I got an angle I can pursue. Thank you so much!

TheNathannator commented 1 month ago

Do you not get any kind of window that pops up? It should show one for a split second, and then close; it doesn't guide you through anything (at least not in my experience, but I also already have it installed lol).

I'd also be curious if there's anything in Event Viewer about it, that might be our best lead if there is.

MightyAries commented 1 month ago

I only received the general pop-up of Windows unpacking and preparing to install it, followed by the admin pop-up if I want to allow the software to make changes (which I obviously confirm).

Good call about the event viewer though! I tried installing it again just now so I would have the most recent log files and two entries showed it was successful without any errors.

image_2024-07-17_11-57-03 image_2024-07-17_11-57-13

I did try booting RB4InstrumentMapper again as well and then took a look at the logs. I'm not sure if this helps at all, but I really appreciate your thoughts.

image_2024-07-17_12-02-55 image_2024-07-17_12-02-552 image_2024-07-17_12-02-553

So at this point I wonder if I just need to reinstall Windows? Fully remove Xbox and the Gaming Service to try reinstalling it again? I honestly am at a loss of ideas and searching online hasn't yielded any other angles to pursue either.

TheNathannator commented 1 month ago

Yeah, this is all very weird lol. A full reinstall might be the best course of action then, nothing else I can think of myself either.

MightyAries commented 1 month ago

I'll give a Windows reinstall a shot then. Thank you so much for your help!

emongev commented 1 month ago

I was having a very similar issue, although mine said "Failed to create GameInput instance: 0xD0000034".

-Did the RB4InstrumentMapper repair. No dice. -Did the RB4InstrumentMapper uninstall/reinstall. No dice. -Did the GameInput redist install. No dice.

Finally what I did to fix it was:

-Went into task manager. -Typed "gameinput" on the search bar. -Stopped the GameInputSvc by right clicking it. -Started the GameInputSvc by right clicking it. -RB4InstrumentMapper immediately started working again.

MightyAries commented 1 month ago

@emongev Sadly that one didn't work for me, though I'm glad it fixed your issue!