Using Minetest in a school
-
- New member
- Posts: 4
- Joined: Thu Jul 09, 2015 17:40
Using Minetest in a school
I think there are many benefits of using Minetest in a school and would like to develop and share resources for teachers to use in class. I'm even looking at coding to create mods.
My one concern is that it's too easy to access public servers and this is an e-safety risk for schools. Does anyone know how to disable the public servers tab. I know that the ip addresses can be individually blocked but this isn't reliable as new ones appear frequently.
My one concern is that it's too easy to access public servers and this is an e-safety risk for schools. Does anyone know how to disable the public servers tab. I know that the ip addresses can be individually blocked but this isn't reliable as new ones appear frequently.
- lag01
- Member
- Posts: 321
- Joined: Sun Mar 16, 2014 03:41
- GitHub: AndrejIT
- IRC: lag01
- In-game: lag
- Contact:
Re: Using Minetest in a school
In minetest.conf you can change
serverlist_url =
to your own server list(i am not sure how to make one, but code is available at github) or just to
serverlist_url = localhost
And also block outgoing port 30000-30099 on schools router.
serverlist_url =
to your own server list(i am not sure how to make one, but code is available at github) or just to
serverlist_url = localhost
And also block outgoing port 30000-30099 on schools router.
- rubenwardy
- Moderator
- Posts: 6978
- Joined: Tue Jun 12, 2012 18:11
- GitHub: rubenwardy
- IRC: rubenwardy
- In-game: rubenwardy
- Location: Bristol, United Kingdom
- Contact:
Re: Using Minetest in a school
Remove public server list
This gets rid of the public server list, but doesn't disable multiplayer - the user can still connect to a server if they know its IP address.Go to minetest/builtin/tab_multiplayer.lua
Delete a line like this: "checkbox[0,4.85;cb_public_serverlist;" .. fgettext("Public Serverlist") .. ";" ..
(it is line 29 in my file)
Replace
Code: Select all
if core.setting_getbool("public_serverlist") then
asyncOnlineFavourites()
else
menudata.favorites = core.get_favorites("local")
end
Code: Select all
if core.setting_getbool("public_serverlist") then
core.setting_set("public_serverlist", "false")
menudata.favorites = core.get_favorites("local")
end
or Remove multiplayer
This hides all multiplayer join/start from the mainmenu. It is still possible to join a multiplayer game using the command line ("minetest --address redcrab.suret.net --port 30401 --go") to stop this, you'll need to add 30000 - 30100 to your firewall.Go to minetest/builtin/mainmenu/init.lua
Remove the following lines:
Code: Select all
tv_main:add(tab_multiplayer)
tv_main:add(tab_server)
Last edited by rubenwardy on Tue Jan 12, 2016 15:01, edited 2 times in total.
-
- New member
- Posts: 4
- Joined: Thu Jul 09, 2015 17:40
Re: Using Minetest in a school
Brilliant, I'll give this a try
- rubenwardy
- Moderator
- Posts: 6978
- Joined: Tue Jun 12, 2012 18:11
- GitHub: rubenwardy
- IRC: rubenwardy
- In-game: rubenwardy
- Location: Bristol, United Kingdom
- Contact:
Re: Using Minetest in a school
Note that if you do the second one ("Remove multiplayer") there is no point doing the first ("Remove public server list")
-
- New member
- Posts: 4
- Joined: Thu Jul 09, 2015 17:40
Re: Using Minetest in a school
Ok great thanks, does this mean that with online servers disabled local servers can still be used, ie on the same network. Hopefully that's the case.
- ExeterDad
- Member
- Posts: 1717
- Joined: Sun Jun 01, 2014 20:00
- In-game: ExeterDad
- Location: New Hampshire U.S.A
Re: Using Minetest in a school
Yes. But the users will have to manually type in the ip address and port number of the local server(s)for the first login of each one. Then the ip address(s) will appear in the list for later logins.cailseducation wrote:Ok great thanks, does this mean that with online servers disabled local servers can still be used, ie on the same network. Hopefully that's the case.
Just keep in mind. If users learn the ip addresses of the public servers... they will still be able to join them. They are just "invisible."
HOMETOWN -Our little server. Keep the HOMETOWN chatter @ http://hometownserver.com - Our server map: http://media.hometownserver.com
-
- New member
- Posts: 4
- Joined: Thu Jul 09, 2015 17:40
Re: Using Minetest in a school
Yes, that's fine, I don't think that will be an issue, no less so than internet access. As lonk as they can't easily look at a list of servers on minetest. I can already create local servers using the computer name, eg room4-12 as the PC name on the network. Thanks for all the help.
Re: Using Minetest in a school
I am using minetest 4.15 windows version and cannot find the code that you mention.
I find tab_multiplayer.lua in builtin/mainmenu, but do not find the referred code.
Maybe you can tell me what I need to modify to remove the server list in the 4.15 windows version.
Thanks.
I find tab_multiplayer.lua in builtin/mainmenu, but do not find the referred code.
Maybe you can tell me what I need to modify to remove the server list in the 4.15 windows version.
Thanks.
Re: Using Minetest in a school
ttucker wrote:I am using minetest 4.15 windows version and cannot find the code that you mention.
I find tab_multiplayer.lua in builtin/mainmenu, but do not find the referred code.
Maybe you can tell me what I need to modify to remove the server list in the 4.15 windows version.
Thanks.
You can still use the method lag01 mentioned.
My mods: Mute, Extra TNT blast effectsnyancats_plus and More charcommands
Example CSM mods:Chatlog and Formspec editor
Example CSM mods:Chatlog and Formspec editor
Re: Using Minetest in a school
Thank you. What I ended up doing is blocking servers.minetest.net at the firewall. It seems to work.
Re: Using Minetest in a school
Back in 2015, rubenwardy gave an adaptation to a lua file to remove the public server list.
Could anyone tell me the equivalent current adaptation?
I know I could set
serverlist_url = invalid_address
but that results in a 'Loading...' message that never times out.
Looking at my minetest-0.4.16 installation, there is now no such file.rubenwardy wrote:Remove public server list
This gets rid of the public server list, but doesn't disable multiplayer - the user can still connect to a server if they know its IP address.
Go to minetest/builtin/tab_multiplayer.lua
Delete a line like this: "checkbox[0,4.85;cb_public_serverlist;" .. fgettext("Public Serverlist") .. ";" ..
(it is line 29 in my file)
Replace
withCode: Select all
if core.setting_getbool("public_serverlist") then asyncOnlineFavourites() else menudata.favorites = core.get_favorites("local") end
Code: Select all
if core.setting_getbool("public_serverlist") then core.setting_set("public_serverlist", "false") menudata.favorites = core.get_favorites("local") end
Could anyone tell me the equivalent current adaptation?
I know I could set
serverlist_url = invalid_address
but that results in a 'Loading...' message that never times out.
Re: Using Minetest in a school
in "builtin/mainmenu/common.lua" replace
with
It should be somewhere around line 220 but if it's not try searching for the status text.
It's not a perfect solution it will result in an dummy entry in the server list but it's the smallest change that I can see that still allows loading servers from the favourite file/list.
Code: Select all
if not menudata.public_known then
menudata.public_known = {{
name = fgettext("Loading..."),
description = fgettext_ne("Try reenabling public serverlist and check your internet connection.")
}}
end
Code: Select all
if not menudata.public_known then
menudata.favorites = {{
name = "",
description = "",
}}
return
end
It's not a perfect solution it will result in an dummy entry in the server list but it's the smallest change that I can see that still allows loading servers from the favourite file/list.
My mods: Mute, Extra TNT blast effectsnyancats_plus and More charcommands
Example CSM mods:Chatlog and Formspec editor
Example CSM mods:Chatlog and Formspec editor
Re: Using Minetest in a school
Thanks red-001, that works.
The other solution that occurs to me is putting a record in the local dns such that servers.minetest.net resolves to some local machine on which I could run a service that returns the list I want displayed.
Does anyone know exactly what query is sent to serverlist_url and what format is expected to be returned?
The other solution that occurs to me is putting a record in the local dns such that servers.minetest.net resolves to some local machine on which I could run a service that returns the list I want displayed.
Does anyone know exactly what query is sent to serverlist_url and what format is expected to be returned?
Re: Using Minetest in a school
My mods: Mute, Extra TNT blast effectsnyancats_plus and More charcommands
Example CSM mods:Chatlog and Formspec editor
Example CSM mods:Chatlog and Formspec editor
Who is online
Users browsing this forum: No registered users and 10 guests