Page 1 of 1

Cool Trick

PostPosted: Fri Feb 22, 2013 14:06
by John_Ianson
I use this cool trick sometimes and I wanted to share it with the community. I think it would be useful for testing mods. It's kind of hackerish, but bear with me. I'm going to give the instructions for the linux client, but people using Windows shouldn't have a problem. Okay, here goes-

1.) Open up Minetest.

2.) Click on Advanced, give yourself a name, and leave the address blank.

4.) Start the game.

3.) Open a terminal (CTRL-ALT-T) and type in "ifconfig". Look for something called "Local Loopback". There is something under it that says, "inet addr". Remember this number.

4.) Open up a SECOND Minetest window and go the Advanced.

5.) Type in a new name (for player 2) and in the address, type the inet addr number that you (hopefluly) remembered from earlier.

6.) Connect to the game.

7.) Tah-Dah!!!

8.) You are welcome. :)

PostPosted: Fri Feb 22, 2013 14:15
by jojoa1997
What does this do?

PostPosted: Fri Feb 22, 2013 14:26
by John_Ianson
It activates Skynet.

I kid. I kid.

Anyway, it allows the player (you) to play not one, but TWO instances of Minetest on a SINGLE (Yes, SINGLE!!!) computer!!! No more waiting for someone else to test your mod and tell you that something doesn't work!!! Of course, you might have to change the privs for the second instance beforehand. You'll figure it out.

PostPosted: Fri Feb 22, 2013 14:27
by John_Ianson
Hybrid Dog wrote:
jojoa1997 wrote:What does this do?
you can play with 2 or more persons in the same world

On the same computer, of course. :)

PostPosted: Fri Feb 22, 2013 14:41
by Traxie21
The easy way to do this is to start a game in advanced,
open up a new MT window, enter a second name, change the address to localhost and connect.

PostPosted: Fri Feb 22, 2013 14:52
by Mito551
Traxie21 wrote:The easy way to do this is to start a game in advanced,
open up a new MT window, enter a second name, change the address to localhost and connect.


or, if localhost doesn't work, use 127.0.0.1

PostPosted: Fri Feb 22, 2013 14:53
by sfan5
John_Ianson wrote:3.) Open a terminal (CTRL-ALT-T) and type in "ifconfig". Look for something called "Local Loopback". There is something under it that says, "inet addr". Remember this number.

You don't need that step, every address between 127.0.0.0 and 127.255.255.255 points to the local computer

PostPosted: Fri Feb 22, 2013 14:53
by jojoa1997
I start the game and then start another one. It works no matter what so I don't get what is so special. Is this for Linux? Is the ability to open 2 clients using the app just for windows?

PostPosted: Fri Feb 22, 2013 14:55
by John_Ianson
Mito551 wrote:
Traxie21 wrote:The easy way to do this is to start a game in advanced,
open up a new MT window, enter a second name, change the address to localhost and connect.


or, if localhost doesn't work, use 127.0.0.1


Funny 'cause that's the number I typed in!!!

PostPosted: Fri Feb 22, 2013 15:58
by PilzAdam
John_Ianson wrote:
Mito551 wrote:
Traxie21 wrote:The easy way to do this is to start a game in advanced,
open up a new MT window, enter a second name, change the address to localhost and connect.


or, if localhost doesn't work, use 127.0.0.1


Funny 'cause that's the number I typed in!!!

It is always the same number.
And this "trick" is very obvious to everyone who knows something about networking.

PostPosted: Fri Feb 22, 2013 19:38
by Likwid H-Craft
Yeah this how I am showing case my, skins I make sometimes.

PostPosted: Sat Feb 23, 2013 08:49
by Calinou
John_Ianson wrote:3.) Open a terminal (CTRL-ALT-T) and type in "ifconfig". Look for something called "Local Loopback". There is something under it that says, "inet addr". Remember this number.


Your local IP is always 127.0.0.1, so why do that?

PostPosted: Sat Feb 23, 2013 12:40
by Likwid H-Craft
What about, lan?

PostPosted: Sat Feb 23, 2013 13:50
by sfan5
You can also play in LAN with this

PostPosted: Sat Feb 23, 2013 16:43
by Samsai
Yup, it's a cool feature. I wouldn't call it a "trick" though, because Minetest is designed to work as server/client environment. This means that when you open singleplayer mode, it actually runs a Minetest server and connects you to that. That's why you can connect even into a "singleplayer" game in Minetest.

PostPosted: Sat Feb 23, 2013 16:59
by Likwid H-Craft
Yeah to bad, can't make it you can, use player 1 with a xbox 360 remote, and use player 2 with Mouse and Keys and, you can have both run on, same time not just one tab at a time, but games don't work that way they can't run spit-screen on pcs...Can they?