Browse Source

add configuration example and script to generate

master
Menche 2 years ago
parent
commit
41f04821fa
2 changed files with 155 additions and 0 deletions
  1. 149
    0
      doc/default.cfg.example
  2. 6
    0
      util/gen_example_cfg.sh

+ 149
- 0
doc/default.cfg.example View File

@@ -0,0 +1,149 @@
set log.min_level error
set log.max_level info
set log.system.min_level chat
set log.system.max_level info
set log.console.min_level chat
set log.console.max_level info
set path.log NULL
set path.data.custom NULL
set path.screenshot NULL
set world.path NULL
set debug.profiler.interval 0
set debug.show false
set client.video.anisotropic false
set client.video.bilinear false
set client.video.trilinear false
set client.video.mipmaps true
set client.video.fullscreen false
set client.video.fullscreen.bpp 24
set client.video.fullscreen.fsaa 0
set client.video.vsync false
set client.video.size.width 1024
set client.video.size.height 600
set client.video.driver opengl
set client.video.hpfpu true
set client.sound.volume 50
set client.sound.volume.effects 50
set client.sound.volume.music 50
set client.sound.mumble true
set client.name NULL
set client.graphics.mesh.lod 3
set client.graphics.texture.animations false
set client.graphics.texture.atlas true
set client.graphics.texture.lod 3
set client.graphics.light.lod 3
set client.graphics.light.fog true
set client.graphics.fov 72
set client.graphics.fps.min 30
set client.graphics.fps.max 60
set client.graphics.bobbing true
set client.graphics.bobbing.amount 1.0
set client.graphics.range.min 15
set client.graphics.range.max 300
set client.graphics.particles true
set client.graphics.clouds true
set client.graphics.water.opaque false
set client.graphics.selection highlight
set client.ui.mainmenu.tab singleplayer
set client.ui.hud.old false
set client.ui.hud.wieldindex false
set client.ui.mouse.invert false
set client.ui.mouse.sensitivity 0.2
set client.ui.font unifont.ttf
set client.ui.font.size 14
set client.chunk.timeout 600
set keymap_forward KEY_KEY_W
set keymap_backward KEY_KEY_S
set keymap_left KEY_KEY_A
set keymap_right KEY_KEY_D
set keymap_jump KEY_SPACE
set keymap_sneak KEY_LSHIFT
set keymap_inventory KEY_KEY_I
set keymap_examine KEY_KEY_Q
set keymap_use KEY_KEY_H
set keymap_chat KEY_KEY_T
set keymap_cmd /
set keymap_rangeselect KEY_KEY_O
set keymap_freemove KEY_KEY_K
set keymap_up KEY_KEY_R
set keymap_down KEY_KEY_F
set keymap_run KEY_KEY_E
set keymap_screenshot KEY_F12
set keymap_toggle_hud KEY_F1
set keymap_toggle_chat KEY_F2
set keymap_toggle_force_fog_off KEY_F3
set keymap_toggle_update_camera KEY_F4
set keymap_toggle_debug KEY_F5
set keymap_toggle_profiler KEY_F6
set keymap_increase_viewing_range_min KEY_PRIOR
set keymap_decrease_viewing_range_min KEY_NEXT
set keymap_select_prev NULL
set keymap_select_next .
set keymap_print_debug_stacks KEY_KEY_P
set new_style_water false
set new_style_leaves true
set continuous_forward false
set invisible_stone false
set world.player.inventory.starter false
set world.player.inventory.creative false
set world.player.inventory.droppable true
set world.player.inventory.keep false
set world.player.tool.wear true
set world.player.damage true
set world.player.suffocation true
set world.player.hunger true
set world.game.mob.spawn.level destructive
set world.player.lava true
set world.game.environment.tnt true
set world.player.lava false
set world.game.environment.tnt false
set world.game.mode survival
set world.game.borderstone.radius 5
set world.game.mob.spawn.natural true
set world.game.environment.footprints true
set world.game.environment.fire.spread false
set world.game.environment.time.speed 96
set world.game.motd NULL
set world.map.type default
set world.server.chunk.range.active 2
set world.server.chunk.range.send 7
set world.server.chunk.range.generate 5
set world.server.mob.range 3
set world.server.client.version.strict false
set world.server.client.private false
set world.server.client.emptypwd false
set world.server.client.default.password NULL
set world.server.client.default.privs build
set world.server.client.max 20
set world.server.admin NULL
set server.net.client.queue.size 4
set server.net.client.queue.delay 2.0
set server.net.client.time.interval 5
set server.net.client.object.interval 0.2
set server.net.http false
set server.net.http true
set server.net.chunk.max 20
set server.chunk.timeout 19
set server.save.interval 300
set global.api.address servers.voxelands.com
set world.server.api.announce true
set world.server.api.announce false
set world.server.name Voxelands Server
set world.server.address NULL
set world.server.port 30000
set world.player.inventory.creative true
set world.player.inventory.droppable false
set world.player.inventory.keep true
set world.player.tool.wear false
set world.player.damage false
set world.player.suffocation false
set world.player.hunger false
set world.game.mob.spawn.level passive
set world.player.inventory.creative false
set world.player.inventory.droppable true
set world.player.inventory.keep false
set world.player.tool.wear true
set world.player.damage true
set world.player.suffocation true
set world.player.hunger true
set world.game.mob.spawn.level destructive

+ 6
- 0
util/gen_example_cfg.sh View File

@@ -0,0 +1,6 @@
#/bin/sh

awk 'BEGIN { FS = "[\"\(\),]*" } \
/config_set_default/ { print "set", $2, $3 }' \
src/config_default.c >doc/default.cfg.example


Loading…
Cancel
Save