[Mod] Free from Android [free_from_andoid]

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

[Mod] Free from Android [free_from_andoid]

by bosapara » Mon Jun 10, 2019 08:57

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: 305
Joined: Sun Mar 26, 2017 12:42
Location: Germany
GitHub: TalkLounge
In-game: TalkLounge

Re: [Mod] Free from Android [free_from_andoid]

by TalkLounge » Mon Jun 10, 2019 09:44

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: 537
Joined: Fri Apr 07, 2017 08:49
GitHub: bosapara

Re: [Mod] Free from Android [free_from_andoid]

by bosapara » Mon Jun 10, 2019 13:47

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: 1658
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: texmex
 

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

Re: [Mod] Free from Android [free_from_andoid]

by bosapara » Mon Jun 10, 2019 14:50

texmex wrote:Yay, now I’m a UI designer.

Yep, now it works and looks better.
 

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

Re: [Mod] Free from Android [free_from_andoid]

by Linuxdirk » Mon Jun 10, 2019 15:14

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

Image
s.jpg
(94.1 KiB) Not downloaded yet
 

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

Re: [Mod] Free from Android [free_from_andoid]

by bosapara » Mon Jun 10, 2019 15:24

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: 1658
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: texmex
 

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

Re: [Mod] Free from Android [free_from_andoid]

by bosapara » Mon Jun 10, 2019 16:08

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
DS-minetest
Member
 
Posts: 1123
Joined: Thu Jun 19, 2014 19:49
Location: I'm scared that if this is too exact, I will be unable to use my keyboard.
GitHub: DS-Minetest
In-game: DS

Re: [Mod] Free from Android [free_from_andoid]

by DS-minetest » Mon Jun 10, 2019 21:41

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).
Do not call me -minetest.
Call me DS or DS-minetest.
I am German, so you don't have to pm me English if you are also German.
The background is a lie.
 

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

Re: [Mod] Free from Android [free_from_andoid]

by sorcerykid » Mon Jun 10, 2019 21:52

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: 1049
Joined: Sun Jan 03, 2016 11:58
Location: Thailand - Chiang Mai (+5-6h to MEZ)
In-game: Thomas Explorer

Re: [Mod] Free from Android [free_from_andoid]

by Festus1965 » Mon Jun 10, 2019 23:40

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.
Server: still up, see some gamer - but there is a new 1st important thread "climate change" for me. Something I know since 1992 - had seen the melting glacier in Switzerland.
 

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

Re: [Mod] Free from Android [free_from_andoid]

by bosapara » Tue Jun 11, 2019 05:47

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: 537
Joined: Fri Apr 07, 2017 08:49
GitHub: bosapara

Re: [Mod] Free from Android [free_from_andoid]

by bosapara » Tue Jun 11, 2019 05:53

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
DS-minetest
Member
 
Posts: 1123
Joined: Thu Jun 19, 2014 19:49
Location: I'm scared that if this is too exact, I will be unable to use my keyboard.
GitHub: DS-Minetest
In-game: DS

Re: [Mod] Free from Android [free_from_andoid]

by DS-minetest » Tue Jun 11, 2019 10:52

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.
Do not call me -minetest.
Call me DS or DS-minetest.
I am German, so you don't have to pm me English if you are also German.
The background is a lie.
 

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

Re: [Mod] Free from Android [free_from_andoid]

by bosapara » Tue Jun 11, 2019 12:43

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: 1658
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: texmex

Re: [Mod] Free from Android [free_from_andoid]

by texmex » Tue Jun 11, 2019 13:29

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

Re: [Mod] Free from Android [free_from_andoid]

by Linuxdirk » Tue Jun 11, 2019 14:07

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: 537
Joined: Fri Apr 07, 2017 08:49
GitHub: bosapara

Re: [Mod] Free from Android [free_from_andoid]

by bosapara » Tue Jun 11, 2019 14:35

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

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

Re: [Mod] Free from Android [free_from_andoid]

by bosapara » Tue Jun 11, 2019 14:51

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

Re: [Mod] Free from Android [free_from_andoid]

by Linuxdirk » Tue Jun 11, 2019 15:31

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: 537
Joined: Fri Apr 07, 2017 08:49
GitHub: bosapara

Re: [Mod] Free from Android [free_from_andoid]

by bosapara » Tue Jun 11, 2019 15:38

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: 1049
Joined: Sun Jan 03, 2016 11:58
Location: Thailand - Chiang Mai (+5-6h to MEZ)
In-game: Thomas Explorer

Re: [Mod] Free from Android [free_from_andoid]

by Festus1965 » Tue Jun 11, 2019 21:41

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.
Server: still up, see some gamer - but there is a new 1st important thread "climate change" for me. Something I know since 1992 - had seen the melting glacier in Switzerland.
 

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

Re: [Mod] Free from Android [free_from_andoid]

by paramat » Sat Jun 15, 2019 00:57

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

I like what this mod does, useful.
 

Next

Return to WIP Mods



Who is online

Users browsing this forum: No registered users and 1 guest