Command Line Guide
Below is the output of client --help, and server --help.TURF Client: Version 0.1.6. (C) 2012 Liam Twigger Client Init Clock: 0 Usage: clientCommand Line Switches: (all case sensitive) --fs Enables fullscreen. --width WIDTH Sets the width of the window to WIDTH. --height HEIGHT Sets the width of the window to HEIGHT. --physics STATE STATE is either ON, OFF or AUTO (case sensitive). This sets whether physics is simulated. If your playing this game over LAN or singleplayer ( = localhost), this is recommended to be off to prevent redundant calculations wasting CPU. The default is OFF. --gameDir DIR Sets the directory where files are loaded from --debugDraw STATE STATE is either ON or OFF. Physics must be on for this to have effect. This draws the physics meshes. --help Displays this message. --fm Free Memory: Tells the program to deallocate memory on exit (as opposed to just closing and letting the OS do it). The reason why the game does not deallocate memory on shutdown be default is to prevent the game from loading things from swap to deallocate them, which leads to a long shutdown. --profiler Spits out how long it takes to generate a chunk's VBO, lighting recalculations and chunk physics mesh regeneration. --sleep MSEC Sets how many milliseconds the game will sleep for between frames. This is a smart sleep, so that if the game takes DeltaT milliseconds to render a frame, the game will sleep for (MSEC - DeltaT) milliseconds for smooth operation. This command is useful for preventing the game from hogging all the CPU. --renderItems ID Starts the program, spits out ui BMPs for item ID, then closes. Use ALL to render all items --sunlightMode STATE STATE is either NORMAL, MIDDAY, MIDNIGHT, DAWN or DUSK. Renders daylight as if its stuck at this time. --v Verbose output - for debuging. --echoBlockPlacement Whenever a block is set, a message will appear in the in-game console. --echoItemIds An items id will be displayed when seleceted as well as its name. --strictLua STATE STATE is either ON or OFF. If ON, abort if there is an error loading Lua scripts. Useful for debugging Lua scripts. Default state is ON. --login USER PASS Logs in on start up with specified username and password --demo Run in demo mode --timeout TIMEOUT Sets the connection timeout in ms (Default 6000) TURF Server: Version 0.1.6. (C) 2012 Liam Twigger Game directory: /home/twigger/.turf/ --help Usage: server Command Line Switches: (all case sensitive) --help Displays this message. --port PORT Uses PORT as the port --game ID Sets the game id (default: 0) --g ID Alias of --game --gameDir DIR Sets the directory where files are loaded from --v Verbose output - for debuging. --strictLua STATE STATE is either ON or OFF. If ON, abort if there is an error loading Lua scripts. Useful for debugging Lua scripts. Default state is ON. --profiler Profiling information. --outputToFile Redirects program output (stdout) to file serverlog.txt --latchToClient LATCH Do not use this. This is an argument when running the server from within the client, to the server this. --serverName NAME Name of the server, eg "Robbo's Turf Server" --saveGame FILENAME Name of the save game. Will be stored in savegames folder --publicGame STATE If set to ON, this server will be listed publicly online. Default is OFF. --maxPlayers NUMBER Maximum number of players. --gameMode MODE The game mode, eg Build, Trash, Turf. --gameModeVars { ARGS } Various settings for the game. Format is { gm1, value ; gm2, value1, value2 ; etc }. There must be spaces around the starting and finishing braces. --timeout TIMEOUT Sets the connection timeout in ms (Default 6000) --genmap XSIZE YSIZE If starting a new game, generates a new XSIZE*ZSIZE map. XSIZE and ZSIZE will be rounded to multiple of 128. --loadmap FILENAME If starting a new game, loads the map from a file in the maps/ directory --flatmap If generating a new map, make it flat --newGame STATE STATE is either ON or OFF. Set to ON to enable --randomSeed SEED If generating a new map, use this seed. SEED can either be a number, or a string --simulationPeriod T T is the time delay between simulation frames in ms. Simulation frequency = 1000/T Hz. Default: 60ms --trustClient STATE Trust clients' positions. STATE is ON by default, can be set to OFF for strict server authority