Browser Play: Difference between revisions

From Minetest
(Created page with "<div class="p44_navbar"> Wiki Top This page MTWorlds Bucket Game Trolltest Downloads Contact Devel Center </div> <div class="p44_navbar"> [https://minetest.org/ minetest.org] [https://minetest.io minetest.io] [https://git.minetest.io/ 9,000 gits] [https://irc.minetest.org:9000/ CoderChat] [https://edgy1.net/ EdgyNet] </div> <span id="introduction"></span> ==...")
 
 
(38 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="p44_navbar">
<div class="p44_navbar">
[[Main_Page|Wiki Top]]
[[Main_Page|Start Page]]
[[Minetest|This page]]
[[Browser_Play|This page]]
[[MTWorlds|MTWorlds]]
[[Minetest|Minetest]]
[[MTWorlds|MT worlds]]
[[Player_Basics|Player Basics]]
[[Bucket_Game|Bucket Game]]
[[Bucket_Game|Bucket Game]]
[[Trolltest|Trolltest]]
[[Downloads|Downloads]]
[[Downloads|Downloads]]
[[Contact|Contact]]
[[Contact|Contact]]
Line 17: Line 18:
[https://edgy1.net/ EdgyNet]
[https://edgy1.net/ EdgyNet]
</div>
</div>
<br />
----


<span id="introduction"></span>
<span id="introduction"></span>
== Introduction ==
== Introduction ==


This page offers a temporary Play in Web Browser feature.
This page lets you try out Minetest in your web browser. No installation is needed. '''Note:''' Sorry, this might not work well on phones. It's mostly for people who have keyboards.
 
This feature is presently based on a git repo originally from Paradust7. A snapshot is hosted at, and may be downloaded using, the following link:
 
https://git.minetest.io/paradust7/minetest-wasm
 
<span id="mtwasm-problems"></span>
== Problems with Browser Play&nbsp; ==
 
'''There are many problems with the Browser Play feature. Read the list of problems below:'''
 
* This feature might be temporary.
 
* Again, this might not work well with phones. It assumes that you have a keyboard. You can try it anyway.
 
* Only some web browsers will work. Chrome and Edge should work as long as hardware acceleration is turned on. There is more about that below.
 
* Your web browser must have something called hardware acceleration or WebGL turned on. It might already be that way. If Browser Play doesn't work, look for hardware acceleration in your browser settings and turn that setting on.


<span id="browser-play"></span>
* The Browser Play screen supports High, Medium, and Low resolutions. High resolution might be too slow. Low resolution might not work well. Try setting resolution to Medium initially after startup.
== Play in Web Browser ==


This page offers a temporary Play Minetest in Web Browser feature. There are many problems with the feature. '''Read the list of problems:'''
* This feature uses a Minetest proxy run by Paradust of Dustlabs dot IO. The proxy will probably go away. If the proxy does go away, you won't be able to use Browser Play to join online worlds. However, you should still be able to create a small world and try it out.


* Sorry, this doesn't work well with phones. It assumes that you have a keyboard. You can try it anyway.
* We also can't take responsibility for security issues with the proxy.


* It only supports the usual "letter" motion keys. If you prefer to use the arrow keys to move, there is no way to do that.
* There is no way to save worlds that you create in Browser Play. They disappear on exit.


* Your web browser must have something called WebGL turned on. It might already be that way. If the play in browser feature doesn't work, look for hardware acceleration in your browser settings and turn that on.
* If you use uBlock Origin or similar security filters, you may, or may not, need to tell them to whitelist the webpages that are linked further down.


* The play in browser screen supports High, Medium, and Low resolutions. High and Low don't work well. You'll probably want to set it to Medium after starting.
* Browser Play isn't very fast.


* This feature uses a Minetest proxy run by Paradust of Dustlabs dot IO. The proxy will probably go away. We also can't take responsibility for security issues with the proxy.
<span id="mtwasm-howto"></span>
== How to use Browser Play&nbsp; ==


* Play isn't very fast.
If you'd still like to try this feature, proceed as follows:


If you'd still like to try this, proceed as follows:
1. Optional: If you like, set up your web browser to use a browser proxy or a VPN. This isn't essential.


1. Go to the following link:
2. Go to the following link:


https://minetest.org/wasm/
https://minetest.org/wasm/


2. Some messages should appear. If an error about JavaScript exception appears, you can disregard it as long as it only happens once. After a minute, a Launch Minetest button should appear. If it doesn't appear, give up and close the window.
If you'd like to use the arrow keys to move instead of the letter keys, use the following link instead:
 
https://minetest.org/awasm/
 
Note: Only the actual arrow keys will work at the 2nd link. The number-pad arrow keys won't work.
 
3. Some messages should appear.
 
If error messages about a JavaScript exception or a TypeError occur, you can disregard those messages as long as each only happens once.
 
After a minute, a Launch Minetest button should appear. If it doesn't appear, give up and close the window.
 
4. If the Launch Minetest button appears, press it and wait a minute. A Minetest GUI should appear. If the GUI appears, click on the Join Game tab.
 
5. A server list might appear. Whether or not one does, you should be able to visit Final Minetest worlds by entering hostname, port, and user information on the right side. Trolltest worlds might work as well. MultiCraft worlds probably won't work.
 
<span id="mtwasm-screenshot"></span>
== Browser Play Screenshot&nbsp; ==
 
This is a screenshot of a visit to Woofworld in Chrome:
 
<div class="responsive-image">
[[File:Mtwasm-woofworld.jpg]]
</div>
 
<span id="mtwasm-nginx-setup"></span>
== Browser Play nginx setup&nbsp; ==
 
For hosts and developers:
 
If the box that is hosting a copy of Minetest Browser Play [aka minetest-wasm] is using nginx as the primary web server, the appropriate "nginx" domain configuration file should include code similar to the following in the appropriate "server { ... }" block:


3. If the button appears, press it and wait a minute. A Minetest GUI should appear. It it does, click on the Join Game tab.
location ~ wasm {
    root /var/www/something.org;
    add_header 'Cross-Origin-Embedder-Policy' 'require-corp';
    add_header 'Cross-Origin-Opener-Policy' 'same-origin';
    add_header 'Cache-Control' 'no-cache, no-store, must-revalidate';
    add_header 'Pragma' 'no-cache';
    add_header 'Expires' '0';
}

Latest revision as of 01:45, 7 September 2023



Introduction

This page lets you try out Minetest in your web browser. No installation is needed. Note: Sorry, this might not work well on phones. It's mostly for people who have keyboards.

This feature is presently based on a git repo originally from Paradust7. A snapshot is hosted at, and may be downloaded using, the following link:

https://git.minetest.io/paradust7/minetest-wasm

Problems with Browser Play 

There are many problems with the Browser Play feature. Read the list of problems below:

  • This feature might be temporary.
  • Again, this might not work well with phones. It assumes that you have a keyboard. You can try it anyway.
  • Only some web browsers will work. Chrome and Edge should work as long as hardware acceleration is turned on. There is more about that below.
  • Your web browser must have something called hardware acceleration or WebGL turned on. It might already be that way. If Browser Play doesn't work, look for hardware acceleration in your browser settings and turn that setting on.
  • The Browser Play screen supports High, Medium, and Low resolutions. High resolution might be too slow. Low resolution might not work well. Try setting resolution to Medium initially after startup.
  • This feature uses a Minetest proxy run by Paradust of Dustlabs dot IO. The proxy will probably go away. If the proxy does go away, you won't be able to use Browser Play to join online worlds. However, you should still be able to create a small world and try it out.
  • We also can't take responsibility for security issues with the proxy.
  • There is no way to save worlds that you create in Browser Play. They disappear on exit.
  • If you use uBlock Origin or similar security filters, you may, or may not, need to tell them to whitelist the webpages that are linked further down.
  • Browser Play isn't very fast.

How to use Browser Play 

If you'd still like to try this feature, proceed as follows:

1. Optional: If you like, set up your web browser to use a browser proxy or a VPN. This isn't essential.

2. Go to the following link:

https://minetest.org/wasm/

If you'd like to use the arrow keys to move instead of the letter keys, use the following link instead:

https://minetest.org/awasm/

Note: Only the actual arrow keys will work at the 2nd link. The number-pad arrow keys won't work.

3. Some messages should appear.

If error messages about a JavaScript exception or a TypeError occur, you can disregard those messages as long as each only happens once.

After a minute, a Launch Minetest button should appear. If it doesn't appear, give up and close the window.

4. If the Launch Minetest button appears, press it and wait a minute. A Minetest GUI should appear. If the GUI appears, click on the Join Game tab.

5. A server list might appear. Whether or not one does, you should be able to visit Final Minetest worlds by entering hostname, port, and user information on the right side. Trolltest worlds might work as well. MultiCraft worlds probably won't work.

Browser Play Screenshot 

This is a screenshot of a visit to Woofworld in Chrome:

Mtwasm-woofworld.jpg

Browser Play nginx setup 

For hosts and developers:

If the box that is hosting a copy of Minetest Browser Play [aka minetest-wasm] is using nginx as the primary web server, the appropriate "nginx" domain configuration file should include code similar to the following in the appropriate "server { ... }" block:

location ~ wasm {
    root /var/www/something.org;
    add_header 'Cross-Origin-Embedder-Policy' 'require-corp';
    add_header 'Cross-Origin-Opener-Policy' 'same-origin';
    add_header 'Cache-Control' 'no-cache, no-store, must-revalidate';
    add_header 'Pragma' 'no-cache';
    add_header 'Expires' '0';
}