Page 1 of 1

select game mode when launching server from commandline

PostPosted: Sun Dec 09, 2012 09:04
by madarexxx
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

PostPosted: Sun Dec 09, 2012 10:22
by Ragnar
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...

PostPosted: Sun Dec 09, 2012 15:03
by madarexxx
i know better method - set parameter "creative_mode" to 1
but i asked about commandline settings :)

PostPosted: Sun Dec 09, 2012 18:30
by Ragnar
i gave you the simplified version... and it works, doesnt it?

PostPosted: Mon Dec 10, 2012 14:53
by madarexxx
could you explain me, how will forward x11 to windows 7 via ssh? i have terminal only access

PostPosted: Mon Dec 10, 2012 17:31
by Ragnar
I HAVE NO IDEA!!! - The Medic

PostPosted: Mon Dec 10, 2012 18:39
by Calinou
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).

PostPosted: Mon Dec 10, 2012 20:07
by Ragnar
woah, calinou, Y U SO SMART???

PostPosted: Tue Dec 11, 2012 14:17
by madarexxx
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.