Page 1 of 1

[Suggestion] Profile chooser

PostPosted: Wed Mar 04, 2015 12:05
by mahmutelmas06
It could be nice if there was an choose profile option for singleplayer game.

If there are more player in a home they wants to play in a same world but no chance to touch each others objects using protector, landmark etc...

We can make it in minetest.conf but this option could be a lot better

Re: [Suggestion]

PostPosted: Wed Mar 04, 2015 12:59
by ExeterDad
That's actually a very good idea.

Re: [Suggestion]

PostPosted: Wed Mar 04, 2015 14:15
by oleastre
You can already do something similar using the "server" tab of the UI: pick a world, a user name and a password.
Minetest will launch and connect you to your world with the given username.

Re: [Suggestion]

PostPosted: Wed Mar 04, 2015 14:56
by mahmutelmas06
We can play single on server tab but we still have another tab called singleplayer right. There must be something different on thoose tabs otherwise why we have singleplayer tab in game menu right ? :D

Re: [Suggestion] Profile chooser

PostPosted: Wed Mar 04, 2015 18:47
by oleastre
Some dev can probably confirm, but mostly, the singleplayer tab is just a shortcut to launch a server with a predefined user name which is "singleplayer".

Re: [Suggestion] Profile chooser

PostPosted: Wed Mar 04, 2015 20:24
by rubenwardy
Oleastre is correct, except it also stops over people from connecting. It starts a server, and only lets single player join. Not sure how it does this.

Citation needed.

Re: [Suggestion] Profile chooser

PostPosted: Thu Mar 05, 2015 02:32
by TG-MyinaWD
rubenwardy wrote:Oleastre is correct, except it also stops over people from connecting. It starts a server, and only lets single player join. Not sure how it does this.

Citation needed.

I think it links you to localhost. Since your IP Comes out 0.0.0.0. And a random port.

But to I think it blacklist all names then the name "singleplayer".

But what I know Me no Core Contributer. Only an Modder Contributer and few others.

But If want an different player name each time via Singleplayer Just open world folder and rename singleplayer to something and change it back when want load the player.

Or use the Server Tab.

edit:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
Example Naming:

singleplayer_001_foo
singleplayer_002_bar

Re: [Suggestion] Profile chooser

PostPosted: Thu Mar 05, 2015 08:43
by rubenwardy
I can't work out what you are saying. Something about testing to see how it works? You could test it by starting singleplayer and trying to connect to "127.0.01" on another Minetest client.

Re: [Suggestion] Profile chooser

PostPosted: Thu Mar 05, 2015 11:56
by addi
the singleplayer game is just a normal server, using a (more or less) random port.
to test it fetch the lines from console or from debug txt
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
12:44:58: ACTION[main]:         .__               __                   __
12:44:58: ACTION[main]:   _____ |__| ____   _____/  |_  ____   _______/  |_
12:44:58: ACTION[main]:  /     \|  |/    \_/ __ \   __\/ __ \ /  ___/\   __\
12:44:58: ACTION[main]: |  Y Y  \  |   |  \  ___/|  | \  ___/ \___ \  |  |
12:44:58: ACTION[main]: |__|_|  /__|___|  /\___  >__|  \___  >____  > |__|
12:44:58: ACTION[main]:       \/        \/     \/          \/     \/
12:44:58: ACTION[main]: World at [D:\Programme\minetest\bin\..\worlds\test]
12:44:58: ACTION[main]: Server for gameid="minetest" listening on 0.0.0.0:49437.

most intresting is the last line and the last number after the ":" its the port.
its changing each time you start a singleplayergame.

now start a 2nd instance of minetest and enter server: 127.0.0.1 and port: that from the last line, here: 49437
the username matters not, so you can call yourself "addi" or whatever you want.
there is no blacklist for names in singleplayer mode!

Re: [Suggestion] Profile chooser

PostPosted: Thu Mar 05, 2015 17:10
by mahmutelmas06
So seems there is nothing special to singleplayer just offline one.

If its so dont you think its a useless tab ?

Re: [Suggestion] Profile chooser

PostPosted: Thu Mar 05, 2015 17:31
by rubenwardy
It hides away useless settings which you don't need for singleplayer. Like announce. There is also no name or password box, which makes it easier.