Linux-CEF : How to show Devtools ?

0 favourites
  • 6 posts
From the Asset Store
A small template showing how to build a firebase ranking
  • Hi Ashley,

    I'm currently doing a lot of experiments with exports for my game and the loading of my game is stuck at 100% on a Linux-CEF export for Steam Deck.

    It's probably due to an error on my end as the loading of my game is quite complex but the issue is that i have no way to debug this.

    Could you tell me how I can open the Devtools from code on a Linux CEF so i can debug my game on steamdeck ?

    I know showing devtools from code isn't supported by regular browsers, but i think each bundler such as NWJS/Electron/MicrosoftWV2/Linux-CEF etc... provide ways to do this

    Might be great if Scirra made an addon that allow to handle this kind of operation for all Custom Scirra exporters ?

    But yeah in the meantime could you please help me to do this for Linux-CEF export please?

  • Due to architectural differences with CEF it doesn't currently support opening dev tools automatically, but you should still be able to access it via chrome://inspect. It's documented here. You can also use that to debug a different device via remote debugging, similar to how it works for Android devices.

  • I see thanks, we're getting this error: Error loading ".../steamworks-x64.ext.so': libsteam_api.so: cannot open shared object file: No such file or directory"

    Do you know what it could be ?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • It sounds like one of the Steam library files is missing - is libsteam_api.so there? If not, that's the problem. Maybe try a fresh export and make sure all files are uploaded and fully overwrite the existing files on the device.

  • I don't know what happenned but yes it was one of the problems I had, thanks!

    Would it be possible to provide a reliable way to tell if the game is running on a steamdeck ? From JS if possible

    Additionally, detecting Steam OS might be great too ? As it seems valve is opening the paltform to other constructors.

  • Would it be possible to provide a reliable way to tell if the game is running on a steamdeck ?

    The Steamworks plugin has an 'Is running on Steam Deck' condition. It actually also has a script interface and you can use the isRunningOnSteamDeck property from JavaScript too. However I realise that script interface is currently undocumented - I'll see if we can get that written up somewhere.

    Additionally, detecting Steam OS might be great too ?

    I don't think there is any way to specifically detect Steam OS - I think it looks to the app like any other Linux system, and there doesn't seem to be a Steamworks API to identify Steam OS specifically (just the Steam Deck). If you only use Linux exports for Steam OS then you can probably just use the Platform Info 'Is Linux export' condition (or equivalent JS API).

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)