select game mode when launching server from commandline

madarexxx
Member
 
Posts: 144
Joined: Sat Aug 04, 2012 06:49

select game mode when launching server from commandline

by madarexxx » Sun Dec 09, 2012 09:04

Hi everybody!
Please help me - is there any trick to select game mode(creative/survival) when launch server form command line?
Something like
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
minetestserver --worldname my --port 30000 [color=red]--mode creative[/color]


Systems are:
1) netbook - debian linux "Sid"
2) Desktop - windows 7

server is on netbook, controlling with ssh
Sorry for my bad English, please help me learn it - correct my worst mistakes :)
 

Ragnar
Member
 
Posts: 850
Joined: Thu Oct 25, 2012 15:19

by Ragnar » Sun Dec 09, 2012 10:22

first start the minetest.exe in the folder where your server is... then pick the mode... there is a checkbox callee creative mode... check that, start your world, close the game, start server, done... by checking the box, it sends the config a signal that will enable it...
Are you saying that I put an abnormal brain into a seven and a half foot long, fifty-four inch wide GORILLA?
 

madarexxx
Member
 
Posts: 144
Joined: Sat Aug 04, 2012 06:49

by madarexxx » Sun Dec 09, 2012 15:03

i know better method - set parameter "creative_mode" to 1
but i asked about commandline settings :)
Sorry for my bad English, please help me learn it - correct my worst mistakes :)
 

Ragnar
Member
 
Posts: 850
Joined: Thu Oct 25, 2012 15:19

by Ragnar » Sun Dec 09, 2012 18:30

i gave you the simplified version... and it works, doesnt it?
Are you saying that I put an abnormal brain into a seven and a half foot long, fifty-four inch wide GORILLA?
 

madarexxx
Member
 
Posts: 144
Joined: Sat Aug 04, 2012 06:49

by madarexxx » Mon Dec 10, 2012 14:53

could you explain me, how will forward x11 to windows 7 via ssh? i have terminal only access
Sorry for my bad English, please help me learn it - correct my worst mistakes :)
 

Ragnar
Member
 
Posts: 850
Joined: Thu Oct 25, 2012 15:19

by Ragnar » Mon Dec 10, 2012 17:31

I HAVE NO IDEA!!! - The Medic
Are you saying that I put an abnormal brain into a seven and a half foot long, fifty-four inch wide GORILLA?
 

User avatar
Calinou
Member
 
Posts: 3124
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou

by Calinou » Mon Dec 10, 2012 18:39

Edit minetest.conf (command line tool to do this: "nano minetest.conf" in the Minetest server folder)
Put this at the end:
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
creative_mode = 1/0

1 to enable, 0 to disable.

Press Ctrl+X to quit, then press Y to save, then press Enter to confirm saving. Then start the server (it must be stopped when you save it).
 

Ragnar
Member
 
Posts: 850
Joined: Thu Oct 25, 2012 15:19

by Ragnar » Mon Dec 10, 2012 20:07

woah, calinou, Y U SO SMART???
Are you saying that I put an abnormal brain into a seven and a half foot long, fifty-four inch wide GORILLA?
 

madarexxx
Member
 
Posts: 144
Joined: Sat Aug 04, 2012 06:49

by madarexxx » Tue Dec 11, 2012 14:17

Calinou, i know it :) i asked about commandline parameter
thanks for answers!
p.s. if someone make patch in upstream, adding this parameter, i would be very grateful for him.
Sorry for my bad English, please help me learn it - correct my worst mistakes :)
 


Return to Minetest Servers

Who is online

Users browsing this forum: No registered users and 19 guests

cron