[Mod] Free from Android [free_from_andoid]

User avatar
bosapara
Member
Posts: 637
Joined: Fri Apr 07, 2017 08:49

[Mod] Free from Android [free_from_andoid]

by bosapara » Post

Free from Android
___________________________________________________________________________________________________

Image Download | Github


Mod protects your server from phone/tablet users with 99% efficiency. How it works?

Each visit the player must enter personal unique password from tooltip and press "enter".

Image
Image

Tested with:
Image ImageImage
Last edited by bosapara on Wed Jun 12, 2019 06:38, edited 5 times in total.

User avatar
TalkLounge
Member
Posts: 324
Joined: Sun Mar 26, 2017 12:42
GitHub: TalkLounge
In-game: TalkLounge
Location: Germany

Re: [Mod] Free from Android [free_from_andoid]

by TalkLounge » Post

This idea +1
But a method to just block players that don't play minetest would be even better
Subgames Server: Sky World Subgames German Survival Server: Wildes Land 2 E-Mail: talklounge@yahoo.de

User avatar
bosapara
Member
Posts: 637
Joined: Fri Apr 07, 2017 08:49

Re: [Mod] Free from Android [free_from_andoid]

by bosapara » Post

Update
_____________________________________________________________

1. Changed formspec design by texmex
2. On join players lost "interact" and "shout" privs while password will not be entered
3. Kick if password is wrong or by the reason of closed formspec
4. Added info about server available for PC users only


Image
Last edited by bosapara on Mon Jun 10, 2019 14:48, edited 1 time in total.

User avatar
texmex
Member
Posts: 1753
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: tacotexmex

Re: [Mod] Free from Android [free_from_andoid]

by texmex » Post

Yay, now I’m a UI designer.

User avatar
bosapara
Member
Posts: 637
Joined: Fri Apr 07, 2017 08:49

Re: [Mod] Free from Android [free_from_andoid]

by bosapara » Post

texmex wrote:Yay, now I’m a UI designer.
Yep, now it works and looks better.

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

Re: [Mod] Free from Android [free_from_andoid]

by Linuxdirk » Post

On latest available Android client on Android 9 (Pie) you can simply long-tap the key to show the tooltip.

Image
s.jpg
s.jpg (94.1 KiB) Viewed 972 times

User avatar
bosapara
Member
Posts: 637
Joined: Fri Apr 07, 2017 08:49

Re: [Mod] Free from Android [free_from_andoid]

by bosapara » Post

Linuxdirk wrote:On latest available Android client on Android 9 (Pie) you can simply long-tap the key to show the tooltip.
Thanks you for info. I will add tooltip to "enter" button instead of picture.
______________________________

Unfortunately password can be opened with long-tap even in 4.17 from any place: fields, buttons or image_buttons

User avatar
texmex
Member
Posts: 1753
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: tacotexmex

Re: [Mod] Free from Android [free_from_andoid]

by texmex » Post

Darn. Scrap that idea then. Well played, Linuxdirk! :D

User avatar
bosapara
Member
Posts: 637
Joined: Fri Apr 07, 2017 08:49

Re: [Mod] Free from Android [free_from_andoid]

by bosapara » Post

texmex wrote:Darn. Scrap that idea then. Well played, Linuxdirk! :D
By the way not all know about long-tap with tooltips. In any way it was good try to block phone users with fake app with advertising.

User avatar
Desour
Member
Posts: 1469
Joined: Thu Jun 19, 2014 19:49
GitHub: Desour
IRC: Desour
In-game: DS
Location: I'm scared that if this is too exact, I will be unable to use my keyboard.

Re: [Mod] Free from Android [free_from_andoid]

by Desour » Post

Idea to improve this:
Make the tooltip to a button_exit and require to close the formspec with esc (or with close_on_enter, idk).
he/him; Codeberg; GitHub; ContentDB; public personal TODO list; "DS" is preferred (but often too short)

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

Re: [Mod] Free from Android [free_from_andoid]

by sorcerykid » Post

bosapara wrote:In any way it was good try to block phone users with fake app with advertising.
How does this mod distinguish between "fake" apps and the official Minetest app for Android that has no advertising?

User avatar
Festus1965
Member
Posts: 4181
Joined: Sun Jan 03, 2016 11:58
GitHub: Festus1965
In-game: Festus1965 Thomas Thailand Explorer
Location: Thailand ChiangMai
Contact:

Re: [Mod] Free from Android [free_from_andoid]

by Festus1965 » Post

sorcerykid , read first post again:
bosapara wrote:Mod protects your server from phone/tablet users. How it works?
Is was not about Game, it is only about too often maybe WiFi using lagging Tab and Phone users general.

I agree with this Idea, as I am nearly also sure that low and bad connection users have an bad impact on the hole server.
TumeniNodes wrote:I do not blame anyone who wants to keep their server mobile-user-free.
The mod has not to used, so let those server admins which see this impact, shelter their servers and "costumer" and don't focus on something else not meant here.
When I see how the service about settings and other things in the forum this time - I am happy some people like bosapara take action.
Human has no future (climate change)
If urgend, you find me in Roblox (as CNXThomas)

User avatar
bosapara
Member
Posts: 637
Joined: Fri Apr 07, 2017 08:49

Re: [Mod] Free from Android [free_from_andoid]

by bosapara » Post

sorcerykid wrote:How does this mod distinguish between "fake" apps and the official Minetest app for Android that has no advertising?
Main part of phone users 99.9% using fake apps, stats of google store can prove it. There are a lot of reasons to block all phone users besides fake app users.

User avatar
bosapara
Member
Posts: 637
Joined: Fri Apr 07, 2017 08:49

