The following warnings occurred:
Warning [2] Undefined array key "lockoutexpiry" - Line: 94 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 94 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "lockoutexpiry" - Line: 573 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 573 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $can_access_moderationqueue - Line: 752 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 752 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 892 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 892 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 892 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 892 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $awaitingusers - Line: 34 - File: global.php(959) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/global.php(959) : eval()'d code 34 errorHandler->error
/global.php 959 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 1024 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 1024 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5308 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 5308 errorHandler->error
/global.php 1024 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1474 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 1474 errorHandler->error
/inc/functions.php 1429 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Forums
Unified config file in SVN - Printable Version

+- Forums (https://www.vdrift.net/Forum)
+-- Forum: Project (https://www.vdrift.net/Forum/forumdisplay.php?fid=4)
+--- Forum: Development (https://www.vdrift.net/Forum/forumdisplay.php?fid=9)
+--- Thread: Unified config file in SVN (/showthread.php?tid=108)



Unified config file in SVN - thelusiv - 10-04-2005

Now VDrift is able to load and save nearly all of the game settings from a single file. This is ~/.vdrift/VDrift.conf. Here's a sampe:<pre>[ game ]server_ip = 0.0.0.0host_game = 0track = Nurburgringgame_mode = 1camera_mode = 1car_paint = 0selected_car = mustang_gt[ display ]show_fps = 0show_hud = 1terrain_detail = Medtree_detail = Medfullscreen = 0depth = 16height = 768width = 1024[ main ]data_dir = /usr/local/vdrift</pre>All of these options are loaded when the game runs and saved when the game exits. So, for instance, if you last played a game in Networked Free Drive, client mode, and had the IP address for the server set, then when you start VDrift, this will be the current value for all those settings - you can simply select "New Game" and then "Start" in the menu, and a new game will be started with the exact same configuration as before (in this case, it will try to connect to the server).Notice the data_dir variable - this is now changeable through a new command line switch. If you run <pre>vdrift -datadir /path/to/vdrift/data</pre>it will change this setting in ~/.vdrift/VDrift.config and exit.Likewise, the data_dir variable in the system-wide (default) VDrift.config (usually in /usr/share/games/vdrift/settings/VDrift.config) can be set by vdrift too. As root, run<pre>vdrift -defaultdatadir /path/to/vdrift/data</pre>it will change this setting in /path/to/vdrift/data/settings/VDrift.config and exit.edit: The lack of all the above features in 10/2 is keeping me from doing a binary release of that version, and since it's done, I'm not going to bother doing a binary release of that version. If I can get a Windows version worked out now, I think I'll re-release, this time with both source and binary packages for Linux and a binary for Windows.


Unified config file in SVN - thelusiv - 10-04-2005

Actually, one thing that bugs me is that it writes the file back out backwards from how it read it in. The sections are in reverse order, and all the settings within those sections are in reverse order...


Unified config file in SVN - joevenzon - 10-04-2005

Yep. If that bugs you too much, I can change the algorithm, although you'll lose the constant time linked list insertion. ;-)


Unified config file in SVN - joevenzon - 10-04-2005

fixed in SVN