Anonymous edits have been disabled on the wiki. If you want to contribute please login or create an account.


Warning for game developers: PCGamingWiki staff members will only ever reach out to you using the official press@pcgamingwiki.com mail address.
Be aware of scammers claiming to be representatives or affiliates of PCGamingWiki who promise a PCGW page for a game key.

Engine:Electron

From PCGamingWiki, the wiki about fixing PC games
Revision as of 01:34, 20 June 2024 by Qinlili (talk | contribs)

Electron is an open source library, combining the Blink rendering engine, found in Google Chrome web browser, and Node.js JavaScript environment. Initially developed for the Atom text editor, it is now used in wide variety of software ranging from desktop applications to games.

Most command line arguments for Chromium can take effect.
Easy to port to another platform or architecture if no other platform/arch specified binary used.

Modding

Enabling Electron debugging

To debug the the native (Node.js) code:

  1. Set the game launch option to --inspect
  2. Using any Chromium-based browser (eg. Google Chrome), go to chrome://inspect
  3. Click inspect under Remote Target
Enabling web inspector

To debug the the web content (Chromium) interface code:

  1. Enable Electron debugging and attach to remote target
  2. Type require('electron').app.once('browser-window-focus', (e, w) => w.webContents.openDevTools())
  3. Switch to the game window and the web inspector should open

API

Technical specs Supported Notes
Direct3D 9, 11, 12 Launch with --use-gl=egl --use-angle=%API%, value can be d3d9, d3d11, d3d11on12 (require higher version of nw.js). DX11 is default in most games and devices.
OpenGL
Launch with --use-gl=egl --use-angle=gl
Software renderer
Launch with --disable-gpu
Vulkan
Launch with --use-gl=egl --use-angle=vulkan
Executable 32-bit 64-bitARM Notes
Windows
Windows ARM support added in 6.0.8[1]

Games use Electron

Electron
Electron Software Framework Logo.svg
Developers
Website
First release date
Latest release date

Game Developer Publisher First release
Cookie Clicker DashNet Playsaurus September 1, 2021
Elvenar InnoGames March 18, 2021
Five Nations SilverForge May 4, 2021
Istrolid treeform May 6, 2016
Shapez Tobias Springer tobspr Games, Doyoyo Games, Prismatika May 30, 2020
The Invisible Guardian New One Studio January 23, 2019
Vampire Survivors poncle October 20, 2022
Wayward Unlok
  1. Windows on ARM - last accessed on 2024-06-20