Re: [Mod] Free from Android [free_from_andoid]

by bosapara » Post

DS-minetest wrote:Idea to improve this:
Make the tooltip to a button_exit and require to close the formspec with esc (or with close_on_enter, idk).
Phone users can see tooltip from "button_exit". "Esc" can be repeated too. Not fully understood how can help "close_on_enter" for mod.

User avatar
Desour
Member
Posts: 1469
Joined: Thu Jun 19, 2014 19:49
GitHub: Desour
IRC: Desour
In-game: DS
Location: I'm scared that if this is too exact, I will be unable to use my keyboard.

Re: [Mod] Free from Android [free_from_andoid]

by Desour » Post

bosapara wrote:
DS-minetest wrote:Idea to improve this:
Make the tooltip to a button_exit and require to close the formspec with esc (or with close_on_enter, idk).
Phone users can see tooltip from "button_exit". "Esc" can be repeated too. Not fully understood how can help "close_on_enter" for mod.
You could set field_close_on_enter for your password field. I don't know whether mobile users can trigger the close_on_enter, but maybe they can't.
he/him; Codeberg; GitHub; ContentDB; public personal TODO list; "DS" is preferred (but often too short)

User avatar
bosapara
Member
Posts: 637
Joined: Fri Apr 07, 2017 08:49

Re: [Mod] Free from Android [free_from_andoid]

by bosapara » Post

DS-minetest wrote:You could set field_close_on_enter for your password field.
Thanks you for advice.
_________________________________________________________
Update

Added "field_close_on_enter" and deleted enter button, it must help with join of PC users only.

Image

User avatar
texmex
Member
Posts: 1753
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: tacotexmex

Re: [Mod] Free from Android [free_from_andoid]

by texmex » Post

Well, did it? Commence hacking, Linuxdirk.

Bosapara, you need to start adding a license on your code. It's important for it to live on in the future, if nothing else!

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

Re: [Mod] Free from Android [free_from_andoid]

by Linuxdirk » Post

Long-tapping the key and lifting the finger now crashes the server.

Code: Select all

2019-06-11 16:03:59: WARNING[Server]: Undeclared global variable "name" accessed at /home/dirk/.minetest/mods/free_from_andoid/init.lua:42
2019-06-11 16:03:59: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'free_from_andoid' in callback on_playerReceiveFields(): /home/dirk/.minetest/mods/free_from_andoid/init.lua:42: bad argument #1 to 'kick_player' (string expected, got nil)
2019-06-11 16:03:59: ERROR[Main]: stack traceback:
2019-06-11 16:03:59: ERROR[Main]: 	[C]: in function 'kick_player'
2019-06-11 16:03:59: ERROR[Main]: 	/home/dirk/.minetest/mods/free_from_andoid/init.lua:42: in function </home/dirk/.minetest/mods/free_from_andoid/init.lua:25>
2019-06-11 16:03:59: ERROR[Main]: 	/usr/share/minetest/builtin/game/register.lua:419: in function </usr/share/minetest/builtin/game/register.lua:399>

User avatar
bosapara
Member
Posts: 637
Joined: Fri Apr 07, 2017 08:49

Re: [Mod] Free from Android [free_from_andoid]

by bosapara » Post

Linuxdirk wrote:Long-tapping the key and lifting the finger now crashes the server.
Possibly, you using 5.0? Mod tested only with 4.16 and 4.17

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

Re: [Mod] Free from Android [free_from_andoid]

by Linuxdirk » Post

Yeah … but 0.4.x is dead :)

User avatar
bosapara
Member
Posts: 637
Joined: Fri Apr 07, 2017 08:49

Re: [Mod] Free from Android [free_from_andoid]

by bosapara » Post

Linuxdirk wrote:Yeah … but 0.4.x is dead :)
We have a lot of servers that using 4.16 / 4.17

I've updated mod, now it must work with 5.0

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

Re: [Mod] Free from Android [free_from_andoid]

by Linuxdirk » Post

Jep, works now.

You can still get the password by tapping and holding the key and then sliding away from the key to prevent the untap event to be triggered on the key.

But with Gboard (the Android standard keyboard) there is no way to press enter in the input field. Alternate keyboards with dedicated enter key (or hardware keyboards) might still be able to confirm the dialog. The not so tech-savvy everyday user can’t login though.

User avatar
bosapara
Member
Posts: 637
Joined: Fri Apr 07, 2017 08:49

Re: [Mod] Free from Android [free_from_andoid]

by bosapara » Post

Linuxdirk wrote:You can still get the password by tapping and holding the key and then sliding away from the key to prevent the untap event to be triggered on the key.
Yep, players can see password (if they know about long-tap), but not all can press enter.

User avatar
Festus1965
Member
Posts: 4181
Joined: Sun Jan 03, 2016 11:58
GitHub: Festus1965
In-game: Festus1965 Thomas Thailand Explorer
Location: Thailand ChiangMai
Contact:

Re: [Mod] Free from Android [free_from_andoid]

by Festus1965 » Post

Linuxdirk wrote:Yeah … but 0.4.x is dead :)
??? that is new for me
- and there still more gamer on 0.4.x than on 5.x
- and it seams this MCc gamer are even more than the MTc gamer

bosapara, go on - your are trying it, that counts !
Sure there will be a way to get it sure safe.
Human has no future (climate change)
If urgend, you find me in Roblox (as CNXThomas)

User avatar
paramat
Developer
Posts: 3700
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat
IRC: paramat
Location: UK

Re: [Mod] Free from Android [free_from_andoid]

by paramat » Post

Latest serverlist statistics show 87% of activity is MT 5.0.0 or later.

I like what this mod does, useful.

Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 23 guests