Evaluate Electron as a cross platform solution

I recall digging into to the distribution files of stone hearth and seeing a lot of web stuff, js css and I think some lua.

If web development is the core of stonehearth, I wanted to point out Electron by Github.

As a Linux only user I want to expedite Linux availability, and one thing Electron provides is cross platform packaging and feature parody support.

Electron appears to be a monster built on chrome, and i think it’s really heavy for a text editor, but might be suited to js game deving.

I wanted to point it out incase it charms the development team behind stone hearth.

Thanks.

hey there @Thorsummoner0 welcome to the discourse :smile:

i’m going to page the devs for you, so that we can get their thoughts, and to make sure they dont miss this.

@sdee @yshan @Albert @Tom @Ponder @not_owen_wilson @brad (i think thats everyone)

1 Like

Parity support maybe? :smile:

1 Like

I’m really hoping it’s parody support :sunglasses:

2 Likes

Stonehearth uses Chromium already for the UI only, which is cross-platform already. Getting the UI to work cross-platform basically just means using the right Chromium binary. However, the rest of the game is written in C++ and Lua. Getting that to work cross-platform is more of a chore. Electron unfortunately wouldn’t help things much but it’s a nice suggestion!

2 Likes

The renderer is written in OpenGL according to the FAQ so that’s another big hurdle skipped for the eventual port process. The game logic should also largely perform as expected under Linux, since Lua much like Webkit can simply use the appropriate version with the same behaviour. Theoretically it should run now, if it compiles at all; unfortunately, we can’t really know that for sure.

3 Likes