Jump to content

Recommended Posts

Posted (edited)

I've been configuring minetest for use on the network, and have hit a snag.

 

At the moment, I have 2 different .bat files [one for pupils, one for teachers] that set things up so there's some level of control over it.

 

However... a second way I'm testing, which would remove pupils abilities to create and use custom worlds/servers [while also disabling any co-op functionality...] isn't working.

 

This is what I'm currently using:

 

Pupils:

 

@ECHO OFF
SET _remove=.%username:*.=%
CALL SET _minetest=%%username:%_remove%=%%
IF NOT EXIST "%APPDATA%\minetest\%_minetest%.CONF" XCOPY /Y "PupilDefault.CONF" "%APPDATA%\minetest\%_minetest%.CONF"
"..\bin\minetest.exe" --config "%APPDATA%\minetest\%_minetest%.CONF" --name %_minetest%

 

Teachers:

 

@ECHO OFF
ECHO %computername%
"..\bin\minetest.exe" --server --world "..\worlds\%username%"  --logfile ..\MinetestLogs\%username%-%computername%.txt

 

which works fine enough, however, it only works as intended if a pupil types in the result of "ECHO %computername%" as the server they're connecting to. They still have the option to make their own worlds or connect to another server.

 

 

I tried this:

 

SET _remove=.%username:*.=%
CALL SET _minetest=%%username:%_remove%=%%
IF NOT EXIST "%APPDATA%\minetest\%_minetest%.CONF" XCOPY /Y "PupilDefault.CONF" "%APPDATA%\minetest\%_minetest%.CONF"
"..\bin\minetest.exe" --go --world "..\worlds\%_minetest%" --config "%APPDATA%\minetest\%_minetest%.CONF" --name %_minetest%

 

But it just brings up the error that the world doesn't exist [TBF, it DOESN'T exist], whereas the teacher version MAKES the world when it isn't there. Which may or may not be due to it being in --server mode, which is just a CLI [minus the interface part...]

 

I could just let them run it without modifying anything, but it then would rely on pupils not griefing other worlds.

 

 

I have the following command line options, none of which seem helpful:

 

Allowed options:
 --address      Address to connect to. ('' = local game)
 --config       Load configuration from specified file
 --disable-unittests   Disable unit tests
 --enable-unittests    Enable unit tests
 --gameid       Set gameid ("--gameid list" prints available ones)
 --go                  Disable main menu
 --help                Show allowed options
 --info                Print more information to console
 --logfile      Set logfile path ('' = no logging)
 --map-dir      Same as --world (deprecated)
 --migrate      Migrate from current map backend to another (Only works when using minetestserver or with --server)
 --name         Set player name
 --password     Set password
 --port         Set network port (UDP)
 --random-input        Enable random user input, for testing
 --server              Run dedicated server
 --speedtests          Run speed tests
 --trace               Print enormous amounts of information to log and console
 --verbose             Print even more information to console
 --version             Show version information
 --videomodes          Show available video modes
 --world        Set world path (implies local game) ('list' lists all)
 --worldname    Set world by name (implies local game)

 

 

Anyone have any ideas?

Edited by X-13
returns randomly removed themselves...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...