Finally got Chrome to work inside Minetest ...

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

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

by azekill_DIABLO » Post

it would lag though, on a server. i imagine the mess.
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
LMD
Member
Posts: 1386
Joined: Sat Apr 08, 2017 08:16
GitHub: appgurueu
IRC: appguru[eu]
In-game: LMD
Location: Germany
Contact:

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

by LMD » Post

First of all : That looks awesome. But I'd like to know how you got Chrome's GUI to work ?
My stuff: Projects - Mods - Website

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

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

by numzero » Post

@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: 3217
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

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

by Linuxdirk » Post

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: 1841
Joined: Fri Aug 26, 2016 15:36
GitHub: sorcerykid
In-game: Nemo
Location: Illinois, USA

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

by sorcerykid » Post

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: 3217
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

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

by Linuxdirk » Post

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: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

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

by azekill_DIABLO » Post

LOL
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

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

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

by sorcerykid » Post

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: 6972
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

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

by rubenwardy » Post

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
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

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

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

by Linuxdirk » Post

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: 60
Joined: Thu Jun 19, 2014 14:41
Location: uk

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

by crazyR » Post

Any progress updates on this?

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

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

by christoferlevich » Post

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: 3121
Joined: Sat Sep 29, 2012 01:14
IRC: Inocudom
In-game: Inocudom

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

by Inocudom » Post

If this keeps getting worked on, real video theaters in Minetest could happen one day.

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

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

by Inocudom » Post

I showed your videos of this project in the public theater in Swamp Cinema in Garry's Mod. However, that does no good if it has been discontinued. What will you do with it now that version 5.0.0 of Minetest is out?

User avatar
Miniontoby
Member
Posts: 616
Joined: Fri Mar 01, 2019 19:25
GitHub: Miniontoby
IRC: Miniontoby
In-game: Miniontoby
Location: The Netherlands

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

by Miniontoby » Post

Can I get the resource??
Working on mtctl ---- Check my mod "Doorbell" -- Stay safe

Artur
New member
Posts: 8
Joined: Fri Aug 14, 2020 13:49

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

by Artur » Post

I someone still working on this? It looks so promising, why was this given up?...

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest