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:
Teachers:Code:@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%
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.Code:@ECHO OFF ECHO %computername% "..\bin\minetest.exe" --server --world "..\worlds\%username%" --logfile ..\MinetestLogs\%username%-%computername%.txt
I tried this:
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...]Code: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%
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:
Code:Allowed options: --address <value> Address to connect to. ('' = local game) --config <value> Load configuration from specified file --disable-unittests Disable unit tests --enable-unittests Enable unit tests --gameid <value> Set gameid ("--gameid list" prints available ones) --go Disable main menu --help Show allowed options --info Print more information to console --logfile <value> Set logfile path ('' = no logging) --map-dir <value> Same as --world (deprecated) --migrate <value> Migrate from current map backend to another (Only works when using minetestserver or with --server) --name <value> Set player name --password <value> Set password --port <value> 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 <value> Set world path (implies local game) ('list' lists all) --worldname <value> Set world by name (implies local game)
Anyone have any ideas?
Last edited by X-13; 8th January 2014 at 11:09 AM. Reason: returns randomly removed themselves...
There are currently 1 users browsing this thread. (0 members and 1 guests)