Finally got Chrome to work inside Minetest ...

For people working on the C++ code.
User avatar
azekill_DIABLO
Member
 
Posts: 7450
Joined: Wed Oct 29, 2014 20:05
Location: OMICRON
GitHub: azekillDIABLO
In-game: azekill_DIABLO
 

User avatar
LMD
Member
 
Posts: 672
Joined: Sat Apr 08, 2017 08:16
Location: Somewhere over the Rainbow : Bonn, Germany
GitHub: appgurueu
In-game: LMD + PRO_LMD + Limo

Re: Finally got Chrome to work inside Minetest ...

by LMD » Sat Nov 11, 2017 17:22

First of all : That looks awesome. But I'd like to know how you got Chrome's GUI to work ?
Magic-CTF(soon)MTPCFractal-SuiteModel Creator Schematic CreatorColorfulXmas BallsWebsite • Never judge me by my age
 

User avatar
numzero
New member
 
Posts: 7
Joined: Tue Apr 21, 2015 18:51
GitHub: numberZero
IRC: numzero

Re: Finally got Chrome to work inside Minetest ...

by numzero » Mon Dec 25, 2017 15:46

@azekill_DIABLO this is client-side only.

@Beerholder Your work is too heavy to be embedded in MT, but might be used as a plugin, if there were an API. Look at the issue #4064.
 

User avatar
Linuxdirk
Member
 
Posts: 1629
Joined: Wed Sep 17, 2014 11:21
Location: Germany
In-game: Linuxdirk

Re: Finally got Chrome to work inside Minetest ...

by Linuxdirk » Mon Dec 25, 2017 17:52

Minetest has an HTTP API. It’s possible to create a very simple browser by implementing some kind of HTML-to-text parser. Links could be summarized and shown in a dropdown list which would allow simple browsing, mod-storage or player-attributes could be used for bookmarks.

… but running Chrome in Minetest is much cooler that that :D
 

User avatar
sorcerykid
Member
 
Posts: 852
Joined: Fri Aug 26, 2016 15:36
Location: Illinois, USA
GitHub: sorcerykid
In-game: Nemo

Re: Finally got Chrome to work inside Minetest ...

by sorcerykid » Tue Dec 26, 2017 01:00

Extending formspecs with support for hyperlinked text as well as downloadable JPEG and PNG images would be a huge step in the right direction. These three features alone would absolutely make browsing of most mobile Websites possible, at least using basic GET and POST requests.

There are already several HTML parsers for Lua, so that base is already covered.

https://github.com/msva/lua-htmlparser
https://github.com/thenumbernine/htmlparser-lua

As for transmitting the images (or any multimedia content) to the client, the IETF standard for multipart form data might be a viable option:

https://www.ietf.org/rfc/rfc2388.txt
 

User avatar
Linuxdirk
Member
 
Posts: 1629
Joined: Wed Sep 17, 2014 11:21
Location: Germany
In-game: Linuxdirk

Re: Finally got Chrome to work inside Minetest ...

by Linuxdirk » Tue Dec 26, 2017 08:16

sorcerykid wrote:Extending formspecs with support for hyperlinked text as well as downloadable JPEG and PNG images would be a huge step in the right direction.

That would be awesome on the same level as real multicolor lighting would be.
 

User avatar
azekill_DIABLO
Member
 
Posts: 7450
Joined: Wed Oct 29, 2014 20:05
Location: OMICRON
GitHub: azekillDIABLO
In-game: azekill_DIABLO
 

User avatar
sorcerykid
Member
 
Posts: 852
Joined: Fri Aug 26, 2016 15:36
Location: Illinois, USA
GitHub: sorcerykid
In-game: Nemo

Re: Finally got Chrome to work inside Minetest ...

by sorcerykid » Tue Dec 26, 2017 14:42

Linuxdirk wrote:
sorcerykid wrote:Extending formspecs with support for hyperlinked text as well as downloadable JPEG and PNG images would be a huge step in the right direction.

That would be awesome on the same level as real multicolor lighting would be.


Exactly, with dynamic loading of embedded content (raster images for starters, but maybe sound or video too) as well as dynamically generated elements (thus allowing for moving buttons, resizing images, changing text fields, etc.), I think formspecs could take on a whole new life of interactive possibilities for modders, just like the introduction of DHTML and Ajax for the Web.

As far as implemention, I imagine this would involve extending the client-server protocol to allow asynchronous formspec updates from the server during the lifecycle of a given formspec. This way embedded content (some of which could be quite large) wouldn't even have to be sent in its entirety, for the client to initially display the formspec.

Heck, even a few very basic drawing primitives (or support for SVG graphics) and simple text formatting (size, alignment, and style) would be absolutely AWESOME in terms of design potential.
 

User avatar
rubenwardy
Moderator
 
Posts: 5499
Joined: Tue Jun 12, 2012 18:11
Location: United Kingdom
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

Re: Finally got Chrome to work inside Minetest ...

by rubenwardy » Tue Dec 26, 2017 15:11

sorcerykid wrote:Even a few very basic drawing primitives (or support for SVG graphics) and simple text formatting (size, alignment, and style) would be absolutely AWESOME in terms of design potential.


This is one of the features planned for client-side scripting
 

User avatar
Linuxdirk
Member
 
Posts: 1629
Joined: Wed Sep 17, 2014 11:21
Location: Germany
In-game: Linuxdirk

Re: Finally got Chrome to work inside Minetest ...

by Linuxdirk » Tue Dec 26, 2017 15:49

sorcerykid wrote:Heck, even a few very basic drawing primitives (or support for SVG graphics) and simple text formatting (size, alignment, and style) would be absolutely AWESOME in terms of design potential.

At least proper text wrapping and scrollable non-editable texts in formspecs would be a good start :D
 

User avatar
crazyR
Member
 
Posts: 56
Joined: Thu Jun 19, 2014 14:41
Location: uk
GitHub: Ryan-Nolan
IRC: crazyR
In-game: crazyR
 

User avatar
christoferlevich
Member
 
Posts: 323
Joined: Thu Dec 01, 2016 23:44
Location: Athol, Massachusetts
GitHub: ChristoferL

Re: Finally got Chrome to work inside Minetest ...

by christoferlevich » Wed Jul 04, 2018 11:07

This post seems dead - but I would love to see something like this released... oh how good it looks!
everything can be a learning experience...
 

User avatar
Inocudom
Member
 
Posts: 3014
Joined: Sat Sep 29, 2012 01:14
IRC: Inocudom
In-game: Inocudom

Re: Finally got Chrome to work inside Minetest ...

by Inocudom » Sat Oct 27, 2018 19:03

If this keeps getting worked on, real video theaters in Minetest could happen one day.
Recovering from the abomination I am. Clocking time for Garry's Mod I am too.
 

Previous

Return to Partly official engine development



Who is online

Users browsing this forum: No registered users and 1 guest