RocketStats icon indicating copy to clipboard operation
RocketStats copied to clipboard

Doesn't work in Linux

Open Anuskuss opened this issue 1 year ago • 7 comments

The plugin loads and works but isn't fully functional. Same error message when installing manually or through BakkesMod itself:

Error - Check that this folder is present in BakkesMod: data/RocketStats

Running in Linux is done through Proton (Wine) which emulates a Windows environment. I don't know how those files get loaded but maybe try using absolute paths?

Anuskuss avatar Dec 03 '22 02:12 Anuskuss

same, bump.

Skidamek avatar Dec 10 '22 15:12 Skidamek

Hello, as we often repeat, WIC is missing on the version of Windows you are using, and this is used via ImGui for displaying images.

No one has found a solution to date on Linux, if you unblock the situation, we're a taker.

Arubinu avatar Dec 10 '22 16:12 Arubinu

WIC is missing on the version of Windows you are using

I don't think that's it. I installed windowscodecs via protontricks and the error is still there. Could you maybe add more errors messages if you don't mind?

Anuskuss avatar Dec 11 '22 21:12 Anuskuss

Problem is that this error isn't caused by RocketStats but ImGUI itself, so we don't have any info on what is causing this error to happen. The only thing that we know is that ImGUI is unable to load images found in RocketStats/Resources in this repo.

Larsluph avatar Dec 11 '22 22:12 Larsluph

As far as I can find this plugin doesn't call LoadForImGui before it checks IsLoadedForImGui :thinking:

I can't find documentation on them but their names imply that you need to call load before the isloaded would ever return true? Not sure why it would work without this on windows.

edit:

okay so I found that GetImGuiTex should also load the image but I don't think this is called before IsLoadedForImGui checks in many cases.

https://github.com/bakkesmodorg/BakkesModSDK/blob/fc83258a066c1fee199c355f4eef40d716175036/include/bakkesmod/wrappers/ImageWrapper.h#L36

Amzd avatar May 27 '23 14:05 Amzd

The third parameter of the "ImageWrapper" class precisely requests the loading for ImGui.

Arubinu avatar May 28 '23 05:05 Arubinu

Ah yep I see :facepalm:

Amzd avatar May 28 '23 09:05 Amzd