+ Post New Thread
Results 1 to 2 of 2
How do you do....it? Thread, Minetest on lockdown in Technical; I've been configuring minetest for use on the network, and have hit a snag. At the moment, I have 2 ...
  1. #1

    X-13's Avatar
    Join Date
    Jan 2011
    Location
    /dev/null
    Posts
    9,094
    Thank Post
    592
    Thanked 1,953 Times in 1,351 Posts
    Blog Entries
    19
    Rep Power
    814

    Minetest on lockdown

    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:

    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%
    Teachers:

    Code:
    @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:

    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%
    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:

    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...

  2. #2

    X-13's Avatar
    Join Date
    Jan 2011
    Location
    /dev/null
    Posts
    9,094
    Thank Post
    592
    Thanked 1,953 Times in 1,351 Posts
    Blog Entries
    19
    Rep Power
    814
    Le Bump.

    Anyone?

SHARE:
+ Post New Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •