inexorgame-obsolete / deprecated-cube-engine-inexor

UNMAINTAINED: Please have a look at the vulkan-renderer
https://inexor.org
zlib License
11 stars 1 forks source link

At startup load the instance tree configuration from TOML file #424

Closed aschaeffer closed 7 years ago

aschaeffer commented 7 years ago

Currently, during starting an Inexor Core instance the corresponding Inexor Tree gets populated with the default values from the RPCTreeData-inexor.proto file. Additionally we should load the tree configuration from a TOML file. The configuration values have precedence over the default values.

The configuration file is located in the profile folder, so you can have individual configurations for each instance per profile.

Example

{configFolder}/profiles/client/31417.toml

wallclock = 1
wallclock24 = 1
wallclocksecs = 1

[rendering.screen]
fullscreen = 1

{configFolder}/profiles/devenv/31417.toml

# Make visual that we're using the devenv profile
crosshairsize = 80

# Windowed mode makes debugging more effective
[rendering.screen]
fullscreen = 0
scr_w = 800
scr_h = 600

Tasks

Follow up tasks

At a later point we need to extend the proto file with a new option overwrite. The default value of a tree node can be overwritten by configuration files. Not every tree node should be configurable.

aschaeffer commented 7 years ago

https://github.com/inexorgame/inexor-flex/commit/6254bcfbcd6d3c5c1301f5d3b4f74f2984902f7a