The following warnings occurred:
Warning [2] Undefined array key "lockoutexpiry" - Line: 94 - File: global.php PHP 8.1.27 (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.27 (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.27 (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.27 (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.27 (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.27 (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.27 (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.27 (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.27 (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.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Forums
Config format - 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: Config format (/showthread.php?tid=1448)



Config format - NaN - 02-28-2011

To make car configs a bit more readable I've implemented some alternatives to the current ini derived format. All three are available, can be read and written interchangeably. The parsers are minimal, won't check input for correctness.

Code:
# ini (current)
key1 = value1

[key2.key3]
key4 = value4

[key2]
key5 = value5

; inf
key1 value1
key2
{
    key3
    {
        key4 value4
    }
    key5 value5
}

<!-- xml  -->
<key1>value1</key1>
<key2>
    <key3>
        <key4>value4</key4>
    </key3>
    <key5>value5</key5>
</key2>

Any opinions, suggestions?


- zimluura - 02-28-2011

i've never been fond of viewing/editing xml in a text editor. nesting could be useful, but i'm not really sure how we'd use it yet.

favorite comment style has always been the c++ //

are there general purpose xml gui editors that are cross platform and make clean-ish code? if so, what about ini or inf style editors?

in a gui inf editor the nesting could be obscured on startup and expandable by clicking the little +. this would do allot for making data entry slicker, but again, i don't really know if such a program exists.


- NaN - 02-28-2011

Quote:nesting could be useful
This has been one of the motivating points.
Code:
[wheel.fl.coilover]
spring-constant = 49131.9
bounce = 2600
rebound = 7900

[wheel.fl.brake]
texture = rotor_shiny_slotted_drilled.png
friction = 0.6
max-pressure = 4.0e6

[wheel.fl.tire]
texture = touring.png
size = 215,45,17
type = tire-touring

[wheel.fl.double-wishbone]
upper-chassis-rear = -0.42, 1.0, -0.31
upper-chassis-front = -0.42, 1.24, -0.29
upper-hub = -0.69, 1.14, -0.3

[wheel.fl]
texture = oem_wheel.png, oem_wheel-misc1.png
mesh = oem_wheel.joe
position = -0.736, 1.14, -0.47
vs
Code:
wheel
{
    front-left
    {
        texture    oem_wheel.png, oem_wheel-misc1.png
        mesh        oem_wheel.joe
        position    -0.736, 1.14, -0.47
        tire
        {
            texture touring.png
            size    215, 45, 17
            type     touring
        }
        brake
        {
            texture        rotor_shiny_slotted_drilled.png
            friction        0.6
            max-pressure    4.0e6
        }
        coilover
        {
            spring-constant 49131.9
            bounce         2600
            rebound         7900
        }
        double-wishbone
        {
            upper-chassis-rear    -0.42, 1.0, -0.31
            upper-chassis-front    -0.42, 1.24, -0.29
            upper-hub            -0.69, 1.14, -0.3
        }
    }
    front-right
    {
        ...
    }
}